mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-28 18:11:16 +00:00
## 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) /🆑
25 lines
638 B
Plaintext
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
|