From 60ead7642d2fa70917db8a9be9ac17e121a0abbd Mon Sep 17 00:00:00 2001 From: Spades Date: Mon, 14 Aug 2017 23:07:08 -0400 Subject: [PATCH] Revert "Trash piles can now spawn mice" --- code/game/objects/structures/trash_pile.dm | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/code/game/objects/structures/trash_pile.dm b/code/game/objects/structures/trash_pile.dm index c866cff858..f4a7d146d2 100644 --- a/code/game/objects/structures/trash_pile.dm +++ b/code/game/objects/structures/trash_pile.dm @@ -8,7 +8,6 @@ var/list/searchedby = list()// Characters that have searched this trashpile, with values of searched time. var/mob/living/hider // A simple animal that might be hiding in the pile - var/last_mouse = 0 var/chance_alpha = 79 // Alpha list is junk items and normal random stuff. var/chance_beta = 20 // Beta list is actually maybe some useful illegal items. If it's not alpha or gamma, it's beta. @@ -41,26 +40,6 @@ "boxfort", "trashbag", "brokecomp") - processing_objects.Add(src) - last_mouse = world.time + rand(0,30 MINUTES) - -/obj/structure/trash_pile/Destroy() - processing_objects.Remove(src) - return ..() - -/obj/structure/trash_pile/process() - if(world.time < last_mouse + 30 MINUTES) - return - attempt_mouse() - -/obj/structure/trash_pile/proc/attempt_mouse() - for(var/mob/living/simple_animal/mouse/M in dview(7,get_turf(src))) - if(istype(M)) - return 0 - new /mob/living/simple_animal/mouse(get_turf(src)) - last_mouse = world.time - visible_message("A mouse crawls out of \the [src].") - return 1 /obj/structure/trash_pile/attackby(obj/item/W as obj, mob/user as mob) var/w_type = W.type