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

[MIRROR] Cuts the number of apply_damage copypaste procs from 3(.5) to 1, fixing a few bugs along the way #323

Merged
merged 1 commit into from
Oct 28, 2023

Conversation

Steals-The-PRs
Copy link
Collaborator

Mirrored on Skyrat: Skyrat-SS13/Skyrat-tg#24619
Original PR: tgstation/tgstation#79207

About The Pull Request

  • apply_damage is now uniform, handled, in a single place. At the living level.
  • Fixes people being held at gunpoint from being unable to flinch from taking damage.
  • Fixes a few signals (explodable, glass jaw) of apply damage maybe potentially not having effects if the passed hit zone was a bodypart and not a def zone.
  • Fixes regenerator component always halting regeneration no matter what damage taken.
  • Fixes pressure damage being unaffected by brute_mod despite what documentation claims.
  • Signalizes the check_species_weakness proc on species.

Why It's Good For The Game

The copy+paste of this proc made it awful, awful to maintain or add features to. And also made it very bug prone.

This just takes a step forward in making sustaining damage a lot more consistent, not only across all mobs, but across all methods of... taking damage. Unarmed attacks, hulk, item attacks, etc.

Changelog

🆑 Melbert
fix: People held at gunpoint can now flinch when being hit.
fix: Regenerating mobs no longer stop regenerating no matter hit with what.
fix: Pressure damage is now properly modified by a mob's brute damage modifier.
fix: Fixes some occasions which some effects (glass jaw, explodable worn items) won't respond to hits.
refactor: Refactored core code related to mobs sustaining damage.
/:cl:

… to 1, fixing a few bugs along the way [MDB IGNORE] (#24619)

* Cuts the number of `apply_damage` copypaste procs from 3(.5) to 1, fixing a few bugs along the way

* Update _species.dm

* Update damage_procs.dm

* Modular adjustments

* Update mutant_species.dm

* Update mutant_species.dm

---------

Co-authored-by: MrMelbert <[email protected]>
Co-authored-by: Bloop <[email protected]>
@Iajret Iajret merged commit 14c17cf into master Oct 28, 2023
24 checks passed
@Iajret Iajret deleted the upstream-mirror-24619 branch October 28, 2023 12:36
AnywayFarus added a commit that referenced this pull request Oct 28, 2023
Iajret pushed a commit that referenced this pull request Jan 11, 2024
* Chat color tweaks, v1

* Update chat_color.dm

* Update chat_color.dm

* Update chat_color.dm

* Update chat_color.dm

* Whoops

* Whoops again!

* Update chat_color.dm

* Uhmm this doesn't include the # apparently

* Just making this a bit neater and adding comments

was it worth it?

* Chat colors now go off your voice rather than name
Iajret pushed a commit that referenced this pull request Jan 11, 2024
* Chat color tweaks, v1

* Update chat_color.dm

* Update chat_color.dm

* Update chat_color.dm

* Update chat_color.dm

* Whoops

* Whoops again!

* Update chat_color.dm

* Uhmm this doesn't include the # apparently

* Just making this a bit neater and adding comments

was it worth it?

* Chat colors now go off your voice rather than name

Co-authored-by: Bloop <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants