Skip to content

Commit

Permalink
integrity viewing + tuned down power generation
Browse files Browse the repository at this point in the history
  • Loading branch information
XeonMations committed Jul 30, 2024
1 parent a39c8b6 commit 8470a11
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 78 deletions.
2 changes: 1 addition & 1 deletion code/modules/power/rbmk/_rbmk_defines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

#define RBMK_MAX_CRITICALITY 3 //No more criticality than N for now.

#define RBMK_POWER_FLAVOURISER 8000 //To turn those KWs into something usable
#define RBMK_POWER_FLAVOURISER 800 //To turn those KWs into something usable

#define WARNING_TIME_DELAY 60 //to prevent accent sounds from layering
#define REACTOR_COUNTDOWN_TIME 30 SECONDS
Expand Down
2 changes: 1 addition & 1 deletion code/modules/power/rbmk/rbmk_core.dm
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ Remember kids. If the reactor itself is not physically powered by an APC, it can
var/has_reached_emergency = FALSE

///Integrity of the machine, if reaches 900 the machine will explode. 1 so it doesnt stunlock itself and never change for damage calculations
var/critical_threshold_proximity = 1
var/critical_threshold_proximity = 0
///Store the integrity for calculations
var/critical_threshold_proximity_archived = 0
///Our "Shit is no longer fucked" message. We send it when critical_threshold_proximity is less then critical_threshold_proximity_archived
Expand Down
2 changes: 2 additions & 0 deletions code/modules/power/rbmk/rbmk_monitoring.dm
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@

/datum/computer_file/program/nuclear_monitor/ui_data()
var/list/data = list()
data["integrity"] = reactor ? reactor.get_integrity_percent() : 100
data["powerData"] = powerData
data["kpaData"] = kpaData
data["tempInputData"] = tempInputData
Expand Down Expand Up @@ -141,6 +142,7 @@

/obj/machinery/atmospherics/components/unary/rbmk/core/ui_data()
var/list/data = list()
data["integrity"] = get_integrity_percent()
data["coolantInput"] = last_coolant_temperature
data["coolantOutput"] = last_output_temperature
data["power"] = power
Expand Down
3 changes: 2 additions & 1 deletion tgui/packages/tgui/interfaces/NtosGhostRbmkStats.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ export const NtosGhostRbmkStats = (props, context) => {
<Section
title="Legend:"
buttons={<Button icon="search" onClick={() => act('swap_reactor')} content="Change Reactor" />}>
Reactor Integrity (%):
<ProgressBar value={data.integrity} minValue={0} maxValue={100} color="orange" />
Reactor Power (%):
<ProgressBar value={data.power} minValue={0} maxValue={100} color="yellow" />
<br />
Reactor Pressure (KPA):
<ProgressBar value={data.kpa} minValue={0} maxValue={8200} color="white">
{data.kpa} KPA
Expand Down
2 changes: 2 additions & 0 deletions tgui/packages/tgui/interfaces/NtosRbmkStats.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ export const NtosRbmkStats = (props, context) => {
<Section
title="Legend:"
buttons={<Button icon="search" onClick={() => act('swap_reactor')} content="Change Reactor" />}>
Reactor Integrity (%):
<ProgressBar value={data.integrity} minValue={0} maxValue={100} color="orange" />
Reactor Power (%):
<ProgressBar value={data.power} minValue={0} maxValue={100} color="yellow" />
<br />
Expand Down
75 changes: 0 additions & 75 deletions tgui/packages/tgui/interfaces/RbmkStats.js

This file was deleted.

0 comments on commit 8470a11

Please sign in to comment.