mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 15:17:01 +01:00
Fix shuttle engines anchored state not matching engine_state (#91345)
## About The Pull Request Building a shuttle engine from a circuit has a misaligned state where you can weld it immediately because it thinks the engine is already anchored when it is not. This results in welded engines being able to be dragged and moved around. ## Why It's Good For The Game Bugfix. ## Changelog 🆑 fix: Fix shuttle engines built from a circuit board having it's `anchored` state not matching the correct `engine_state`. This would consider the engine to be anchored already when it was not and allow someone to weld it despite it being able to be dragged and moved around. /🆑
This commit is contained in:
@@ -39,6 +39,9 @@
|
||||
. = ..()
|
||||
AddComponent(/datum/component/simple_rotation)
|
||||
register_context()
|
||||
if(!mapload)
|
||||
engine_state = ENGINE_UNWRENCHED
|
||||
anchored = FALSE
|
||||
|
||||
/obj/machinery/power/shuttle_engine/on_construction(mob/user)
|
||||
. = ..()
|
||||
@@ -191,10 +194,6 @@
|
||||
name = "burst engine"
|
||||
desc = "An engine that releases a large bluespace burst to propel it."
|
||||
|
||||
/obj/machinery/power/shuttle_engine/propulsion/burst/cargo
|
||||
engine_state = ENGINE_UNWRENCHED
|
||||
anchored = FALSE
|
||||
|
||||
/obj/machinery/power/shuttle_engine/propulsion/burst/left
|
||||
name = "left burst engine"
|
||||
icon_state = "burst_l"
|
||||
|
||||
@@ -103,7 +103,7 @@
|
||||
cost = CARGO_CRATE_VALUE * 6
|
||||
access = ACCESS_CE
|
||||
access_view = ACCESS_CE
|
||||
contains = list(/obj/machinery/power/shuttle_engine/propulsion/burst/cargo)
|
||||
contains = list(/obj/machinery/power/shuttle_engine/propulsion/burst)
|
||||
crate_name = "shuttle engine crate"
|
||||
crate_type = /obj/structure/closet/crate/secure/engineering
|
||||
|
||||
|
||||
Reference in New Issue
Block a user