mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 05:30:05 +01:00
- Made the singularity not move stuff while contained, should help and make it easier to work with; such as fixing the field generator. - Added logging for gold slime extracts. - Removed unneeded deletion of signals in telecomms code. - Added a debug verb which will record pointers of signals that weren't garbage collected. - Removed the need to create a mob to compare it in telecomms code. - The spider infestation is more likely going to spawn nurses. - Runtime fix with spells. - Reverse list actually does something now. Bots never needed it so I removed it. (Thanks carn) - Added an ON_BORDER flag for border firedoors. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5601 316c924e-a436-60f5-8080-3fe189b3f50e
30 lines
999 B
Plaintext
30 lines
999 B
Plaintext
/datum/event/spider_infestation
|
|
announceWhen = 400
|
|
oneShot = 1
|
|
|
|
var/spawncount = 1
|
|
|
|
|
|
/datum/event/spider_infestation/setup()
|
|
announceWhen = rand(announceWhen, announceWhen + 50)
|
|
spawncount = rand(5, 8)
|
|
|
|
/datum/event/spider_infestation/announce()
|
|
command_alert("Unidentified lifesigns detected coming aboard [station_name()]. Secure any exterior access, including ducting and ventilation.", "Lifesign Alert")
|
|
world << sound('sound/AI/aliens.ogg')
|
|
|
|
|
|
/datum/event/spider_infestation/start()
|
|
var/list/vents = list()
|
|
for(var/obj/machinery/atmospherics/unary/vent_pump/temp_vent in world)
|
|
if(temp_vent.loc.z == 1 && !temp_vent.welded && temp_vent.network)
|
|
if(temp_vent.network.normal_members.len > 50)
|
|
vents += temp_vent
|
|
|
|
while((spawncount >= 1) && vents.len)
|
|
var/obj/vent = pick(vents)
|
|
var/obj/effect/spider/spiderling/S = new(vent.loc)
|
|
if(prob(66))
|
|
S.grow_as = /mob/living/simple_animal/hostile/giant_spider/nurse
|
|
vents -= vent
|
|
spawncount-- |