mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-23 05:07:51 +01:00
[MIRROR] EMP & Wires refactor (#12658)
Co-authored-by: Guti <32563288+TheCaramelion@users.noreply.github.com> Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
co-authored by
Guti
Cameron Lennox
parent
494fc9bea9
commit
b116cc450d
@@ -82,8 +82,10 @@ GLOBAL_LIST_EMPTY(all_blobs)
|
||||
return ..()
|
||||
|
||||
/obj/structure/blob/emp_act(severity, recursive)
|
||||
if(overmind)
|
||||
overmind.blob_type.on_emp(src, severity)
|
||||
. = ..()
|
||||
if (. & EMP_PROTECT_SELF || !overmind)
|
||||
return
|
||||
overmind.blob_type.on_emp(src, severity)
|
||||
|
||||
/obj/structure/blob/proc/pulsed()
|
||||
if(pulse_timestamp <= world.time)
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
empulse(B.loc, 0, 1, 2)
|
||||
|
||||
/datum/blob_type/electromagnetic_web/on_attack(obj/structure/blob/B, mob/living/victim)
|
||||
victim.emp_act(2)
|
||||
victim.emp_act(EMP_MEDIUM)
|
||||
|
||||
/datum/blob_type/electromagnetic_web/on_chunk_tick(obj/item/blobcore_chunk/B)
|
||||
var/turf/T = get_turf(B)
|
||||
|
||||
Reference in New Issue
Block a user