Skip to content

Commit

Permalink
post-Revision
Browse files Browse the repository at this point in the history
  • Loading branch information
DeltaFire15 committed Nov 7, 2023
1 parent 6c1a4ed commit 34eafea
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
6 changes: 3 additions & 3 deletions nsv13/code/modules/overmap/pdsr.dm
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
state = REACTOR_STATE_RUNNING

if(state == REACTOR_STATE_RUNNING)
if(nuc_in >= reaction_injection_rate) //If we are running in nominal conditions...
if(nuc_in >= reaction_injection_rate && reaction_injection_rate >= 2.5) //If we are running in nominal conditions...
nucleium_input.adjust_moles(GAS_NUCLEIUM, -reaction_injection_rate)
//Handle reaction rate adjustments here
var/target_reaction_rate = ((0.5 + (1e-03 * (reaction_injection_rate ** 2))) + (current_uptime / 2000)) * 16
Expand All @@ -182,7 +182,7 @@
reaction_temperature += reaction_rate * 0.35 //Function goes
handle_polarity(TRUE)

else if(nuc_in < reaction_injection_rate) //If we are running without sufficient nucleium...
else //If we are running without sufficient nucleium...
if(nuc_in <= 0) //...and none at all
var/target_reaction_rate = 0
var/delta_reaction_rate = target_reaction_rate - reaction_rate
Expand All @@ -201,7 +201,7 @@
handle_polarity(TRUE)

if(reaction_rate > 5) //TEMP USE FUNCTIONS
reaction_energy_output = (reaction_rate + (reaction_injection_rate / 2)) * (2 - (current_uptime / 20000)) //FUNCTIONS
reaction_energy_output = (reaction_rate + (min(nuc_in, reaction_injection_rate) / 2)) * (2 - (current_uptime / 20000)) //FUNCTIONS
radiation_pulse(src, reaction_energy_output)

else
Expand Down
2 changes: 1 addition & 1 deletion nsv13/code/modules/overmap/weapons/projectiles_fx.dm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

///Special proj for hitting overmap hips only used by NSV projectiles.
///Special proc for hitting overmap ships only used by NSV projectiles.
/obj/item/projectile/proc/spec_overmap_hit(obj/structure/overmap/target)
return

Expand Down
11 changes: 8 additions & 3 deletions tgui/packages/tgui/interfaces/PDSRMainframe.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,9 @@ export const PDSRMainframe = (props, context) => {
minValue={0}
maxValue={25}
ranges={{
bad: [0, 5],
average: [20, 25],
default: [5, 20],
yellow: [2.5, Infinity],
bad: [-Infinity, 2.5],
}}
step={1}
stepPixelSize={27}
Expand Down Expand Up @@ -159,7 +160,11 @@ export const PDSRMainframe = (props, context) => {
value={data.r_reaction_rate}
minValue={0}
maxValue={25}
color="teal" >
color={data.r_temp === 0 ? "default" : null}
ranges={{
bad: [-Infinity, 5],
teal: [5, Infinity],
}}>
{data.r_reaction_rate + ' mol/s'}
</ProgressBar>
Screen Capacity:
Expand Down

0 comments on commit 34eafea

Please sign in to comment.