mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-16 09:34:52 +01:00
cdfa1c853f
* Initial * some more * next few * only light left * fix things up * some rmore fixes * guh * Update ai_vr.dm * comment * lets try something * . * hmm * . * . * hmm * push that here * fix layout * grrr
142 lines
4.0 KiB
Plaintext
142 lines
4.0 KiB
Plaintext
/client/proc/spawn_tanktransferbomb()
|
|
set category = "Debug.Game"
|
|
set desc = "Spawn a tank transfer valve bomb"
|
|
set name = "Instant TTV"
|
|
|
|
if(!check_rights(R_SPAWN)) return
|
|
|
|
var/obj/effect/spawner/newbomb/proto = /obj/effect/spawner/newbomb/radio/custom
|
|
|
|
var/p = tgui_input_number(usr, "Enter phoron amount (mol):","Phoron", initial(proto.phoron_amt))
|
|
if(p == null) return
|
|
|
|
var/o = tgui_input_number(usr, "Enter oxygen amount (mol):","Oxygen", initial(proto.oxygen_amt))
|
|
if(o == null) return
|
|
|
|
var/c = tgui_input_number(usr, "Enter carbon dioxide amount (mol):","Carbon Dioxide", initial(proto.carbon_amt))
|
|
if(c == null) return
|
|
|
|
new /obj/effect/spawner/newbomb/radio/custom(get_turf(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)
|