make damage type -> sound type DRY
And while I'm at it, resolve a TODO note and remove a bunch of unnecessary 0s
This commit is contained in:
@@ -1190,7 +1190,7 @@ void bash_door(location where,short pc_num) {
|
||||
unlock_adjust = univ.scenario.ter_types[terrain].flag2;
|
||||
if(unlock_adjust >= 5 || r1 > (unlock_adjust * 15 + 40) || univ.scenario.ter_types[terrain].flag3 != 1) {
|
||||
add_string_to_buf(" Didn't work.");
|
||||
damage_pc(univ.party[pc_num],get_ran(1,1,4),eDamageType::SPECIAL,eRace::UNKNOWN,0);
|
||||
damage_pc(univ.party[pc_num],get_ran(1,1,4),eDamageType::SPECIAL,eRace::UNKNOWN);
|
||||
}
|
||||
else {
|
||||
add_string_to_buf(" Lock breaks.");
|
||||
|
Reference in New Issue
Block a user