Reverts canister tank ejection functionality (#14434)

* Reverts canister tank ejection functionality

* remove red button coloring

Co-authored-by: Kyep <Kyep@users.noreply.github.com>
This commit is contained in:
Kyep
2020-09-25 20:13:56 +00:00
committed by GitHub
parent fbb34fe482
commit e64bdb02c1
3 changed files with 3 additions and 6 deletions
+2 -4
View File
@@ -367,10 +367,8 @@ update_flag
if("eject")
if(holding)
if(valve_open)
if(air_contents && (air_contents.toxins > 0 || air_contents.sleeping_agent > 0))
message_admins("[ADMIN_LOOKUPFLW(usr)] removed [holding] from [src] with valve still open at [ADMIN_VERBOSEJMP(src)] releasing contents into the <span class='boldannounce'>air</span>.")
release_log += "[key_name(usr)] removed the [holding], leaving the valve open and transferring into the air<br>"
investigate_log("[key_name(usr)] removed the [holding], leaving the valve open and transferring into the <span class='boldannounce'>air</span>.", "atmos")
valve_open = FALSE
release_log += "Valve was <b>closed</b> by [key_name(usr)], stopping the transfer into the [holding]<br>"
replace_tank(usr, FALSE)
if("recolor")
if(can_label)
@@ -221,7 +221,6 @@ export const Canister = (props, context) => {
buttons={!!hasHoldingTank && (
<Button
icon="eject"
color={valveOpen && 'danger'}
content="Eject"
onClick={() => act('eject')} />
)}>
File diff suppressed because one or more lines are too long