Fortune Cookie Fix (#20286)

.

Co-authored-by: DreamySkrell <>
This commit is contained in:
DreamySkrell
2024-12-24 13:42:25 +01:00
committed by GitHub
parent a0447f012c
commit 7e8eebc57e
2 changed files with 15 additions and 5 deletions
@@ -33,13 +33,16 @@
else
target.visible_message("<b>[target]</b> finishes [is_liquid ? "drinking" : "eating"] \the [src].", SPAN_NOTICE("You finish [is_liquid ? "drinking" : "eating"] \the [src]."))
if(trash)
// get or create the trash item
var/obj/item/trash_item = trash
if(ispath(trash_item))
trash_item = new trash_item()
// and put it in active hand, or on the floor
if(slot)
user.drop_from_inventory(src) //so trash actually stays in the active hand.
var/obj/item/TrashItem = new trash(user)
user.put_in_hands(TrashItem)
user.drop_from_inventory(src)
user.put_in_hands(trash_item)
else
var/obj/item/TrashItem = new trash(user)
TrashItem.forceMove(get_turf(src))
trash_item.forceMove(get_turf(src))
if(istype(loc, /obj/item/reagent_containers/bowl/plate))
var/obj/item/reagent_containers/bowl/plate/P = loc
if(P.holding == src)
@@ -0,0 +1,7 @@
author: DreamySkrell
delete-after: True
changes:
- bugfix: "Fortune cookie fix."