Strictify item ability enum

This commit is contained in:
2014-12-12 15:18:43 -05:00
parent 1d7342edc2
commit 1200ff47d4
16 changed files with 373 additions and 364 deletions

View File

@@ -103,7 +103,7 @@ bool run_trap(short pc_num,eTrapType trap_type,short trap_level,short diff)
if (pc_num < 6) {
i = stat_adj(pc_num,1);
if ((i_level = get_prot_level(pc_num,42)) > 0)
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);