Skip to content

Commit

Permalink
Commended Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
LC4492 committed Jul 29, 2024
1 parent 9613651 commit dd0d63b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
9 changes: 8 additions & 1 deletion code/modules/cm_marines/altitude_control_console.dm
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ GLOBAL_VAR_INIT(alt_ctrl_disabled, FALSE)
#define COOLING -10
#define OVERHEAT_COOLING -5
#define HEATING 10
#define B_HEATING 20
#define OVERHEAT 100

//Has the ships temperature set to 0 on startup, sets the global default var to med
Expand All @@ -31,6 +32,9 @@ GLOBAL_VAR_INIT(ship_alt, SHIP_ALT_MED)
/obj/structure/machinery/computer/altitude_control_console/ex_act()
return

/obj/structure/machinery/computer/altitude_control_console/bullet_act()
return

/obj/structure/machinery/computer/altitude_control_console/attack_hand()
. = ..()
if(!skillcheck(usr, SKILL_NAVIGATIONS, SKILL_NAVIGATIONS_TRAINED))
Expand Down Expand Up @@ -72,7 +76,10 @@ GLOBAL_VAR_INIT(ship_alt, SHIP_ALT_MED)
if(!temperature_change)
switch(GLOB.ship_alt)
if(SHIP_ALT_LOW)
temperature_change = HEATING
if(prob(50))
temperature_change = HEATING
else
temperature_change = B_HEATING
if(SHIP_ALT_MED)
temperature_change = COOLING
if(SHIP_ALT_HIGH)
Expand Down
7 changes: 7 additions & 0 deletions tgui/packages/tgui/interfaces/AltitudeControlConsole.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ export const AltitudeControlConsole = () => {
</Button>
}
</Section>
<Section title="System Operational Warning">
<Box textAlign="center" fontSize="20px">
The Ship will always be set according to the disabled option, if
none of the two options available to you are disabled, that means
the ship is on high altitude
</Box>
</Section>
</Window.Content>
</Window>
);
Expand Down

0 comments on commit dd0d63b

Please sign in to comment.