diff --git a/code/game/objects/items/pizza_voucher_vr.dm b/code/game/objects/items/pizza_voucher_vr.dm index 82d2b877322..e2efd9c6b67 100644 --- a/code/game/objects/items/pizza_voucher_vr.dm +++ b/code/game/objects/items/pizza_voucher_vr.dm @@ -4,6 +4,7 @@ icon = 'icons/obj/items.dmi' icon_state = "pizza_voucher" var/spent = FALSE + var/special_delivery = FALSE w_class = ITEMSIZE_SMALL /obj/item/pizzavoucher/New() @@ -25,10 +26,25 @@ desc = desc + " This one seems to be used-up." spent = TRUE user.visible_message("A small bluespace rift opens just above your head and spits out a pizza box!") - new /obj/effect/falling_effect/pizza_delivery(user.loc) + if(special_delivery) + command_announcement.Announce("SPECIAL DELIVERY PIZZA ORDER #[rand(1000,9999)]-[rand(100,999)] HAS BEEN RECIEVED. SHIPMENT DISPATCHED VIA EXTRA-POWERFUL BALLISTIC LAUNCHERS FOR IMMEDIATE DELIVERY! THANK YOU AND ENJOY YOUR PIZZA!", "WE ALWAYS DELIVER!") + new /obj/effect/falling_effect/pizza_delivery/special(user.loc) + else + new /obj/effect/falling_effect/pizza_delivery(user.loc) else to_chat(user, "The [src] is spent!") +/obj/item/pizzavoucher/emag_act(var/remaining_charges, var/mob/user) + if(spent) + to_chat(user, "The [src] is spent!") + return + if(!special_delivery) + to_chat(user, "You activate the special delivery protocol on the [src]!") + special_delivery = TRUE + return 1 + else + to_chat(user, "The [src] is already in special delivery mode!") + /obj/effect/falling_effect/pizza_delivery name = "PIZZA PIE POWER!" crushing = FALSE @@ -40,4 +56,7 @@ prob(20);/obj/item/pizzabox/vegetable, prob(20);/obj/item/pizzabox/mushroom, prob(20);/obj/item/pizzabox/pineapple) - return INITIALIZE_HINT_LATELOAD \ No newline at end of file + return INITIALIZE_HINT_LATELOAD + +/obj/effect/falling_effect/pizza_delivery/special + crushing = TRUE \ No newline at end of file