mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user