Fixed a bug with EMP's and robolimbs.

Light EMP's were much more likely to destroy robolimbs than heavy ones.
This commit is contained in:
cib
2012-12-19 23:00:01 +01:00
parent 5360915221
commit 2233d0dc8e
+7 -2
View File
@@ -514,10 +514,15 @@
proc/emp_act(severity)
if(!(status & ORGAN_ROBOT))
return
if(prob(30*severity))
var/probability = 30
var/damage = 15
if(severity == 2)
probability = 1
damage = 3
if(prob(probability))
droplimb(1)
else
take_damage(4(4-severity), 0, 1, used_weapon = "EMP")
take_damage(damage, 0, 1, used_weapon = "EMP")
proc/getDisplayName()
switch(name)