Fixes cardboard tube duping (#1854)
This commit is contained in:
committed by
kevinz000
parent
682abbf6aa
commit
73557a5e5f
@@ -5,7 +5,7 @@
|
||||
icon_state = "deliverycloset"
|
||||
density = 1
|
||||
mouse_drag_pointer = MOUSE_ACTIVE_POINTER
|
||||
var/giftwrapped = 0
|
||||
var/giftwrapped = FALSE
|
||||
var/sortTag = 0
|
||||
|
||||
/obj/structure/bigDelivery/attack_hand(mob/user)
|
||||
@@ -44,7 +44,7 @@
|
||||
var/obj/item/stack/wrapping_paper/WP = W
|
||||
if(WP.use(3))
|
||||
user.visible_message("[user] wraps the package in festive paper!")
|
||||
giftwrapped = 1
|
||||
giftwrapped = TRUE
|
||||
icon_state = "gift[icon_state]"
|
||||
else
|
||||
to_chat(user, "<span class='warning'>You need more paper!</span>")
|
||||
|
||||
Reference in New Issue
Block a user