Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dragging through firelocks #7418

Merged
merged 5 commits into from
Jan 1, 2020

Conversation

monster860
Copy link
Member

馃啈 monster860
tweak: When an edge firelock closes, if it closes between someone and something they're dragging it automatically pulls the thing they're dragging through.
/:cl:

@yogstation13-bot yogstation13-bot added the Tweak This PR contains changes to the game. label Dec 27, 2019
@Hopekz
Copy link
Contributor

Hopekz commented Dec 27, 2019

Yes finally speedmerge THIS IS WHAT IS NEEDED the answer to our prayers all hail #7418

for(var/mob/living/M in T1)
if(M.stat == CONSCIOUS && M.pulling && M.pulling.loc == T2)
to_chat(M, "<span class='notice'>You pull [M.pulling] through [src] right as it closes</span>")
M.pulling.forceMove(T1)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoa whoa whoa, ripping people from chairs as the firelock closes?

Suggested change
M.pulling.forceMove(T1)
M.pulling.Move_Pulled(T1)

for(var/mob/living/M in T2)
if(M.stat == CONSCIOUS && M.pulling && M.pulling.loc == T1)
to_chat(M, "<span class='notice'>You pull [M.pulling] through [src] right as it closes</span>")
M.pulling.forceMove(T2)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
M.pulling.forceMove(T2)
M.pulling.Move_Pulled(T2)

@Darkstick
Copy link
Contributor

s p e e d m e r g e

Copy link
Member

@alexkar598 alexkar598 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure the pullers move_force is stronger than the pulled move_resist

@alexkar598 alexkar598 merged commit 663a0de into yogstation13:master Jan 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Tweak This PR contains changes to the game.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants