Skip to content

Commit

Permalink
balance: no more jumps in space (and without gravity) (#5136)
Browse files Browse the repository at this point in the history
* yes

* правки звея
  • Loading branch information
NightDawnFox authored Jun 3, 2024
1 parent 2df683b commit fd9a496
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/modules/clothing/shoes/miscellaneous.dm
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,9 @@
if(user.throwing)
to_chat(user, span_warning("You can't jump in the middle of another jump!"))
return
if(!jumper.has_gravity())
to_chat(user, span_warning("You can't jump without gravity!"))
return

var/atom/target = get_edge_target_turf(user, user.dir) //gets the user's direction

Expand Down
5 changes: 5 additions & 0 deletions code/modules/surgery/organs/augments_legs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,15 @@
/datum/action/bhop/Trigger(left_click = TRUE)
if(!IsAvailable())
return

if(recharging_time > world.time)
to_chat(owner, span_warning("The boot's internal propulsion needs to recharge still!"))
return

if(!owner.has_gravity())
to_chat(owner, span_warning("You can't jump without gravity!"))
return

if(owner.throwing)
to_chat(owner, span_warning("You can't jump in the middle of another jump!"))
return
Expand Down

0 comments on commit fd9a496

Please sign in to comment.