Files
Bubberstation/code/modules/events/blob.dm
Gandalf 27c2f9fd08 Events audit, moving overrides to modular files + TEMP FIX (#9941)
* RESET

* debug stuff

* Update events.dm

* fixed

* Modular override file

* Update event_overrides.dm

* Update event_overrides.dm

* Update cme.dm

* Update event_overrides.dm

* Update game.dm

* 0

* 0

* Update events.dm

* E

* Update code/modules/events/_event.dm

Co-authored-by: GoldenAlpharex <58045821+GoldenAlpharex@users.noreply.github.com>

* Update event_overrides.dm

Co-authored-by: GoldenAlpharex <58045821+GoldenAlpharex@users.noreply.github.com>
2021-12-15 01:48:44 +00:00

37 lines
1.2 KiB
Plaintext

/datum/round_event_control/blob
name = "Blob"
typepath = /datum/round_event/ghost_role/blob
weight = 10
max_occurrences = 1
min_players = 20
dynamic_should_hijack = TRUE
/datum/round_event_control/blob/canSpawnEvent(players)
if(EMERGENCY_PAST_POINT_OF_NO_RETURN) // no blobs if the shuttle is past the point of no return
return FALSE
return ..()
/datum/round_event/ghost_role/blob
announceChance = 0
role_name = "blob overmind"
fakeable = TRUE
/datum/round_event/ghost_role/blob/announce(fake)
priority_announce("Confirmed outbreak of level 5 biohazard aboard [station_name()]. All personnel must contain the outbreak.", "Biohazard Alert", ANNOUNCER_OUTBREAK5)
/datum/round_event/ghost_role/blob/spawn_role()
if(!GLOB.blobstart.len)
return MAP_ERROR
var/list/candidates = get_candidates(ROLE_BLOB, ROLE_BLOB)
if(!candidates.len)
return NOT_ENOUGH_PLAYERS
var/mob/dead/observer/new_blob = pick(candidates)
var/mob/camera/blob/BC = new_blob.become_overmind()
spawned_mobs += BC
message_admins("[ADMIN_LOOKUPFLW(BC)] has been made into a blob overmind by an event.")
log_game("[key_name(BC)] was spawned as a blob overmind by an event.")
return SUCCESSFUL_SPAWN