Reactor & mimic opti

This commit is contained in:
Archie
2021-06-16 01:22:45 -03:00
parent 41fa90f1de
commit cfac2ee5e5
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -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()