mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-30 00:21:11 +01:00
@@ -45,12 +45,14 @@
|
||||
return TRUE
|
||||
|
||||
/obj/item/implant/aggression/emp_act(severity)
|
||||
. = ..()
|
||||
|
||||
if(malfunction)
|
||||
return
|
||||
malfunction = MALFUNCTION_TEMPORARY
|
||||
|
||||
activate("emp")
|
||||
if(severity == 1)
|
||||
if(severity == EMP_HEAVY)
|
||||
if(prob(50))
|
||||
meltdown()
|
||||
else if(prob(50))
|
||||
|
||||
@@ -23,16 +23,15 @@
|
||||
return TRUE
|
||||
|
||||
/obj/item/implant/anti_augment/emp_act(severity)
|
||||
. = ..()
|
||||
|
||||
switch(severity)
|
||||
if(1.0)
|
||||
if(EMP_HEAVY)
|
||||
if (prob(75))
|
||||
qdel(src)
|
||||
if(2.0)
|
||||
if(EMP_LIGHT)
|
||||
if (prob(50))
|
||||
qdel(src)
|
||||
if(3.0)
|
||||
if (prob(25))
|
||||
qdel(src)
|
||||
return
|
||||
|
||||
/obj/item/implantcase/anti_augment
|
||||
|
||||
@@ -62,15 +62,18 @@ the implant may become unstable and either pre-maturely inject the subject or si
|
||||
..()
|
||||
|
||||
/obj/item/implant/chem/emp_act(severity)
|
||||
. = ..()
|
||||
|
||||
if (malfunction)
|
||||
return
|
||||
|
||||
malfunction = MALFUNCTION_TEMPORARY
|
||||
|
||||
switch(severity)
|
||||
if(1)
|
||||
if(EMP_HEAVY)
|
||||
if(prob(60))
|
||||
activate(20)
|
||||
if(2)
|
||||
if(EMP_LIGHT)
|
||||
if(prob(30))
|
||||
activate(5)
|
||||
|
||||
|
||||
@@ -34,6 +34,8 @@
|
||||
return dat
|
||||
|
||||
/obj/item/implant/integrated_circuit/emp_act(severity)
|
||||
. = ..()
|
||||
|
||||
IC.emp_act(severity)
|
||||
|
||||
/obj/item/implant/integrated_circuit/examine(mob/user, distance, is_adjacent)
|
||||
|
||||
@@ -55,12 +55,15 @@
|
||||
global_announcer.autosay(death_message, "[mobname]'s Death Alarm", channel)
|
||||
|
||||
/obj/item/implant/death_alarm/emp_act(severity) //for some reason alarms stop going off in case they are emp'd, even without this
|
||||
. = ..()
|
||||
|
||||
if (malfunction) //so I'm just going to add a meltdown chance here
|
||||
return
|
||||
|
||||
malfunction = MALFUNCTION_TEMPORARY
|
||||
|
||||
activate("emp") //let's shout that this dude is dead
|
||||
if(severity == 1)
|
||||
if(severity == EMP_HEAVY)
|
||||
if(prob(40)) //small chance of obvious meltdown
|
||||
meltdown()
|
||||
else if (prob(60)) //but more likely it will just quietly die
|
||||
|
||||
@@ -197,6 +197,8 @@
|
||||
return TRUE
|
||||
|
||||
/obj/item/implant/explosive/emp_act(severity)
|
||||
. = ..()
|
||||
|
||||
if(malfunction)
|
||||
return
|
||||
malfunction = MALFUNCTION_TEMPORARY
|
||||
@@ -280,21 +282,19 @@
|
||||
return TRUE
|
||||
|
||||
/obj/item/implant/explosive/deadman/emp_act(severity)
|
||||
. = ..()
|
||||
|
||||
if(malfunction)
|
||||
return
|
||||
|
||||
malfunction = MALFUNCTION_TEMPORARY
|
||||
switch (severity)
|
||||
if(3.0)
|
||||
if(prob(1))
|
||||
small_countdown()
|
||||
else if(prob(5))
|
||||
meltdown()
|
||||
if(2.0)
|
||||
if(EMP_LIGHT)
|
||||
if(prob(5))
|
||||
small_countdown()
|
||||
else if (prob(10))
|
||||
meltdown()
|
||||
if(1.0)
|
||||
if(EMP_HEAVY)
|
||||
if(prob(10))
|
||||
small_countdown()
|
||||
else if (prob(30))
|
||||
|
||||
@@ -39,12 +39,15 @@
|
||||
return TRUE
|
||||
|
||||
/obj/item/implant/mindshield/emp_act(severity)
|
||||
. = ..()
|
||||
|
||||
if (malfunction)
|
||||
return
|
||||
|
||||
malfunction = MALFUNCTION_TEMPORARY
|
||||
|
||||
activate("emp")
|
||||
if(severity == 1)
|
||||
if(severity == EMP_HEAVY)
|
||||
if(prob(50))
|
||||
meltdown()
|
||||
else if (prob(50))
|
||||
|
||||
@@ -48,16 +48,18 @@ Implant Specifics:<BR>"}
|
||||
return TRUE
|
||||
|
||||
/obj/item/implant/tracking/emp_act(severity)
|
||||
. = ..()
|
||||
|
||||
if (malfunction) //no, dawg, you can't malfunction while you are malfunctioning
|
||||
return
|
||||
malfunction = MALFUNCTION_TEMPORARY
|
||||
|
||||
var/delay = 20
|
||||
switch(severity)
|
||||
if(1)
|
||||
if(EMP_HEAVY)
|
||||
if(prob(60))
|
||||
meltdown()
|
||||
if(2)
|
||||
if(EMP_LIGHT)
|
||||
delay = rand(5*60*10,15*60*10) //from 5 to 15 minutes of free time
|
||||
|
||||
spawn(delay)
|
||||
|
||||
Reference in New Issue
Block a user