Adds chemistry kits

This commit is contained in:
Casey
2022-05-08 05:56:06 -04:00
committed by CHOMPStation2
parent 258b3b8a82
commit 16b58a8b18
5 changed files with 78 additions and 1 deletions

View File

@@ -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)

View File

@@ -254,7 +254,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,

View File

@@ -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."

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

@@ -1222,7 +1222,11 @@
#include "code\game\objects\items\pizza_voucher_vr.dm"
#include "code\game\objects\items\poi_items.dm"
#include "code\game\objects\items\robobag.dm"
<<<<<<< HEAD
#include "code\game\objects\items\sahoc_ch.dm"
=======
#include "code\game\objects\items\selectable_item_vr.dm"
>>>>>>> e929fba143... Merge pull request #12925 from Heroman3003/selectable-items
#include "code\game\objects\items\shooting_range.dm"
#include "code\game\objects\items\surplus_voucher_ch.dm"
#include "code\game\objects\items\tailoring.dm"