Strictify skill enum

This commit is contained in:
2014-12-14 02:51:01 -05:00
parent 1200ff47d4
commit a198c232bb
23 changed files with 557 additions and 466 deletions

View File

@@ -102,11 +102,11 @@ bool run_trap(short pc_num,eTrapType trap_type,short trap_level,short diff)
return true;
if (pc_num < 6) {
i = stat_adj(pc_num,1);
i = stat_adj(pc_num,eSkill::DEXTERITY);
if ((i_level = get_prot_level(pc_num,eItemAbil::THIEVING)) > 0)
i = i + i_level / 2;
skill = minmax(0,20,univ.party[pc_num].skills[SKILL_DISARM_TRAPS] +
+ univ.party[pc_num].skills[SKILL_LUCK] / 2 + 1 - univ.town.difficulty + 2 * i);
skill = minmax(0,20,univ.party[pc_num].skills[eSkill::DISARM_TRAPS] +
+ univ.party[pc_num].skills[eSkill::LUCK] / 2 + 1 - univ.town.difficulty + 2 * i);
r1 = get_ran(1,1,100) + diff;
// Nimble?