mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-25 17:42:47 +00:00
- caps stun effect values for pulsing - sets max utiliser battery charge to 300 (30 sec) - changes energy consumption for utiliser pulse effects to "effect max charge level" * "effect range" ^ 2 - changes energy consumption for utiliser touch effects to 100 (10 sec worth of consumption) Signed-off-by: Cael Aislinn <cael_aislinn@yahoo.com.au>
32 lines
795 B
Plaintext
32 lines
795 B
Plaintext
|
|
/datum/artifact_effect/radiate
|
|
effecttype = "radiate"
|
|
var/radiation_amount
|
|
|
|
/datum/artifact_effect/radiate/New()
|
|
..()
|
|
radiation_amount = rand(1, 10)
|
|
effect_type = pick(4,5)
|
|
|
|
/datum/artifact_effect/radiate/DoEffectTouch(var/mob/living/user)
|
|
if(user)
|
|
user.apply_effect(radiation_amount * 5,IRRADIATE,0)
|
|
user.updatehealth()
|
|
return 1
|
|
|
|
/datum/artifact_effect/radiate/DoEffectAura()
|
|
if(holder)
|
|
var/turf/T = get_turf(holder)
|
|
for (var/mob/living/M in range(src.effectrange,T))
|
|
M.apply_effect(radiation_amount,IRRADIATE,0)
|
|
M.updatehealth()
|
|
return 1
|
|
|
|
/datum/artifact_effect/radiate/DoEffectPulse()
|
|
if(holder)
|
|
var/turf/T = get_turf(holder)
|
|
for (var/mob/living/M in range(src.effectrange,T))
|
|
M.apply_effect(radiation_amount * 25,IRRADIATE,0)
|
|
M.updatehealth()
|
|
return 1
|