Prevent Dragon Body from Despawning (#29842)
* Prevent Dragon Body from Despawning + Make Dragon Unrevivable * Requested changes * Meh, nobody wanted this anyways and it was not really an issue
This commit is contained in:
parent
d92ad78478
commit
567b0d7100
|
|
@ -8,6 +8,7 @@ using Content.Shared.Maps;
|
|||
using Content.Shared.Mind;
|
||||
using Content.Shared.Mind.Components;
|
||||
using Content.Shared.Mobs;
|
||||
using Content.Shared.Mobs.Systems;
|
||||
using Content.Shared.Movement.Systems;
|
||||
using Content.Shared.NPC.Systems;
|
||||
using Content.Shared.Zombies;
|
||||
|
|
@ -27,6 +28,7 @@ public sealed partial class DragonSystem : EntitySystem
|
|||
[Dependency] private readonly SharedActionsSystem _actions = default!;
|
||||
[Dependency] private readonly SharedAudioSystem _audio = default!;
|
||||
[Dependency] private readonly SharedTransformSystem _transform = default!;
|
||||
[Dependency] private readonly MobStateSystem _mobState = default!;
|
||||
|
||||
private EntityQuery<CarpRiftsConditionComponent> _objQuery;
|
||||
|
||||
|
|
@ -91,7 +93,8 @@ public sealed partial class DragonSystem : EntitySystem
|
|||
}
|
||||
}
|
||||
|
||||
comp.RiftAccumulator += frameTime;
|
||||
if (!_mobState.IsDead(uid))
|
||||
comp.RiftAccumulator += frameTime;
|
||||
|
||||
// Delete it, naughty dragon!
|
||||
if (comp.RiftAccumulator >= comp.RiftMaxAccumulator)
|
||||
|
|
|
|||
Loading…
Reference in New Issue