Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mobs Depsawn FIxups #2306

Merged
merged 2 commits into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
using Robust.Shared.GameObjects;
using Robust.Shared.Maths;
using Robust.Shared.Serialization.Manager.Attributes;
using Robust.Shared.ViewVariables;
using System;

namespace Content.Server._NF.Salvage;

/// <summary>
Expand Down
4 changes: 4 additions & 0 deletions Content.Server/_NF/Salvage/SalvageMobRestrictionsSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ private void OnRemoveGrid(EntityUid uid, SalvageMobRestrictionsGridComponent com
{
foreach (EntityUid target in component.MobsToKill)
{
// Don't destroy yourself, don't destroy things being destroyed.
if (uid == target || MetaData(target).EntityLifeStage >= EntityLifeStage.Terminating)
continue;

if (TryComp(target, out BodyComponent? body))
{
// Creates a pool of blood on death, but remove the organs.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
parent:
- MobHumanoidHostileBase
- MobVandalizer
- NFMobRestrictions
id: MobPunkBase
description: |-
"Criminally-inclined individuals", as NT Security documents call them, these are armed with a variety of weapons. These weapons range from makeshift shivs and machined truncheons to rusty pistols and shotguns. Some may be armored, so plan appropriately.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
- type: entity
abstract: true
id: MobSyndicateNavalTimedDespawn
components:
- type: TimedDespawn
lifetime: 3000 # 50 mins (max blue space event duration involving these mobs - 40 mins)

- type: entity
name: syndicate naval agent
abstract: true
Expand All @@ -13,7 +6,7 @@
- MobHumanoidHostileBase
- MobHumanoidInvetory
- MobHumanoidHostileAISimpleRanged
#- MobSyndicateNavalTimedDespawn
- NFMobRestrictions
id: MobSyndicateNavalBase
components:
- type: Body
Expand Down
Loading