Files
SkyratBot 4dfa62aa3b [MIRROR] Fixes arcade cabinets being un-hittable (#26609)
* Fixes arcade cabinets being un-hittable (#81620)

## About The Pull Request

What if we put all of our item based interactions in the same function
that attacks are handled? Great idea, I'm sure no one will ever forget
to call parent

Fixes that.

Also cleans up ticket code.

Also renames the base type so mappers stop mapping it in.

## Changelog

🆑 Melbert
fix: You can now take our your anger upon arcade cabinets upon losing
(they can be hit again)
/🆑

* Fixes arcade cabinets being un-hittable

---------

Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
2024-02-23 05:29:40 +01:00

25 lines
638 B
Plaintext

/obj/item/stack/arcadeticket
name = "arcade tickets"
desc = "Wow! With enough of these, you could buy a bike! ...Pssh, yeah right."
singular_name = "arcade ticket"
icon_state = "arcade-ticket"
inhand_icon_state = "tickets"
w_class = WEIGHT_CLASS_TINY
max_amount = 30
merge_type = /obj/item/stack/arcadeticket
/obj/item/stack/arcadeticket/update_icon_state()
. = ..()
switch(get_amount())
if(12 to INFINITY)
icon_state = "arcade-ticket_4"
if(6 to 12)
icon_state = "arcade-ticket_3"
if(2 to 6)
icon_state = "arcade-ticket_2"
else
icon_state = "arcade-ticket"
/obj/item/stack/arcadeticket/thirty
amount = 30