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:
2024-11-26 13:07:37 -06:00
committed by Celtic Minstrel
parent d870180591
commit 3068e97868
9 changed files with 74 additions and 75 deletions

View File

@@ -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.");