Files
Bubberstation/code/modules/mob
SkyratBot 6cf1c0ff8a [MIRROR] Fixes slimepeople not being affected by blood deficiency quirk [MDB IGNORE] (#19867)
* Fixes slimepeople not being affected by blood deficiency quirk (#73866)

## About The Pull Request

Slimepeople were not being affected by the blood deficiency quirk due to
having `TRAIT_NOBLOOD`:

0426f7ddba/code/datums/quirks/negative_quirks.dm (L73-L74)

Additionally, the rate at which slimes regenerate blood is not the same
as the rate for humans.
I added a new species var, `blood_deficiency_drain_rate`, to allow for
variable drain rates that can be customized on a species basis.

Currently the only species with varying regen rates seem to be
slimepeople and vampires. In the case of vampires, they already lost
blood over time but it will now just happen slightly faster.

One thing to note for posterity: as a side effect of this, slimes with
this trait will have a pretty impressive appetite due to this:

afe6ecc353/code/modules/mob/living/carbon/human/species_types/jellypeople.dm (L63-L66)

If you find some way to keep your blood volume higher than
`BLOOD_VOLUME_NORMAL` then you can prevent the nutrition loss entirely.
Easier said than done though! Could lead to some interesting
shenanigans.

Fixes https://github.com/Skyrat-SS13/Skyrat-tg/issues/15447

## Why It's Good For The Game

Fixes a quirk being broken for some species. Code changes to allow for
better handling of such cases as variable species blood regen rates in
the future.

## Changelog

🆑
fix: slimepeople and vampires are now affected by the blood deficiency
quirk
/🆑

* Fixes slimepeople not being affected by blood deficiency quirk

---------

Co-authored-by: Bloop <vinylspiders@gmail.com>
2023-03-15 00:51:27 +00:00
..