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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mobility Refactor #8965

Closed
wants to merge 62 commits into from
Closed

Conversation

Tsar-Salat
Copy link
Contributor

@Tsar-Salat Tsar-Salat commented May 1, 2023

Ports /tg/:

About The Pull Request

Closes #8108

Contributes to #7213

This is an atomization and successor of #8474.
I decided to make a new pr because I wasnt proud of the previous pr. At the time I was much less experienced, and mostly relied on the Monke port, rather than understanding the source material.

Lets get into it. The main concept behind TG's mobility refactor is to make mobility more event-based, reduce stupid is_var checks, and move all these proc-based mobility shit to signals/status effects.
Doing so lets us append a LOT more behavior, it should lead to an easier time if we get to porting wounds or kapulimbs.

tl;dr the purpose of this is to kill the /update_mobility method, and compensate for the handling of that code instead of calling this one huge terrible method

Why It's Good For The Game

image

This is an adequate summary of what this does for us.

Testing Photographs and Procedure

Screenshots&Videos

Rest control
restcontrol

Stasis applies properly to plasmameme
stasis-plasmameme

I busted my arm
limb-disabling

cryo applies correctly
cryolooksfine

tucked in
tuckedin

Changelog

🆑 RKz, Rohesie, ExcessiveUseOfCobblestone
add: transitioning between resting and unresting is much more smooth, with an interruptable do_after
add: HUD feature that will allow you to succumb in Hardcrit. You dont have to type the ghost verb or whisper to kill yourself, just hit the HUD popup
add: with the addition of the succumb feature, you can no longer kill yourself accidentely while trying to whisper in a state of softcrit or hardcrit. You will speak, or not be able to in that instance.
tweak: Hardcrit is an actual state now, I moved most stuff that were intended for it from the unconscious state. The majority of checks will now check for both states however.
refactor: basically all the limb disabling system, makes it event-based
refactor: made a bunch of movement-related code signal-based instead of /proc/
code: carbon body position checks
code: made a bunch of overused redefines into setters
rscadd: ghost sprite for succumbing
/:cl:

@Tsar-Salat
Copy link
Contributor Author

Oh yeah, this one also doesn't conflict with #8204, as I included no blindness changes

@Tsar-Salat Tsar-Salat closed this May 1, 2023
@Tsar-Salat Tsar-Salat deleted the crit-status branch May 1, 2023 17:10
@Tsar-Salat Tsar-Salat restored the crit-status branch May 1, 2023 17:11
@Tsar-Salat Tsar-Salat deleted the crit-status branch May 1, 2023 17:12
@Tsar-Salat Tsar-Salat restored the crit-status branch May 1, 2023 17:25
@Tsar-Salat
Copy link
Contributor Author

mfw

@Tsar-Salat Tsar-Salat reopened this May 1, 2023
@github-actions
Copy link

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@Tsar-Salat
Copy link
Contributor Author

Two down! Nice.

@github-actions
Copy link

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions
Copy link

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions
Copy link

github-actions bot commented Aug 2, 2023

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions
Copy link

github-actions bot commented Aug 6, 2023

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@Tsar-Salat
Copy link
Contributor Author

im taking a break, Semester begins soon and this is affecting my mental health

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants