mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 22:50:26 +01:00
Adds accessory stripping to the strip-menu (#93177)
## About The Pull Request The strip-menu can now support THREE alternate actions instead of two! Adds stripping of accessories with a tgui input list. https://github.com/user-attachments/assets/ab436b5a-751d-42b6-8e2c-1d83c7c7e081 ## Why It's Good For The Game Lets you take off accessories without stripping the person of their uniform first. ## Changelog 🆑 add: Adds a button to the strip-menu to remove somebody's uniform accessories /🆑
This commit is contained in:
@@ -377,8 +377,8 @@
|
||||
result["name"] = item.name
|
||||
result["alternate"] = item_data.get_alternate_actions(owner, user)
|
||||
var/static/list/already_cried = list()
|
||||
if(length(result["alternate"]) > 2 && !(type in already_cried))
|
||||
stack_trace("Too many alternate actions for [type]! Only two are supported at the moment! This will look bad!")
|
||||
if(length(result["alternate"]) > 3 && !(type in already_cried))
|
||||
stack_trace("Too many alternate actions for [type]! Only three are supported at the moment! This will look bad!")
|
||||
already_cried += type
|
||||
|
||||
items[strippable_key] = result
|
||||
|
||||
Reference in New Issue
Block a user