Mini Fridges now have a grimy subtype, can go over tables, and start off anchored. (#76517)

## About The Pull Request

/obj/structure/closet/mini_fridge is now a clean nice one, which only
spawns beverages and does not have that cockroach reference in the
description, and starts off anchored. now
/obj/structure/closet/mini_fridge/grimy works like the old mini-fridge,
with syndicake, moldy bread, and now the chance of an ACTUAL cockroach.
I've replaced them on maps according to each one's needs, So, as an
example, Northstar gets a regular one (it var edited it before) while
tram maints get the grimy subtype.
mini-fridges now can properly go over tables, so you don't have to
deconstruct said table to put it on top again.
## Why It's Good For The Game

I've found the need for a nice subtype while doing a ruin, and so has a
few other mappers apparently, as northstar had a var edited variant. The
fact that it couldn't go over tables and started off unanchored was
annoying on tram and icebox, where it is present on the kitchen and you
could easily push it to the ground and suffer.
## Changelog
🆑
qol: It has been issued brand new mini-fridges for our active stations,
Featuring more booze and less moldy pizza!
/🆑
This commit is contained in:
DATAxPUNGED
2023-07-08 13:49:44 -03:00
committed by GitHub
parent ae1fa25976
commit 3cbbefa742
11 changed files with 27 additions and 19 deletions
@@ -113,10 +113,13 @@
/obj/structure/closet/mini_fridge
name = "grimy mini-fridge"
desc = "A small contraption designed to imbue a few drinks with a pleasant chill. This antiquated unit however seems to serve no purpose other than keeping the roaches company."
desc = "A small contraption designed to imbue a few drinks with a pleasant chill."
icon_state = "mini_fridge"
icon_welded = "welded_small"
max_mob_size = MOB_SIZE_SMALL
pass_flags = PASSTABLE
anchored_tabletop_offset = 3
anchored = 1
storage_capacity = 10
/obj/structure/closet/mini_fridge/PopulateContents()
@@ -125,10 +128,22 @@
new /obj/effect/spawner/random/food_or_drink/refreshing_beverage(src)
if(prob(50))
new /obj/effect/spawner/random/food_or_drink/refreshing_beverage(src)
if(prob(40))
new /obj/item/reagent_containers/cup/glass/bottle/beer(src)
/obj/structure/closet/mini_fridge/grimy
name = "grimy mini_fridge"
desc = "A small contraption designed to imbue a few drinks with a pleasant chill. This antiquated unit however seems to serve no purpose other than keeping the roaches company."
/obj/structure/closet/mini_fridge/grimy/PopulateContents()
. = ..()
if(prob(40))
if(prob(50))
new /obj/item/food/pizzaslice/moldy/bacteria(src)
else
new /obj/item/food/breadslice/moldy/bacteria(src)
else if(prob(30))
new /obj/item/food/syndicake(src)
else if(prob(40))
if(prob(50))
new /obj/item/food/syndicake(src)
else
new /mob/living/basic/cockroach(src)