mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +01:00
[s] Fix a Syndicate Bundle oversight (#23675)
* Fix syndicate bundle inputs staying valid for too long * Cleanup + readability * Grammar police weewoo
This commit is contained in:
@@ -81,19 +81,22 @@
|
||||
/obj/item/radio/beacon/syndicate/bundle/attack_self(mob/user)
|
||||
if(!user)
|
||||
return
|
||||
|
||||
if(!length(selected))
|
||||
unselected = bundles.Copy()
|
||||
for(var/i in 1 to 3)
|
||||
selected += pick_n_take(unselected)
|
||||
selected += "Random"
|
||||
var/bundle_name = tgui_input_list(user, "Available Bundles", "Bundle Selection", selected)
|
||||
if(!bundle_name)
|
||||
|
||||
var/bundle_name = tgui_input_list(user, "Available Bundles", "Bundle Selection", selected)
|
||||
if(!bundle_name || QDELETED(src))
|
||||
return
|
||||
|
||||
if(bundle_name == "Random")
|
||||
bundle_name = pick(unselected)
|
||||
var/bundle = bundles[bundle_name]
|
||||
bundle = new bundle(user.loc)
|
||||
to_chat(user, "<span class='notice'>Welcome to [station_name()], [bundle_name]</span>")
|
||||
to_chat(user, "<span class='notice'>Welcome to [station_name()], [bundle_name]!</span>")
|
||||
user.drop_item()
|
||||
qdel(src)
|
||||
user.put_in_hands(bundle)
|
||||
|
||||
Reference in New Issue
Block a user