Move faction exception and everything it needs to shared (#25154)
* move faction prototype to shared * move faction exception and member stuff to shared * fix breaking changes for random stuff * move pettable friend stuff to shared * mostly fix * final fixy * dragonops * final fixy II * use querys and fix warpspeed fish (probably) * fixer * Rrrr! --------- Co-authored-by: deltanedas <@deltanedas:kde.org> Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
@@ -25,6 +25,8 @@ using Content.Shared.Mobs;
|
||||
using Content.Shared.Mobs.Components;
|
||||
using Content.Shared.Mobs.Systems;
|
||||
using Content.Shared.Movement.Systems;
|
||||
using Content.Shared.NPC.Components;
|
||||
using Content.Shared.NPC.Systems;
|
||||
using Content.Shared.Nutrition.AnimalHusbandry;
|
||||
using Content.Shared.Nutrition.Components;
|
||||
using Content.Shared.Popups;
|
||||
@@ -215,11 +217,7 @@ namespace Content.Server.Zombies
|
||||
_damageable.SetAllDamage(target, damageablecomp, 0);
|
||||
_mobState.ChangeMobState(target, MobState.Alive);
|
||||
|
||||
var factionComp = EnsureComp<NpcFactionMemberComponent>(target);
|
||||
foreach (var id in new List<string>(factionComp.Factions))
|
||||
{
|
||||
_faction.RemoveFaction(target, id);
|
||||
}
|
||||
_faction.ClearFactions(target, dirty: false);
|
||||
_faction.AddFaction(target, "Zombie");
|
||||
|
||||
//gives it the funny "Zombie ___" name.
|
||||
|
||||
Reference in New Issue
Block a user