Skip to content

Commit

Permalink
Canisters don't late init their gases
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorDinamit committed Feb 15, 2024
1 parent c7eb310 commit 2f8ce52
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions code/game/machinery/atmoalter/canister.dm
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,11 @@
/// A temperature in Kelvin for this canister's air contents to begin with. Use this for pre-chilled gases.
var/initial_temperature

/obj/machinery/portable_atmospherics/canister/LateInitialize(mapload)
/obj/machinery/portable_atmospherics/canister/Initialize(mapload)
. = ..(mapload)
if (prob(1))
if(prob(1))
desc += " Does not hold GAS." // huhuhu
if (!mapload) // Call gas creation after normal init if we're midround - otherwise, we'll runtime and have no gases
addtimer(CALLBACK(src, .proc/create_initial_gases), 0)
else
create_initial_gases()
create_initial_gases()

/// Fills this canister with gas based on its subtype's initial_gases list. Should only happen during initial creation.
/obj/machinery/portable_atmospherics/canister/proc/create_initial_gases()
Expand Down

0 comments on commit 2f8ce52

Please sign in to comment.