#188 refactored RPS dmg_high to high_dmg

This commit is contained in:
Mikayla Fischler
2023-03-04 22:32:13 -05:00
parent 83dc1064f7
commit 9eddab2c23
12 changed files with 27 additions and 27 deletions

View File

@@ -65,7 +65,7 @@ local IO_PORT = {
R_AUTO_CTRL = 13, -- active high, if the reactor burn rate is automatic
R_SCRAMMED = 14, -- active high, if the reactor is scrammed
R_AUTO_SCRAM = 15, -- active high, if the reactor was automatically scrammed
R_DMG_HIGH = 16, -- active high, if the reactor damage is high
R_HIGH_DMG = 16, -- active high, if the reactor damage is high
R_HIGH_TEMP = 17, -- active high, if the reactor is at a high temperature
R_LOW_COOLANT = 18, -- active high, if the reactor has very low coolant
R_EXCESS_HC = 19, -- active high, if the reactor has excess heated coolant
@@ -108,7 +108,7 @@ function rsio.to_string(port)
"R_AUTO_CTRL",
"R_SCRAMMED",
"R_AUTO_SCRAM",
"R_DMG_HIGH",
"R_HIGH_DMG",
"R_HIGH_TEMP",
"R_LOW_COOLANT",
"R_EXCESS_HC",
@@ -171,7 +171,7 @@ local RS_DIO_MAP = {
{ _in = _I_ACTIVE_HIGH, _out = _O_ACTIVE_HIGH, mode = IO_DIR.OUT },
-- R_AUTO_SCRAM
{ _in = _I_ACTIVE_HIGH, _out = _O_ACTIVE_HIGH, mode = IO_DIR.OUT },
-- R_DMG_HIGH
-- R_HIGH_DMG
{ _in = _I_ACTIVE_HIGH, _out = _O_ACTIVE_HIGH, mode = IO_DIR.OUT },
-- R_HIGH_TEMP
{ _in = _I_ACTIVE_HIGH, _out = _O_ACTIVE_HIGH, mode = IO_DIR.OUT },
@@ -215,7 +215,7 @@ function rsio.get_io_mode(port)
IO_MODE.DIGITAL_OUT, -- R_AUTO_CTRL
IO_MODE.DIGITAL_OUT, -- R_SCRAMMED
IO_MODE.DIGITAL_OUT, -- R_AUTO_SCRAM
IO_MODE.DIGITAL_OUT, -- R_DMG_HIGH
IO_MODE.DIGITAL_OUT, -- R_HIGH_DMG
IO_MODE.DIGITAL_OUT, -- R_HIGH_TEMP
IO_MODE.DIGITAL_OUT, -- R_LOW_COOLANT
IO_MODE.DIGITAL_OUT, -- R_EXCESS_HC

View File

@@ -273,7 +273,7 @@ types.FLUID = {
---@alias rps_trip_cause
---| "ok"
---| "dmg_high"
---| "high_dmg"
---| "high_temp"
---| "low_coolant"
---| "ex_waste"
@@ -288,7 +288,7 @@ types.FLUID = {
types.RPS_TRIP_CAUSE = {
OK = "ok",
DMG_HIGH = "dmg_high",
HIGH_DMG = "high_dmg",
HIGH_TEMP = "high_temp",
LOW_COOLANT = "low_coolant",
EX_WASTE = "ex_waste",