mirror of
https://github.com/KabKebab/GS13.git
synced 2026-07-09 23:21:02 +01:00
Reactor & mimic opti
This commit is contained in:
@@ -337,9 +337,10 @@
|
||||
return WAITING_FOR_SOMETHING
|
||||
|
||||
notify_ghosts("A group of mimics has spawned in [pickedArea]!", source=pickedArea, action=NOTIFY_ATTACK, flashwindow = FALSE)
|
||||
while(spawncount >= 1 && validTurfs.len)
|
||||
while(spawncount > 0 && validTurfs.len)
|
||||
var/turf/pickedTurf = pick_n_take(validTurfs)
|
||||
var/spawn_type = /mob/living/simple_animal/hostile/hs13mimic
|
||||
spawn_atom_to_turf(spawn_type, pickedTurf, 1, FALSE)
|
||||
spawncount--
|
||||
message_admins("Spawned a mimic!")
|
||||
return SUCCESSFUL_SPAWN
|
||||
|
||||
@@ -338,8 +338,8 @@ The reactor CHEWS through moderator. It does not do this slowly. Be very careful
|
||||
handle_alerts() //Let's check if they're about to die, and let them know.
|
||||
update_icon()
|
||||
radiation_pulse(src, temperature*radioactivity_spice_multiplier)
|
||||
if(power >= 90 && world.time >= next_flicker) //You're overloading the reactor. Give a more subtle warning that power is getting out of control.
|
||||
next_flicker = world.time + 1.5 MINUTES
|
||||
if(power >= 93 && world.time >= next_flicker) //You're overloading the reactor. Give a more subtle warning that power is getting out of control.
|
||||
next_flicker = world.time + 2 MINUTES
|
||||
for(var/obj/machinery/light/L in GLOB.machines)
|
||||
if(prob(25) && L.z == z) //If youre running the reactor cold though, no need to flicker the lights.
|
||||
L.flicker()
|
||||
|
||||
Reference in New Issue
Block a user