Simplify and cleanup IPC/defib revival after messy fixes

This commit is contained in:
Markolie
2015-01-13 17:33:46 +01:00
parent 548ad9a5ca
commit b3075f0704
3 changed files with 15 additions and 24 deletions
+1 -4
View File
@@ -330,13 +330,10 @@
user.visible_message("<span class='boldnotice'>[defib] pings: Resuscitation successful.</span>")
playsound(get_turf(src), 'sound/machines/ping.ogg', 50, 0)
H.stat = 1
if(H in dead_mob_list)
dead_mob_list -= H
living_mob_list += H
H.revive()
H.emote("gasp")
if(tplus > tloss)
H.setBrainLoss( max(0, min(99, ((tlimit - tplus) / tlimit * 100))))
H.updatehealth()
defib.deductcharge(revivecost)
add_logs(user, M, "revived", object="defibrillator")
else