Strictify item ability enum
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user