mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
* lowpop protect * Update code/modules/events/alien_infestation.dm Co-authored-by: Jamie D <993128+JamieD1@users.noreply.github.com> * Update code/modules/events/blob.dm Co-authored-by: Jamie D <993128+JamieD1@users.noreply.github.com> * Update code/modules/events/spider_infestation.dm Co-authored-by: Jamie D <993128+JamieD1@users.noreply.github.com> * Update code/game/gamemodes/dynamic/dynamic_rulesets_midround.dm Co-authored-by: Jamie D <993128+JamieD1@users.noreply.github.com> Co-authored-by: Jamie D <993128+JamieD1@users.noreply.github.com>
35 lines
1.2 KiB
Plaintext
35 lines
1.2 KiB
Plaintext
/datum/round_event_control/blob
|
|
name = "Blob"
|
|
typepath = /datum/round_event/ghost_role/blob
|
|
weight = 8
|
|
max_occurrences = 1
|
|
min_players = 30
|
|
dynamic_should_hijack = TRUE
|
|
gamemode_blacklist = list("blob") //Just in case a blob survives that long
|
|
|
|
/datum/round_event/ghost_role/blob
|
|
announceWhen = -1
|
|
role_name = "blob overmind"
|
|
fakeable = TRUE
|
|
var/pointmodifier = 1
|
|
|
|
/datum/round_event/ghost_role/blob/New(pointrate = 1)
|
|
. = ..()
|
|
pointmodifier = pointrate
|
|
|
|
/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, null, 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(60, pointmodifier)
|
|
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
|