mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 05:30:05 +01:00
Adds anomalous, infinitely-regenerating pizza boxes as a very rare item from pizza crates (#35194)
* Adds anomalous pizza boxes * Improves the code a tad, makes it favorite * let's format this a bit better! * Update pizzabox.dm * Makes the message_admins call only without report
This commit is contained in:
committed by
vuonojenmustaturska
parent
83f7100ed6
commit
19482e5907
@@ -991,6 +991,29 @@
|
||||
/obj/item/pizzabox/vegetable,
|
||||
/obj/item/pizzabox/pineapple)
|
||||
crate_name = "pizza crate"
|
||||
var/static/anomalous_box_provided = FALSE
|
||||
|
||||
/datum/supply_pack/organic/pizza/fill(obj/structure/closet/crate/C)
|
||||
. = ..()
|
||||
if(!anomalous_box_provided)
|
||||
for(var/obj/item/pizzabox/P in C)
|
||||
if(prob(1)) //1% chance for each box, so 4% total chance per order
|
||||
var/obj/item/pizzabox/infinite/fourfiveeight = new(C)
|
||||
fourfiveeight.boxtag = P.boxtag
|
||||
qdel(P)
|
||||
anomalous_box_provided = TRUE
|
||||
log_game("An anomalous pizza box was provided in a pizza crate at during cargo delivery")
|
||||
if(prob(50))
|
||||
addtimer(CALLBACK(src, .proc/anomalous_pizza_report), rand(300, 1800))
|
||||
else
|
||||
message_admins("An anomalous pizza box was silently created with no command report in a pizza crate delivery.")
|
||||
break
|
||||
|
||||
/datum/supply_pack/organic/pizza/proc/anomalous_pizza_report()
|
||||
print_command_report("[station_name()], our anomalous materials divison has reported a missing object that is highly likely to have been sent to your station during a routine cargo \
|
||||
delivery. Please search all crates and manifests provided with the delivery and return the object if is located. The object resembles a standard <b>\[DATA EXPUNGED\]</b> and is to be \
|
||||
considered <b>\[REDACTED\]</b> and returned at your leisure. Note that objects the anomaly produces are specifically attuned exactly to the individual opening the anomaly; regardless \
|
||||
of species, the individual will find the object edible and it will taste great according to their personal definitions, which vary significantly based on person and species.")
|
||||
|
||||
/datum/supply_pack/organic/cream_piee
|
||||
name = "High-yield Clown-grade Cream Pie Crate"
|
||||
|
||||
Reference in New Issue
Block a user