Revert petrify to being handled by freestanding functions

- Also change kill/damage to take a player/monster reference instead of an index
This commit is contained in:
2015-02-02 12:41:17 -05:00
parent 1d733d081c
commit ea49a13ff8
16 changed files with 245 additions and 260 deletions

View File

@@ -1208,7 +1208,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(pc_num,get_ran(1,1,4),eDamageType::UNBLOCKABLE,eRace::UNKNOWN,0);
damage_pc(univ.party[pc_num],get_ran(1,1,4),eDamageType::UNBLOCKABLE,eRace::UNKNOWN,0);
}
else {
add_string_to_buf(" Lock breaks.");