Change strangemood permitted skill checks to job checks

permitted_skills was removed in 0.42 (dfhack/df-structures@6e2e8731)
develop
lethosor 2015-12-12 11:17:00 -05:00
parent 1329acc516
commit 78d6b92127
2 changed files with 4 additions and 4 deletions

@ -1 +1 @@
Subproject commit 309c801b63825f955eff628a35ca09ba46fff065 Subproject commit 6e2e8731d2c10a4a5394046ae48cc0cd16e9a049

@ -104,11 +104,11 @@ df::job_skill getMoodSkill (df::unit *unit)
} }
if (!skills.size() && civ) if (!skills.size() && civ)
{ {
if (civ->entity_raw->jobs.permitted_skill[job_skill::WOODCRAFT]) if (civ->entity_raw->jobs.permitted_job[profession::WOODCRAFTER])
skills.push_back(job_skill::WOODCRAFT); skills.push_back(job_skill::WOODCRAFT);
if (civ->entity_raw->jobs.permitted_skill[job_skill::STONECRAFT]) if (civ->entity_raw->jobs.permitted_job[profession::STONECRAFTER])
skills.push_back(job_skill::STONECRAFT); skills.push_back(job_skill::STONECRAFT);
if (civ->entity_raw->jobs.permitted_skill[job_skill::BONECARVE]) if (civ->entity_raw->jobs.permitted_job[profession::BONE_CARVER])
skills.push_back(job_skill::BONECARVE); skills.push_back(job_skill::BONECARVE);
} }
if (!skills.size()) if (!skills.size())