Autolabor: Items marked for dump now generate haul refuse demand. Also corrected labor for dump item jobs.

develop
Kelly Martin 2012-12-04 01:59:44 -06:00
parent 287ee2bc04
commit 0f1aaa6ec4
1 changed files with 6 additions and 2 deletions

@ -994,7 +994,7 @@ public:
job_to_labor_table[df::job_type::Clean] = jlf_const(df::unit_labor::CLEAN);
job_to_labor_table[df::job_type::Rest] = jlf_no_labor;
job_to_labor_table[df::job_type::PickupEquipment] = jlf_no_labor;
job_to_labor_table[df::job_type::DumpItem] = jlf_hauling;
job_to_labor_table[df::job_type::DumpItem] = jlf_const(df::unit_labor::HAUL_REFUSE);
job_to_labor_table[df::job_type::StrangeMoodCrafter] = jlf_no_labor;
job_to_labor_table[df::job_type::StrangeMoodJeweller] = jlf_no_labor;
job_to_labor_table[df::job_type::StrangeMoodForge] = jlf_no_labor;
@ -1515,10 +1515,14 @@ private:
F(in_building); F(construction); F(artifact);
#undef F
auto& v = world->items.other[df::items_other_id::WEAPON];
auto& v = world->items.all;
for (auto i = v.begin(); i != v.end(); i++)
{
df::item* item = *i;
if (item->flags.bits.dump)
labor_needed[df::unit_labor::HAUL_REFUSE]++;
if (item->flags.whole & bad_flags.whole)
continue;