diff --git a/code/game/objects/items/selectable_item_vr.dm b/code/game/objects/items/selectable_item_vr.dm new file mode 100644 index 00000000000..33b810d8d79 --- /dev/null +++ b/code/game/objects/items/selectable_item_vr.dm @@ -0,0 +1,48 @@ +/obj/item/selectable_item + name = "selectable item" + desc = "If you find this, you should definitely report this..." + icon = 'icons/obj/items.dmi' + icon_state = "gift1" + var/preface_string = "You are about to select an item. Are you sure you want to use it and select one?" + var/preface_title = "selectable item" + var/selection_string = "Select an item:" + var/selection_title = "Item Selection" + var/list/item_options = list("Gift" = /obj/item/weapon/a_gift, + "Health Analyzer" = /obj/item/device/healthanalyzer) + +/obj/item/selectable_item/attack_self(mob/user as mob) + tgui_alert(user, {"[preface_string]"}, preface_title) + var/chosen_item = tgui_input_list(usr, selection_string, selection_title, item_options) + chosen_item = item_options[chosen_item] + if(chosen_item) + user.drop_item() + var/obj/item/result = new chosen_item(get_turf(user)) + user.put_in_active_hand(result) + result.add_fingerprint(user) + qdel(src) + return + + +/obj/item/selectable_item/chemistrykit + icon = 'icons/obj/chemical_vr.dmi' + icon_state = "chemkit" + selection_string = "Select a chemical:" + selection_title = "Chemical Selection" + +/obj/item/selectable_item/chemistrykit/size + name = "size chemistry kit" + desc = "A pre-arranged home chemistry kit. This one is for rather specific set of size-altering chemicals." + preface_string = "This kit can be used to create a vial of a size-altering chemical, but there's only enough material for one." + preface_title = "Size Chemistry Kit" + item_options = list("Macrocillin" = /obj/item/weapon/reagent_containers/glass/beaker/vial/macrocillin, + "Microcillin" = /obj/item/weapon/reagent_containers/glass/beaker/vial/microcillin, + "Normalcillin" = /obj/item/weapon/reagent_containers/glass/beaker/vial/normalcillin) + +/obj/item/selectable_item/chemistrykit/gender + name = "gender chemistry kit" + desc = "A pre-arranged home chemistry kit. This one is for rather specific set of gender-altering chemicals." + preface_string = "This kit can be used to create a vial of a gender-altering chemical, but there's only enough material for one." + preface_title = "Gender Chemistry Kit" + item_options = list("Androrovir" = /obj/item/weapon/reagent_containers/glass/beaker/vial/androrovir, + "Gynorovir" = /obj/item/weapon/reagent_containers/glass/beaker/vial/gynorovir, + "Androgynorovir" = /obj/item/weapon/reagent_containers/glass/beaker/vial/androgynorovir) \ No newline at end of file diff --git a/code/game/objects/structures/trash_pile_vr.dm b/code/game/objects/structures/trash_pile_vr.dm index 39e3e838777..6c8e2b8ccfd 100644 --- a/code/game/objects/structures/trash_pile_vr.dm +++ b/code/game/objects/structures/trash_pile_vr.dm @@ -246,7 +246,8 @@ prob(2);/obj/item/weapon/storage/box/syndie_kit/spy, prob(2);/obj/item/weapon/grenade/anti_photon, prob(2);/obj/item/clothing/under/hyperfiber/bluespace, - prob(2);/obj/item/weapon/reagent_containers/glass/beaker/vial/amorphorovir, + prob(2);/obj/item/selectable_item/chemistrykit/size, + prob(2);/obj/item/selectable_item/chemistrykit/gender, prob(1);/obj/item/clothing/suit/storage/vest/heavy/merc, prob(1);/obj/item/device/nif/bad, prob(1);/obj/item/device/radio_jammer, diff --git a/code/modules/reagents/reagent_containers/glass_vr.dm b/code/modules/reagents/reagent_containers/glass_vr.dm index e0d11cd5852..350a64e224b 100644 --- a/code/modules/reagents/reagent_containers/glass_vr.dm +++ b/code/modules/reagents/reagent_containers/glass_vr.dm @@ -53,6 +53,30 @@ name = "vial (amorphorovir)" prefill = list("amorphorovir" = 1) +/obj/item/weapon/reagent_containers/glass/beaker/vial/androrovir + name = "vial (androrovir)" + prefill = list("androrovir" = 1) + +/obj/item/weapon/reagent_containers/glass/beaker/vial/gynorovir + name = "vial (gynorovir)" + prefill = list("gynorovir" = 1) + +/obj/item/weapon/reagent_containers/glass/beaker/vial/androgynorovir + name = "vial (androgynorovir)" + prefill = list("androgynorovir" = 1) + +/obj/item/weapon/reagent_containers/glass/beaker/vial/macrocillin + name = "vial (macrocillin)" + prefill = list("macrocillin" = 1) + +/obj/item/weapon/reagent_containers/glass/beaker/vial/microcillin + name = "vial (microcillin)" + prefill = list("microcillin" = 1) + +/obj/item/weapon/reagent_containers/glass/beaker/vial/normalcillin + name = "vial (normalcillin)" + prefill = list("normalcillin" = 1) + /obj/item/weapon/reagent_containers/glass/beaker/vial/supermatter name = "vial (supermatter)" desc = "A glass vial containing the extremely dangerous results of grinding a shard of supermatter down to a fine powder." diff --git a/icons/obj/chemical_vr.dmi b/icons/obj/chemical_vr.dmi index 1046726245b..a08a052c90f 100644 Binary files a/icons/obj/chemical_vr.dmi and b/icons/obj/chemical_vr.dmi differ diff --git a/vorestation.dme b/vorestation.dme index 768fb81ea79..35258ecda87 100644 --- a/vorestation.dme +++ b/vorestation.dme @@ -1166,6 +1166,7 @@ #include "code\game\objects\items\pizza_voucher_vr.dm" #include "code\game\objects\items\poi_items.dm" #include "code\game\objects\items\robobag.dm" +#include "code\game\objects\items\selectable_item_vr.dm" #include "code\game\objects\items\shooting_range.dm" #include "code\game\objects\items\tailoring.dm" #include "code\game\objects\items\trash.dm"