Skip to content

Commit

Permalink
"works"
Browse files Browse the repository at this point in the history
  • Loading branch information
Pockets-byte committed Jun 6, 2024
1 parent de4e85d commit 5b1febc
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,16 +253,16 @@



/obj/machinery/ship_weapon/energy/proc/process_heat(delta_time)//heat management. don't push your weapons too hard. actual heat generation is in _ship_weapons.dm
/obj/machinery/ship_weapon/energy/proc/process_heat()//heat management. don't push your weapons too hard. actual heat generation is in _ship_weapons.dm
for(var/obj/machinery/cooling/cooler/C in coolers)
if(!(C.machine_stat & (BROKEN|NOPOWER|MAINT)))
cooling_amount++
for(var/obj/machinery/cooling/storage/C in storages)
if(!(C.machine_stat & (BROKEN|NOPOWER|MAINT)))
storage_amount++
max_heat = initial(max_heat) + (min((storage_amount),10))*storage_rate
max_heat = initial(max_heat) + ((min((storage_amount),10))*storage_rate)
if(heat > 0)
heat = max(heat-(min((cooling_amount),10)*delta_time*heat_rate),0)
heat = max(heat-(min((cooling_amount),10)*heat_rate),0)
if(overloaded & (heat <= (max_heat/50)))
overloaded = 0
if(overloaded)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@

/obj/machinery/cooling/cooler/Initialize(mapload)
. = ..()
for(var/obj/machinery/ship_weapon/energy/E as() in orange(1, src))
for(var/obj/machinery/ship_weapon/energy/E in orange(1, src)) //I have no idea what I'm doing and this causes errors so
E.coolers |= src
parent = E
break

/obj/machinery/cooling/storage/Initialize(mapload)
. = ..()
for(var/obj/machinery/ship_weapon/energy/E as() in orange(1, src))
for(var/obj/machinery/ship_weapon/energy/E in orange(1, src))
E.storages |= src
parent = E
break
Expand Down Expand Up @@ -69,7 +69,7 @@
if(on)
. += "The power is on"
if(parent)
. += "The subspace transcever is linked"
. += "The thermal subspace transcever is linked"
else
. += "it's completely inactive"

Expand Down
29 changes: 14 additions & 15 deletions tgui/packages/tgui/interfaces/EnergyWeapons.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ export const EnergyWeapons = (props, context) => {
good: [-Infinity, 0.2],
average: [0.2, 0.5],
bad: [0.5, Infinity],
}}>
</ProgressBar>
}} />
Charge:
<br />
<ProgressBar
Expand All @@ -60,24 +59,24 @@ export const EnergyWeapons = (props, context) => {
average: [0.15, 0.50],
bad: [-Infinity, 0.15],
}} />
</Section>
</Section>
<Section title="Lens Alignment:">
<ProgressBar
value={data.alignment* 0.01}
ranges={{
good: [0.5, Infinity],
average: [0.15, 0.5],
bad: [-Infinity, 0.15],
<ProgressBar
value={data.alignment* 0.01}
ranges={{
good: [0.5, Infinity],
average: [0.15, 0.5],
bad: [-Infinity, 0.15],
}} />
</Section>
<Section title="Frequency Alignment:">
<ProgressBar
value={data.frequency* 0.01}
ranges={{
good: [0.5, Infinity],
average: [0.15, 0.5],
bad: [-Infinity, 0.15],
}} />
value={data.frequency* 0.01}
ranges={{
good: [0.5, Infinity],
average: [0.15, 0.5],
bad: [-Infinity, 0.15],
}} />
</Section>
<Section title="Settings:">
Power Input Level:
Expand Down

0 comments on commit 5b1febc

Please sign in to comment.