Adds option to select out of 3 Syndicate Bundles (#23465)

* Thanks Ebba

* removing that one datum line

* updated description in uplink

* removes redundant list that is redundant

Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>

* Moved Comments

* Added Agent Spaces

* added a dot

Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com>

* Update descrption + fix typo

* updated TC prices in comments

* Welcome message + bundle name updates

* Station Name

Co-authored-by: HMBGERDO <61080616+HMBGERDO@users.noreply.github.com>

* Modsuiter to Augmented

Co-authored-by: HMBGERDO <61080616+HMBGERDO@users.noreply.github.com>

* 3TC jacket comment

* Beacon + Naming + Comments

* forgot to save this file

* Empty

* slash formatting

Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com>

* old SRC style

Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com>

* item/item as anything in item

Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com>

---------

Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com>
Co-authored-by: HMBGERDO <61080616+HMBGERDO@users.noreply.github.com>
Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com>
This commit is contained in:
Daniel Lenrd
2023-12-12 02:05:29 +09:00
committed by GitHub
parent aaafb6be77
commit 99e910602f
3 changed files with 188 additions and 114 deletions
@@ -59,6 +59,45 @@
user.drop_item()
qdel(src)
/obj/item/radio/beacon/syndicate/bundle/
name = "suspicious beacon"
desc = "A label on it reads: <i>Activate to select a bundle</i>."
var/list/static/bundles = list(
"Spy" = /obj/item/storage/box/syndie_kit/bundle/spy,
"Agent 13" = /obj/item/storage/box/syndie_kit/bundle/agent13,
"Thief" = /obj/item/storage/box/syndie_kit/bundle/thief,
"Agent 007" = /obj/item/storage/box/syndie_kit/bundle/bond,
"Infiltrator" = /obj/item/storage/box/syndie_kit/bundle/infiltrator,
"Bank Robber" = /obj/item/storage/box/syndie_kit/bundle/payday,
"Implanter" = /obj/item/storage/box/syndie_kit/bundle/implant,
"Hacker" = /obj/item/storage/box/syndie_kit/bundle/hacker,
"Dark Lord" = /obj/item/storage/box/syndie_kit/bundle/darklord,
"Sniper" = /obj/item/storage/box/syndie_kit/bundle/professional,
"Grenadier" = /obj/item/storage/box/syndie_kit/bundle/grenadier,
"Augmented" = /obj/item/storage/box/syndie_kit/bundle/metroid)
var/list/selected = list()
var/list/unselected = list()
/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)
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>")
user.drop_item()
qdel(src)
user.put_in_hands(bundle)
/obj/item/radio/beacon/syndicate/power_sink
name = "suspicious beacon"
desc = "A label on it reads: <i>Warning: Activating this device will send a power sink to your location</i>."