]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Tiny mobs can no longer pass on the zombie disease (#21676)
authornikthechampiongr <32041239+nikthechampiongr@users.noreply.github.com>
Sun, 19 Nov 2023 22:28:05 +0000 (22:28 +0000)
committerGitHub <noreply@github.com>
Sun, 19 Nov 2023 22:28:05 +0000 (14:28 -0800)
commit99cdff2b87fe2bba272a15930d90c6e305930ab1
tree2e719a9df37c812afac3bee52ce4ecaa0e9999de
parentf3df6b85afdd7d402fb6f1232e82bc2d7c409481
Tiny mobs can no longer pass on the zombie disease (#21676)

This reverts f391ff28 and implements an alternate messure where mice and other small animals can no longer infect people as zombies.

This is done through a component which if present cancels the check that would cause zombie components to be added on people that get infected due to a bite.

This still allows other special stuff that happens in that function that may affect already infected individuals.
This is a compromise between what's discussed in discord which would much rather see mice and other animals just die from the infection and people on github which would see no change happen.

Since bats can't go under doors it may not be necessary to make them non spreaders.
If someone disagrees please tell me to just add it back.
Content.Server/Zombies/NonSpreaderZombieComponent.cs [new file with mode: 0644]
Content.Server/Zombies/ZombieImmuneComponent.cs
Content.Server/Zombies/ZombieSystem.cs
Resources/Prototypes/Entities/Mobs/NPCs/animals.yml
Resources/Prototypes/Entities/Mobs/NPCs/spacetick.yml