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:
@@ -76,7 +76,7 @@ bool run_trap(short pc_num,eTrapType trap_type,short trap_level,short diff) {
|
||||
for(i = 0; i < num_hits; i++) {
|
||||
add_string_to_buf(" A knife flies out!");
|
||||
r1 = get_ran(2 + univ.town.difficulty / 14,1,10);
|
||||
damage_pc(pc_num,r1,eDamageType::WEAPON,eRace::UNKNOWN,0);
|
||||
damage_pc(disarmer,r1,eDamageType::WEAPON,eRace::UNKNOWN,0);
|
||||
}
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user