Skip to content

Commit

Permalink
fixes pylons (again)
Browse files Browse the repository at this point in the history
fixes another thing that could break with pylons when shutting the drive down, namely them getting stuck shutdown
in other words woo I finally reproduced the cause.
  • Loading branch information
DeltaFire15 committed Dec 2, 2023
1 parent e050ad9 commit 95bc200
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 2 additions & 0 deletions nsv13/code/modules/overmap/FTL/components/drive.dm
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,8 @@ Preset classes of FTL drive with pre-programmed behaviours
jump_speed_pylon = initial(jump_speed_pylon)
if(shutdown_pylons)
for(var/obj/machinery/atmospherics/components/binary/drive_pylon/P as() in pylons)
if(P.pylon_state == PYLON_STATE_OFFLINE || P.pylon_state == PYLON_STATE_SHUTDOWN)
continue
P.set_state(PYLON_STATE_SHUTDOWN)
cooldown = TRUE
addtimer(CALLBACK(src, PROC_REF(post_cooldown), auto_spool_enabled), FTL_COOLDOWN)
Expand Down
9 changes: 1 addition & 8 deletions nsv13/code/modules/overmap/FTL/components/drive_pylon.dm
Original file line number Diff line number Diff line change
Expand Up @@ -387,16 +387,9 @@
else
to_chat(user, "<span class='info'>You don't think it would be wise to touch this right now.</span>")


#undef PYLON_STATE_OFFLINE
#undef PYLON_STATE_STARTING
#undef PYLON_STATE_WARMUP
#undef PYLON_STATE_SPOOLING
#undef PYLON_STATE_ACTIVE
#undef PYLON_STATE_SHUTDOWN

#undef MAX_WASTE_OUTPUT_PRESSURE
#undef MAX_WASTE_STORAGE_PRESSURE
#undef WASTE_GAS_HEAT

#undef PYLON_ACTIVE_EXPONENT
#undef POWER_FAIL_TOLERANCE

0 comments on commit 95bc200

Please sign in to comment.