Files
VOREStation/code/modules/xenoarcheaology/effects/radiate.dm
T
Cameron Lennox cbc4151bfb Radiation Refactor (#19270)
* Part 1

* WIP

* The rest of these

* More stuff

* Whoops, did that wrong

* typo

* gweeen

* This all works

* SHOWER

* Rads

* awa

* rad

* Update life.dm

* edits

* Makes lvl 3 rads give you a warning.

You should already know by this point, but this makes it EXTRA clear you're getting fucked

* Update vorestation.dme

* aaa

* propagate

* gwah

* more fixes

* AAA

* Update radiation.dm

* Update radiation.dm

* mobs rads

* rads

* fix this

* Update _reagents.dm

* these

* Get rid of these

* rad

* Update config.txt

* fixed

* Update radiation_effects.dm
2026-03-22 12:29:09 -04:00

47 lines
1.1 KiB
Plaintext

/// Modified to work with the Artifact Harvester
/datum/artifact_effect/radiate
name = "Radiation"
var/radiation_amount
effect_color = "#007006"
/datum/artifact_effect/radiate/New()
..()
radiation_amount = rand(1, 10)
effect_type = EFFECT_RADIATE
/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()
var/atom/holder = get_master_holder()
if(istype(holder, /obj/item/anobattery))
holder = holder.loc
if(holder)
radiation_pulse(
holder,
max_range = effectrange,
threshold = RAD_LIGHT_INSULATION,
chance = chargelevelmax * 0.5,
minimum_exposure_time = URANIUM_RADIATION_MINIMUM_EXPOSURE_TIME,
strength = chargelevelmax * 0.5
)
return 1
/datum/artifact_effect/radiate/DoEffectPulse()
var/atom/holder = get_master_holder()
if(istype(holder, /obj/item/anobattery))
holder = holder.loc
if(holder)
radiation_pulse(
holder,
max_range = effectrange,
threshold = RAD_LIGHT_INSULATION,
chance = chargelevelmax,
strength = chargelevelmax * 2,
)
return 1