Skip to content

Commit

Permalink
removes atmos cooling. beginning of game-magic cooling
Browse files Browse the repository at this point in the history
  • Loading branch information
Pockets-byte committed Jun 5, 2024
1 parent 4d7ad96 commit a5020e6
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@
var/combo = null
var/combocount = 0 //How far into the combo are they?
var/overheat_sound = 'sound/effects/smoke.ogg'
var/obj/machinery/atmospherics/components/binary/thermalregulator/regulator

var/list/parts = list()


/obj/machinery/ship_weapon/energy/beam
Expand All @@ -55,8 +54,7 @@
/obj/machinery/ship_weapon/energy/Initialize()
. = ..()
combo_target = "[pick(letters)][pick(letters)][pick(letters)][pick(letters)][pick(letters)]" //actually making the random sequince
regulator = locate(/obj/machinery/atmospherics/components/binary/thermalregulator) in orange(1, src)
regulator.linked_gun = src


/obj/machinery/ship_weapon/energy/examine(mob/user)
. = ..()
Expand Down Expand Up @@ -214,8 +212,9 @@
alignment = 0
freq = 0
say("WARNING! Critical heat density, emergency venting and shutdown initiated!")
atmos_spawn_air("water_vapor=150;TEMP=1000")
atmos_spawn_air("water_vapor=200;TEMP=1000")
heat = max_heat
charge = 0
return
charge_rate = initial(charge_rate) * power_modifier
max_charge = initial(max_charge) * power_modifier
Expand Down Expand Up @@ -287,7 +286,10 @@

/obj/machinery/ship_weapon/energy/multitool_act(mob/living/user, obj/item/I)
if(maint_state == MSTATE_CLOSED)
to_chat(user, "<span class='notice'>You must first open the maintenance panel before unwrenching the protective casing!</span>")
if (istype(I))
to_chat(user, "<span class='notice'>You log [src] in the multitool's buffer.</span>")
I.buffer = src
return TRUE
if(maint_state == MSTATE_UNSCREWED)
to_chat(user, "<span class='notice'>You must unbolt the protective casing before aligning the lenses!</span>")
if(maint_state == MSTATE_UNBOLTED)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/obj/machinery/cooling
name = "subspace cooling unit"
desc = "A cooling unit that dumps the massive amounts of heat energy weapons generate into subspace."
icon ='nsv13/icons/obj/energy_weapons.dmi'
icon_state = "phase_cannon"
circuit = /obj/item/circuitboard/machine/burst_phaser
bound_width = 32
pixel_x = -32
pixel_y = -32
idle_power_usage = 2000
var/active = FALSE
var/obj/ship_weapons/energy/parent


/obj/machinery/cooling/Initialize(mapload)
= ..()
parent = locate(/obj/ship_weapons/energy) in orange(1, src)

/obj/machinery/cooling/process(delta_time)
= ..()
if(parent.heat > 0)
parent.heat = max(parent.heat-50, 0)

0 comments on commit a5020e6

Please sign in to comment.