mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-05-19 13:20:47 +01:00
89fb9871e0
* next set of admin verbs * invoke * . * a few more * few more * . * few more * some more * move thos * next * some debug verbs * axe the old mod loading * del * is local for some verbs * few more * . * . * . * Add local narrate. * Fixes this Needed to be user.mob, since user is the client and usr was the old user.mob * fixes * . * . * . * . --------- Co-authored-by: Cameron Lennox <killer65311@gmail.com>
139 lines
3.9 KiB
Plaintext
139 lines
3.9 KiB
Plaintext
ADMIN_VERB(spawn_tanktransferbomb, R_SPAWN, "Instant TTV", "Spawn a tank transfer valve bomb.", ADMIN_CATEGORY_DEBUG_GAME)
|
|
var/obj/effect/spawner/newbomb/proto = /obj/effect/spawner/newbomb/radio/custom
|
|
|
|
var/p = tgui_input_number(user, "Enter phoron amount (mol):","Phoron", initial(proto.phoron_amt))
|
|
if(isnull(p))
|
|
return
|
|
|
|
var/o = tgui_input_number(user, "Enter oxygen amount (mol):","Oxygen", initial(proto.oxygen_amt))
|
|
if(isnull(o))
|
|
return
|
|
|
|
var/c = tgui_input_number(user, "Enter carbon dioxide amount (mol):","Carbon Dioxide", initial(proto.carbon_amt))
|
|
if(isnull(c))
|
|
return
|
|
|
|
new /obj/effect/spawner/newbomb/radio/custom(get_turf(user.mob), p, o, c)
|
|
|
|
/obj/effect/spawner/newbomb
|
|
name = "TTV bomb"
|
|
icon = 'icons/mob/screen1.dmi'
|
|
icon_state = "x"
|
|
|
|
var/assembly_type = /obj/item/assembly/signaler
|
|
|
|
//Note that the maximum amount of gas you can put in a 70L air tank at 1013.25 kPa and 519K is 16.44 mol.
|
|
var/phoron_amt = 12
|
|
var/oxygen_amt = 18
|
|
var/carbon_amt = 0
|
|
|
|
/obj/effect/spawner/newbomb/timer
|
|
name = "TTV bomb - timer"
|
|
assembly_type = /obj/item/assembly/timer
|
|
|
|
/obj/effect/spawner/newbomb/timer/syndicate
|
|
name = "TTV bomb - merc"
|
|
//High yield bombs. Yes, it is possible to make these with toxins
|
|
phoron_amt = 18.5
|
|
oxygen_amt = 28.5
|
|
|
|
/obj/effect/spawner/newbomb/proximity
|
|
name = "TTV bomb - proximity"
|
|
assembly_type = /obj/item/assembly/prox_sensor
|
|
|
|
/obj/effect/spawner/newbomb/radio/custom/Initialize(mapload, ph, ox, co)
|
|
if(ph != null) phoron_amt = ph
|
|
if(ox != null) oxygen_amt = ox
|
|
if(co != null) carbon_amt = co
|
|
. = ..()
|
|
|
|
/obj/effect/spawner/newbomb/Initialize(mapload)
|
|
. = ..()
|
|
var/obj/item/transfer_valve/V = new(src.loc)
|
|
var/obj/item/tank/phoron/PT = new(V)
|
|
var/obj/item/tank/oxygen/OT = new(V)
|
|
|
|
V.tank_one = PT
|
|
V.tank_two = OT
|
|
|
|
PT.master = V
|
|
OT.master = V
|
|
|
|
PT.valve_welded = 1
|
|
PT.air_contents.gas[GAS_PHORON] = phoron_amt
|
|
PT.air_contents.gas[GAS_CO2] = carbon_amt
|
|
PT.air_contents.total_moles = phoron_amt + carbon_amt
|
|
PT.air_contents.temperature = PHORON_MINIMUM_BURN_TEMPERATURE+1
|
|
PT.air_contents.update_values()
|
|
|
|
OT.valve_welded = 1
|
|
OT.air_contents.gas[GAS_O2] = oxygen_amt
|
|
OT.air_contents.total_moles = oxygen_amt
|
|
OT.air_contents.temperature = PHORON_MINIMUM_BURN_TEMPERATURE+1
|
|
OT.air_contents.update_values()
|
|
|
|
var/obj/item/assembly/S = new assembly_type(V)
|
|
V.attached_device = S
|
|
|
|
S.holder = V
|
|
S.toggle_secure()
|
|
|
|
V.update_icon()
|
|
return INITIALIZE_HINT_QDEL
|
|
|
|
|
|
///////////////////////
|
|
//One Tank Bombs, WOOOOOOO! -Luke
|
|
///////////////////////
|
|
|
|
/obj/effect/spawner/onetankbomb
|
|
name = "Single-tank bomb"
|
|
icon = 'icons/mob/screen1.dmi'
|
|
icon_state = "x"
|
|
|
|
// var/assembly_type = /obj/item/assembly/signaler
|
|
|
|
//Note that the maximum amount of gas you can put in a 70L air tank at 1013.25 kPa and 519K is 16.44 mol.
|
|
var/phoron_amt = 0
|
|
var/oxygen_amt = 0
|
|
|
|
/obj/effect/spawner/onetankbomb/Initialize(mapload) //just needs an assembly.
|
|
. = ..()
|
|
|
|
var/type = pick(/obj/item/tank/phoron/onetankbomb, /obj/item/tank/oxygen/onetankbomb)
|
|
new type(src.loc)
|
|
|
|
qdel(src)
|
|
|
|
/obj/effect/spawner/onetankbomb/full
|
|
name = "Single-tank bomb"
|
|
icon = 'icons/mob/screen1.dmi'
|
|
icon_state = "x"
|
|
|
|
// var/assembly_type = /obj/item/assembly/signaler
|
|
|
|
//Note that the maximum amount of gas you can put in a 70L air tank at 1013.25 kPa and 519K is 16.44 mol.
|
|
/obj/effect/spawner/onetankbomb/full/Initialize(mapload) //just needs an assembly.
|
|
. = ..()
|
|
|
|
var/type = pick(/obj/item/tank/phoron/onetankbomb/full, /obj/item/tank/oxygen/onetankbomb/full)
|
|
new type(src.loc)
|
|
|
|
qdel(src)
|
|
|
|
/obj/effect/spawner/onetankbomb/frag
|
|
name = "Single-tank bomb"
|
|
icon = 'icons/mob/screen1.dmi'
|
|
icon_state = "x"
|
|
|
|
// var/assembly_type = /obj/item/assembly/signaler
|
|
|
|
//Note that the maximum amount of gas you can put in a 70L air tank at 1013.25 kPa and 519K is 16.44 mol.
|
|
/obj/effect/spawner/onetankbomb/full/Initialize(mapload) //just needs an assembly.
|
|
. = ..()
|
|
|
|
var/type = pick(/obj/item/tank/phoron/onetankbomb/full, /obj/item/tank/oxygen/onetankbomb/full)
|
|
new type(src.loc)
|
|
|
|
qdel(src)
|