Skip to content

Commit

Permalink
[MIRROR] Disallows siphoning credits outside of station [MDB IGNORE] …
Browse files Browse the repository at this point in the history
…(#25733)

* Disallows siphoning credits outside of station (#80394)

## About The Pull Request

Imagine a funny little antagonist going to deep space with one of these.
You'll never find them, and even if it were to have a gps signal by the
time you were out to the location they could (And most like will) be
long gone, or in a different ruin entirely.

* Disallows siphoning credits outside of station

---------

Co-authored-by: Waterpig <[email protected]>
  • Loading branch information
2 people authored and FFMirrorBot committed Dec 19, 2023
1 parent db8b7c9 commit 156403b
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions code/game/machinery/bank_machine.dm
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,23 @@

switch(action)
if("siphon")
say("Siphon of station credits has begun!")
start_siphon(ui.user)
if(is_station_level(src.z) || is_centcom_level(src.z))
say("Siphon of station credits has begun!")
start_siphon(ui.user)
else
say("Error: Console not in reach of station, withdrawal cannot begin.")
. = TRUE
if("halt")
say("Station credit withdrawal halted.")
end_siphon()
. = TRUE

/obj/machinery/computer/bank_machine/on_changed_z_level()
. = ..()
if(siphoning && !(is_station_level(src.z) || is_centcom_level(src.z)))
say("Error: Console not in reach of station. Siphon halted.")
end_siphon()

/obj/machinery/computer/bank_machine/proc/end_siphon()
siphoning = FALSE
unauthorized = FALSE
Expand Down

0 comments on commit 156403b

Please sign in to comment.