forked from Baystation12/Baystation12
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIRROR] gun & ninja boxes are selection items, adds pilot helmet sel…
…ection item
- Loading branch information
1 parent
493f0c6
commit 49bbc14
Showing
7 changed files
with
105 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/obj/item/selection | ||
abstract_type = /obj/item/selection | ||
icon = 'icons/obj/tools/xenoarcheology_tools.dmi' | ||
icon_state = "excavation" | ||
var/list/selection_options | ||
|
||
|
||
/obj/item/selection/attack_self(mob/living/user) | ||
var/response = input(user, null, "Select Replacement Item") as null | anything in selection_options | ||
if (isnull(response) || !(response in selection_options)) | ||
return | ||
if (!user.use_sanity_check(src)) | ||
to_chat(user, SPAN_WARNING("You're not able to do that right now.")) | ||
return | ||
user.drop_from_inventory(src) | ||
var/obj/obj = selection_options[response] | ||
obj = new obj (user.loc) | ||
if (isitem(obj)) | ||
user.put_in_any_hand_if_possible(obj) | ||
to_chat(user, SPAN_ITALIC("You take \the [obj] out of \the [src].")) | ||
qdel(src) | ||
|
||
|
||
/obj/item/selection/siderm | ||
name = "sidearm kit" | ||
desc = "A secure box containing a sidearm." | ||
selection_options = list( | ||
"Classic - Secure Smartgun" = /obj/item/gun/energy/gun/secure/preauthorized, | ||
"Stylish - Secure Smart Revolver" = /obj/item/gun/energy/revolver/secure/preauthorized | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/obj/item/selection/pilot_helmet | ||
name = "pilot's helmet case" | ||
desc = "A solid case containing the Shuttle Pilot's flight helmet." | ||
selection_options = list( | ||
"Standard Pilot's Helmet" = /obj/item/clothing/head/helmet/solgov/pilot, | ||
"Corporate Pilot's Helmet" = /obj/item/clothing/head/helmet/nt/pilot, | ||
"Fleet Pilot's Helmet" = /obj/item/clothing/head/helmet/solgov/pilot/fleet | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters