Skip to content

Commit

Permalink
movement delay stack bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
doom committed Dec 29, 2023
1 parent 4a4c961 commit 1e9ac4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions code/modules/cm_aliens/XenoStructures.dm
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,11 @@
var/mob/living/carbon/human/H = AM
// Wait doesn't this stack slows if you get dragged over it? What's going on here?
if(istype(H) && !H.ally_of_hivenumber(hivenumber))
H.next_move_slowdown = H.next_move_slowdown + slow_amt
H.next_move_slowdown = max(H.next_move_slowdown, slow_amt)
return .
var/mob/living/carbon/xenomorph/X = AM
if(istype(X) && !X.ally_of_hivenumber(hivenumber))
X.next_move_slowdown = X.next_move_slowdown + slow_amt
X.next_move_slowdown = max(X.next_move_slowdown, slow_amt)
return .

/obj/effect/alien/resin/sticky/proc/forsaken_handling()
Expand Down
2 changes: 1 addition & 1 deletion code/modules/cm_aliens/weeds.dm
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
SEND_SIGNAL(crossing_mob, COMSIG_MOB_WEED_SLOWDOWN, slowdata, src)
var/final_slowdown = slowdata["movement_slowdown"]

crossing_mob.next_move_slowdown += POSITIVE(final_slowdown)
crossing_mob.next_move_slowdown = max(crossing_mob.next_move_slowdown, POSITIVE(final_slowdown))

// Uh oh, we might be dying!
// I know this is bad proc naming but it was too good to pass on and it's only used in this file anyways
Expand Down

0 comments on commit 1e9ac4a

Please sign in to comment.