[fix] Fix rotting (#16039)

* Fix rotting

* empty
This commit is contained in:
Nemanja
2023-05-03 00:57:47 -04:00
committed by GitHub
parent 6a9742a656
commit b16eba534a
12 changed files with 381 additions and 417 deletions

View File

@@ -1,5 +1,4 @@
using Content.Server.Atmos.Components;
using Content.Server.Atmos.Miasma;
using Content.Server.Body.Components;
using Content.Server.Body.Systems;
using Content.Server.Chat;
@@ -108,11 +107,6 @@ namespace Content.Server.Zombies
RemComp<HungerComponent>(target);
RemComp<ThirstComponent>(target);
//funny voice
EnsureComp<ReplacementAccentComponent>(target).Accent = "zombie";
var rotting = EnsureComp<RottingComponent>(target);
rotting.DealDamage = false;
//This is needed for stupid entities that fuck up combat mode component
//in an attempt to make an entity not attack. This is the easiest way to do it.
RemComp<CombatModeComponent>(target);