|
|
|
@ -200,6 +200,8 @@ static df::building* get_building_from_job(df::job* j)
|
|
|
|
|
|
|
|
|
|
static df::unit_labor construction_build_labor(df::building_actual* b)
|
|
|
|
|
{
|
|
|
|
|
if (b->getType() == df::building_type::RoadPaved)
|
|
|
|
|
return df::unit_labor::BUILD_ROAD;
|
|
|
|
|
// Find last item in building with use mode appropriate to the building's constructions state
|
|
|
|
|
// For screw pumps contained_items[0] = pipe, 1 corkscrew, 2 block
|
|
|
|
|
// For wells 0 mechanism, 1 rope, 2 bucket, 3 block
|
|
|
|
@ -332,6 +334,7 @@ public:
|
|
|
|
|
case df::building_type::Bridge:
|
|
|
|
|
case df::building_type::ArcheryTarget:
|
|
|
|
|
case df::building_type::WaterWheel:
|
|
|
|
|
case df::building_type::RoadPaved:
|
|
|
|
|
case df::building_type::Well:
|
|
|
|
|
case df::building_type::ScrewPump:
|
|
|
|
|
case df::building_type::Wagon:
|
|
|
|
@ -345,8 +348,6 @@ public:
|
|
|
|
|
return construction_build_labor(b);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case df::building_type::RoadPaved:
|
|
|
|
|
return df::unit_labor::BUILD_ROAD;
|
|
|
|
|
case df::building_type::FarmPlot:
|
|
|
|
|
return df::unit_labor::PLANT;
|
|
|
|
|
case df::building_type::Chair:
|
|
|
|
|