|
|
@ -256,10 +256,26 @@ const SkillColumn columns[] = {
|
|
|
|
{19, 6, profession::NONE, unit_labor::NONE, job_skill::POETRY, "Po"},
|
|
|
|
{19, 6, profession::NONE, unit_labor::NONE, job_skill::POETRY, "Po"},
|
|
|
|
{19, 6, profession::NONE, unit_labor::NONE, job_skill::READING, "Rd"},
|
|
|
|
{19, 6, profession::NONE, unit_labor::NONE, job_skill::READING, "Rd"},
|
|
|
|
{19, 6, profession::NONE, unit_labor::NONE, job_skill::SPEAKING, "Sp"},
|
|
|
|
{19, 6, profession::NONE, unit_labor::NONE, job_skill::SPEAKING, "Sp"},
|
|
|
|
|
|
|
|
{19, 6, profession::NONE, unit_labor::NONE, job_skill::DANCE, "Dn"},
|
|
|
|
{20, 5, profession::NONE, unit_labor::NONE, job_skill::MILITARY_TACTICS, "MT"},
|
|
|
|
{19, 6, profession::NONE, unit_labor::NONE, job_skill::MAKE_MUSIC, "MM"},
|
|
|
|
{20, 5, profession::NONE, unit_labor::NONE, job_skill::TRACKING, "Tr"},
|
|
|
|
{19, 6, profession::NONE, unit_labor::NONE, job_skill::SING_MUSIC, "SM"},
|
|
|
|
{20, 5, profession::NONE, unit_labor::NONE, job_skill::MAGIC_NATURE, "Dr"},
|
|
|
|
{19, 6, profession::NONE, unit_labor::NONE, job_skill::PLAY_KEYBOARD_INSTRUMENT, "PK"},
|
|
|
|
|
|
|
|
{19, 6, profession::NONE, unit_labor::NONE, job_skill::PLAY_STRINGED_INSTRUMENT, "PS"},
|
|
|
|
|
|
|
|
{19, 6, profession::NONE, unit_labor::NONE, job_skill::PLAY_WIND_INSTRUMENT, "PW"},
|
|
|
|
|
|
|
|
{19, 6, profession::NONE, unit_labor::NONE, job_skill::PLAY_PERCUSSION_INSTRUMENT, "PP"},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{20, 4, profession::NONE, unit_labor::NONE, job_skill::CRITICAL_THINKING, "CT"},
|
|
|
|
|
|
|
|
{20, 4, profession::NONE, unit_labor::NONE, job_skill::LOGIC, "Lo"},
|
|
|
|
|
|
|
|
{20, 4, profession::NONE, unit_labor::NONE, job_skill::MATHEMATICS, "Ma"},
|
|
|
|
|
|
|
|
{20, 4, profession::NONE, unit_labor::NONE, job_skill::ASTRONOMY, "As"},
|
|
|
|
|
|
|
|
{20, 4, profession::NONE, unit_labor::NONE, job_skill::CHEMISTRY, "Ch"},
|
|
|
|
|
|
|
|
{20, 4, profession::NONE, unit_labor::NONE, job_skill::GEOGRAPHY, "Ge"},
|
|
|
|
|
|
|
|
{20, 4, profession::NONE, unit_labor::NONE, job_skill::OPTICS_ENGINEER, "OE"},
|
|
|
|
|
|
|
|
{20, 4, profession::NONE, unit_labor::NONE, job_skill::FLUID_ENGINEER, "FE"},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{21, 5, profession::NONE, unit_labor::NONE, job_skill::MILITARY_TACTICS, "MT"},
|
|
|
|
|
|
|
|
{21, 5, profession::NONE, unit_labor::NONE, job_skill::TRACKING, "Tr"},
|
|
|
|
|
|
|
|
{21, 5, profession::NONE, unit_labor::NONE, job_skill::MAGIC_NATURE, "Dr"},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
struct UnitInfo
|
|
|
|
struct UnitInfo
|
|
|
@ -1127,15 +1143,21 @@ viewscreen_unitlaborsst::viewscreen_unitlaborsst(vector<df::unit*> &src, int cur
|
|
|
|
cur->selected = false;
|
|
|
|
cur->selected = false;
|
|
|
|
cur->active_index = active_idx[unit];
|
|
|
|
cur->active_index = active_idx[unit];
|
|
|
|
|
|
|
|
|
|
|
|
if (!Units::isOwnRace(unit))
|
|
|
|
if (!Units::isOwnCiv(unit))
|
|
|
|
cur->allowEdit = false;
|
|
|
|
cur->allowEdit = false;
|
|
|
|
|
|
|
|
|
|
|
|
if (!Units::isOwnCiv(unit))
|
|
|
|
if (!Units::isOwnGroup(unit))
|
|
|
|
cur->allowEdit = false;
|
|
|
|
cur->allowEdit = false;
|
|
|
|
|
|
|
|
|
|
|
|
if (unit->flags1.bits.dead)
|
|
|
|
if (unit->flags1.bits.dead)
|
|
|
|
cur->allowEdit = false;
|
|
|
|
cur->allowEdit = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (unit->flags2.bits.visitor)
|
|
|
|
|
|
|
|
cur->allowEdit = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (unit->flags3.bits.ghostly)
|
|
|
|
|
|
|
|
cur->allowEdit = false;
|
|
|
|
|
|
|
|
|
|
|
|
if (!ENUM_ATTR(profession, can_assign_labor, unit->profession))
|
|
|
|
if (!ENUM_ATTR(profession, can_assign_labor, unit->profession))
|
|
|
|
cur->allowEdit = false;
|
|
|
|
cur->allowEdit = false;
|
|
|
|
|
|
|
|
|
|
|
|