TG: Now all calls for bruteloss are handled via procs now. Extensibility++ r2803

This commit is contained in:
Ren Erthilo
2012-03-26 18:01:06 +01:00
parent a4668ee6d1
commit 2bf6943492
11 changed files with 72 additions and 56 deletions
+1 -1
View File
@@ -446,7 +446,7 @@ proc/airborne_can_reach(turf/source, turf/target)
mob.suiciding = 1
//instead of killing them instantly, just put them at -175 health and let 'em gasp for a while
viewers(mob) << "\red <b>[mob.name] is holding \his breath. It looks like \he's trying to commit suicide.</b>"
mob.oxyloss = max(175 - mob.toxloss - mob.fireloss - mob.bruteloss, mob.oxyloss)
mob.adjustOxyLoss(175 - mob.getToxLoss() - mob.getFireLoss() - mob.getBruteLoss() - mob.getOxyLoss())
mob.updatehealth()
spawn(200) //in case they get revived by cryo chamber or something stupid like that, let them suicide again in 20 seconds
mob.suiciding = 0