push
This commit is contained in:
@@ -132,6 +132,14 @@
|
||||
else
|
||||
icon_state = "[initial(icon_state)]_3"
|
||||
|
||||
/obj/item/stack/update_overlays()
|
||||
. = ..()
|
||||
if(isturf(loc))
|
||||
return
|
||||
var/mutable_appearance/number = mutable_appearance(appearance_flags = APPEARANCE_UI_IGNORE_ALPHA)
|
||||
number.maptext = MAPTEXT(get_amount())
|
||||
. += number
|
||||
|
||||
/obj/item/stack/examine(mob/user)
|
||||
. = ..()
|
||||
if (is_cyborg)
|
||||
@@ -151,6 +159,14 @@
|
||||
. += "There is [get_amount()] in the stack."
|
||||
. += "<span class='notice'>Alt-click to take a custom amount.</span>"
|
||||
|
||||
/obj/item/stack/equipped(mob/user, slot)
|
||||
. = ..()
|
||||
update_icon()
|
||||
|
||||
/obj/item/stack/dropped(mob/user, slot)
|
||||
. = ..()
|
||||
update_icon()
|
||||
|
||||
/obj/item/stack/proc/get_amount()
|
||||
if(is_cyborg)
|
||||
. = round(source?.energy / cost)
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
. = ..()
|
||||
update_icon()
|
||||
|
||||
/obj/item/stack/arcadeticket/update_icon()
|
||||
/obj/item/stack/arcadeticket/update_icon_state()
|
||||
var/amount = get_amount()
|
||||
if((amount >= 12) && (amount > 0))
|
||||
icon_state = "arcade-ticket_4"
|
||||
|
||||
Reference in New Issue
Block a user