mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-24 05:38:15 +01:00
Co-authored-by: Cameron Lennox <killer65311@gmail.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
21 lines
638 B
Plaintext
21 lines
638 B
Plaintext
/// Verified to work with the Artifact Harvester
|
|
/datum/artifact_effect/emp
|
|
name = "Electromagnetic Pulse"
|
|
effect_type = EFFECT_EMP
|
|
|
|
effect_state = "empdisable"
|
|
|
|
/datum/artifact_effect/emp/New()
|
|
..()
|
|
effect = EFFECT_PULSE
|
|
|
|
/datum/artifact_effect/emp/DoEffectPulse()
|
|
var/atom/holder = get_master_holder()
|
|
if(holder)
|
|
var/turf/T = get_turf(holder)
|
|
empulse(T, effectrange/4, effectrange/3, effectrange/2, effectrange)
|
|
if(istype(holder, /obj/item/anobattery))
|
|
var/obj/item/anobattery/battery = holder
|
|
battery.stored_charge = max(0, battery.stored_charge-250) //You only get TWO uses of this. This is VERY strong.
|
|
return 1
|