Merge pull request #48558 from ArcaneMusic/mousescience

Mice will now eat cheese slices, resulting in a mouse problem.
This commit is contained in:
skoglol
2020-01-07 10:28:11 +01:00
committed by GitHub
4 changed files with 24 additions and 0 deletions
@@ -79,6 +79,18 @@
else
C.deconstruct()
visible_message("<span class='warning'>[src] chews through the [C].</span>")
for(var/obj/item/reagent_containers/food/snacks/cheesewedge/cheese in range(1, src))
if(prob(10))
var/cap = CONFIG_GET(number/ratcap)
if(LAZYLEN(SSmobs.cheeserats) >= cap)
visible_message("<span class='warning'>[src] carefully eats the cheese, hiding it from the [cap] mice on the station!</span>")
qdel(cheese)
return
var/mob/living/newmouse = new /mob/living/simple_animal/mouse(loc)
SSmobs.cheeserats += newmouse
visible_message("<span class='notice'>[src] nibbles through the [cheese], attracting another mouse!</span>")
qdel(cheese)
return
/*
* Mouse types
@@ -96,6 +108,10 @@
body_color = "brown"
icon_state = "mouse_brown"
/mob/living/simple_animal/mouse/Destroy()
SSmobs.cheeserats -= src
return ..()
//TOM IS ALIVE! SQUEEEEEEEE~K :)
/mob/living/simple_animal/mouse/brown/Tom
name = "Tom"