mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-09 16:07:40 +00:00
49 lines
1.4 KiB
Plaintext
49 lines
1.4 KiB
Plaintext
/datum/round_event_control/wizard/embedpocalypse
|
|
name = "Make Everything Embeddable"
|
|
weight = 2
|
|
typepath = /datum/round_event/wizard/embedpocalypse
|
|
max_occurrences = 1
|
|
earliest_start = 0 MINUTES
|
|
description = "Everything becomes pointy enough to embed in people when thrown."
|
|
|
|
/datum/round_event/wizard/embedpocalypse/start()
|
|
for(var/obj/item/I in world)
|
|
CHECK_TICK
|
|
|
|
if(!(I.flags_1 & INITIALIZED_1))
|
|
continue
|
|
|
|
if(!I.embedding || I.embedding == EMBED_HARMLESS)
|
|
I.embedding = EMBED_POINTY
|
|
I.updateEmbedding()
|
|
I.name = "pointy [I.name]"
|
|
|
|
GLOB.embedpocalypse = TRUE
|
|
GLOB.stickpocalypse = FALSE // embedpocalypse takes precedence over stickpocalypse
|
|
|
|
/datum/round_event_control/wizard/embedpocalypse/sticky
|
|
name = "Make Everything Sticky"
|
|
weight = 6
|
|
typepath = /datum/round_event/wizard/embedpocalypse/sticky
|
|
max_occurrences = 1
|
|
earliest_start = 0 MINUTES
|
|
description = "Everything becomes sticky enough to be glued to people when thrown."
|
|
|
|
/datum/round_event_control/wizard/embedpocalypse/sticky/canSpawnEvent(players_amt, gamemode)
|
|
if(GLOB.embedpocalypse)
|
|
return FALSE
|
|
|
|
/datum/round_event/wizard/embedpocalypse/sticky/start()
|
|
for(var/obj/item/I in world)
|
|
CHECK_TICK
|
|
|
|
if(!(I.flags_1 & INITIALIZED_1))
|
|
continue
|
|
|
|
if(!I.embedding)
|
|
I.embedding = EMBED_HARMLESS
|
|
I.updateEmbedding()
|
|
I.name = "sticky [I.name]"
|
|
|
|
GLOB.stickpocalypse = TRUE
|