Make item abil_data a bit more readable
A two-element array is an ugly thing to behold
This commit is contained in:
@@ -1154,13 +1154,13 @@ void pick_lock(location where,short pc_num) {
|
||||
return;
|
||||
}
|
||||
|
||||
r1 = get_ran(1,1,100) + which_item->abil_data[0] * 7;
|
||||
r1 = get_ran(1,1,100) + which_item->abil_strength * 7;
|
||||
|
||||
if(r1 < 75)
|
||||
will_break = true;
|
||||
|
||||
r1 = get_ran(1,1,100) - 5 * univ.party[pc_num].stat_adj(eSkill::DEXTERITY) + univ.town.difficulty * 7
|
||||
- 5 * univ.party[pc_num].skill(eSkill::LOCKPICKING) - which_item->abil_data[0] * 7;
|
||||
- 5 * univ.party[pc_num].skill(eSkill::LOCKPICKING) - which_item->abil_strength * 7;
|
||||
|
||||
// Nimble?
|
||||
if(univ.party[pc_num].traits[eTrait::NIMBLE])
|
||||
|
Reference in New Issue
Block a user