Skip to content

Commit

Permalink
Jetpack fix (Aurorastation#7975)
Browse files Browse the repository at this point in the history
This toggle makes the jetpack ready to jetpack when you press the jetpack button, because it turns the jetpack stabilization on and off when you press the jetpack button.
  • Loading branch information
Geevies authored and NonQueueingMatt committed Jan 12, 2020
1 parent bdc44d0 commit f079883
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/game/objects/items/weapons/tanks/jetpack.dm
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
set category = "Object"

on = !on
stabilization_on = !stabilization_on
if(on)
icon_state = "[icon_state]-on"
ion_trail.start()
Expand All @@ -81,7 +82,8 @@
M.update_inv_back()
M.update_action_buttons()

to_chat(usr, "You toggle the thrusters [on? "on":"off"].")
to_chat(usr, span("notice", "You toggle the thrusters [on? "on":"off"]."))
to_chat(usr, span("notice", "You toggle the stabilization [stabilization_on? "on":"off"]."))

/obj/item/tank/jetpack/proc/allow_thrust(num, mob/living/user as mob)
if(!(src.on))
Expand Down
6 changes: 6 additions & 0 deletions html/changelogs/geeves - jetpackfix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
author: Geeves

delete-after: True

changes:
- bugfix: "Jetpacks now properly toggle flight capability when you press the action button."

0 comments on commit f079883

Please sign in to comment.