Files
Bubberstation/code/modules/hallucination/hud_screw.dm
SkyratBot 8f033ead91 [MIRROR] Completely refactors hallucinations, and also adds a few [MDB IGNORE] (#16348)
* Completely refactors hallucinations, and also adds a few

* delete 5 old hallucination types that should have been removed

* Fixed old leftover tips conflicts

* Fixes all the leftover conflicts and otherwise broken code

Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
Co-authored-by: tastyfish <crazychris32@gmail.com>
Co-authored-by: GoldenAlpharex <jerego1234@hotmail.com>
2022-09-25 19:43:45 -04:00

27 lines
897 B
Plaintext

/// Screwyhud, makes the user's health bar hud wonky
/datum/hallucination/screwy_hud
abstract_hallucination_parent = /datum/hallucination/screwy_hud
random_hallucination_weight = 4
/// The type of hud we give to the hallucinator
var/screwy_hud_type = SCREWYHUD_NONE
/datum/hallucination/screwy_hud/start()
hallucinator.apply_status_effect(screwy_hud_type, type)
QDEL_IN(src, rand(10 SECONDS, 25 SECONDS))
return TRUE
/datum/hallucination/screwy_hud/Destroy()
if(!QDELETED(hallucinator))
hallucinator.remove_status_effect(screwy_hud_type, type)
return ..()
/datum/hallucination/screwy_hud/crit
screwy_hud_type = /datum/status_effect/grouped/screwy_hud/fake_crit
/datum/hallucination/screwy_hud/dead
screwy_hud_type = /datum/status_effect/grouped/screwy_hud/fake_dead
/datum/hallucination/screwy_hud/healthy
screwy_hud_type = /datum/status_effect/grouped/screwy_hud/fake_healthy