Merge pull request #809 from Citadel-Station-13/upstream-merge-26933
[MIRROR] Makes medbay vending machines buildable
This commit is contained in:
@@ -56,6 +56,7 @@
|
|||||||
var/dish_quants = list() //used by the snack machine's custom compartment to count dishes.
|
var/dish_quants = list() //used by the snack machine's custom compartment to count dishes.
|
||||||
|
|
||||||
var/obj/item/weapon/vending_refill/refill_canister = null //The type of refill canisters used by this machine.
|
var/obj/item/weapon/vending_refill/refill_canister = null //The type of refill canisters used by this machine.
|
||||||
|
var/refill_count = 3 //The number of canisters the vending machine uses
|
||||||
|
|
||||||
/obj/machinery/vending/Initialize()
|
/obj/machinery/vending/Initialize()
|
||||||
..()
|
..()
|
||||||
@@ -88,7 +89,9 @@
|
|||||||
/obj/machinery/vending/cola = "Robust Softdrinks",
|
/obj/machinery/vending/cola = "Robust Softdrinks",
|
||||||
/obj/machinery/vending/cigarette = "ShadyCigs Deluxe",
|
/obj/machinery/vending/cigarette = "ShadyCigs Deluxe",
|
||||||
/obj/machinery/vending/autodrobe = "AutoDrobe",
|
/obj/machinery/vending/autodrobe = "AutoDrobe",
|
||||||
/obj/machinery/vending/clothing = "ClothesMate")
|
/obj/machinery/vending/clothing = "ClothesMate",
|
||||||
|
/obj/machinery/vending/medical = "NanoMed Plus",
|
||||||
|
/obj/machinery/vending/wallmed = "NanoMed")
|
||||||
|
|
||||||
/obj/item/weapon/circuitboard/machine/vendor/attackby(obj/item/I, mob/user, params)
|
/obj/item/weapon/circuitboard/machine/vendor/attackby(obj/item/I, mob/user, params)
|
||||||
if(istype(I, /obj/item/weapon/screwdriver))
|
if(istype(I, /obj/item/weapon/screwdriver))
|
||||||
@@ -104,7 +107,7 @@
|
|||||||
/obj/item/weapon/circuitboard/machine/vendor/proc/set_type(var/obj/machinery/vending/typepath)
|
/obj/item/weapon/circuitboard/machine/vendor/proc/set_type(var/obj/machinery/vending/typepath)
|
||||||
build_path = typepath
|
build_path = typepath
|
||||||
name = "[names_paths[build_path]] Vendor (Machine Board)"
|
name = "[names_paths[build_path]] Vendor (Machine Board)"
|
||||||
req_components = list(initial(typepath.refill_canister) = 3)
|
req_components = list(initial(typepath.refill_canister) = initial(typepath.refill_count))
|
||||||
|
|
||||||
/obj/item/weapon/circuitboard/machine/vendor/apply_default_parts(obj/machinery/M)
|
/obj/item/weapon/circuitboard/machine/vendor/apply_default_parts(obj/machinery/M)
|
||||||
for(var/typepath in names_paths)
|
for(var/typepath in names_paths)
|
||||||
@@ -113,7 +116,6 @@
|
|||||||
break
|
break
|
||||||
..()
|
..()
|
||||||
|
|
||||||
|
|
||||||
/obj/machinery/vending/Destroy()
|
/obj/machinery/vending/Destroy()
|
||||||
qdel(wires)
|
qdel(wires)
|
||||||
wires = null
|
wires = null
|
||||||
@@ -877,6 +879,7 @@ IF YOU MODIFY THE PRODUCTS LIST OF A MACHINE, MAKE SURE TO UPDATE ITS RESUPPLY C
|
|||||||
premium = list(/obj/item/weapon/storage/box/hug/medical = 1,/obj/item/weapon/reagent_containers/hypospray/medipen = 3, /obj/item/weapon/storage/belt/medical = 3, /obj/item/weapon/wrench/medical = 1)
|
premium = list(/obj/item/weapon/storage/box/hug/medical = 1,/obj/item/weapon/reagent_containers/hypospray/medipen = 3, /obj/item/weapon/storage/belt/medical = 3, /obj/item/weapon/wrench/medical = 1)
|
||||||
armor = list(melee = 100, bullet = 100, laser = 100, energy = 100, bomb = 0, bio = 0, rad = 0, fire = 100, acid = 50)
|
armor = list(melee = 100, bullet = 100, laser = 100, energy = 100, bomb = 0, bio = 0, rad = 0, fire = 100, acid = 50)
|
||||||
resistance_flags = FIRE_PROOF
|
resistance_flags = FIRE_PROOF
|
||||||
|
refill_canister = /obj/item/weapon/vending_refill/medical
|
||||||
|
|
||||||
//This one's from bay12
|
//This one's from bay12
|
||||||
/obj/machinery/vending/plasmaresearch
|
/obj/machinery/vending/plasmaresearch
|
||||||
@@ -899,6 +902,8 @@ IF YOU MODIFY THE PRODUCTS LIST OF A MACHINE, MAKE SURE TO UPDATE ITS RESUPPLY C
|
|||||||
contraband = list(/obj/item/weapon/reagent_containers/pill/tox = 2,/obj/item/weapon/reagent_containers/pill/morphine = 2)
|
contraband = list(/obj/item/weapon/reagent_containers/pill/tox = 2,/obj/item/weapon/reagent_containers/pill/morphine = 2)
|
||||||
armor = list(melee = 100, bullet = 100, laser = 100, energy = 100, bomb = 0, bio = 0, rad = 0, fire = 100, acid = 50)
|
armor = list(melee = 100, bullet = 100, laser = 100, energy = 100, bomb = 0, bio = 0, rad = 0, fire = 100, acid = 50)
|
||||||
resistance_flags = FIRE_PROOF
|
resistance_flags = FIRE_PROOF
|
||||||
|
refill_canister = /obj/item/weapon/vending_refill/medical
|
||||||
|
refill_count = 1
|
||||||
|
|
||||||
/obj/machinery/vending/security
|
/obj/machinery/vending/security
|
||||||
name = "\improper SecTech"
|
name = "\improper SecTech"
|
||||||
|
|||||||
@@ -71,3 +71,9 @@
|
|||||||
icon_state = "refill_clothes"
|
icon_state = "refill_clothes"
|
||||||
charges = list(31, 4, 4)// of 101 standard, 12 contraband, 10 premium(?)
|
charges = list(31, 4, 4)// of 101 standard, 12 contraband, 10 premium(?)
|
||||||
init_charges = list(31, 4, 4)
|
init_charges = list(31, 4, 4)
|
||||||
|
|
||||||
|
/obj/item/weapon/vending_refill/medical
|
||||||
|
machine_name = "NanoMed"
|
||||||
|
icon_state = "refill_medical"
|
||||||
|
charges = list(26, 5, 3)// of 76 standard, 13 contraband, 8 premium
|
||||||
|
init_charges = list(26, 5, 3)
|
||||||
@@ -828,6 +828,14 @@
|
|||||||
/obj/item/weapon/defibrillator/loaded)
|
/obj/item/weapon/defibrillator/loaded)
|
||||||
crate_name = "defibrillator crate"
|
crate_name = "defibrillator crate"
|
||||||
|
|
||||||
|
/datum/supply_pack/medical/vending
|
||||||
|
name = "Medical Vending Crate"
|
||||||
|
cost = 2000
|
||||||
|
contains = list(/obj/item/weapon/vending_refill/medical,
|
||||||
|
/obj/item/weapon/vending_refill/medical,
|
||||||
|
/obj/item/weapon/vending_refill/medical)
|
||||||
|
crate_name = "medical vending crate"
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
//////////////////////////// Science /////////////////////////////////////////
|
//////////////////////////// Science /////////////////////////////////////////
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.3 KiB |
Reference in New Issue
Block a user