Skip to content

Commit

Permalink
Mobs Depsawn FIxups (#2306)
Browse files Browse the repository at this point in the history
* Fixup

* Cleanup
  • Loading branch information
dvir001 authored Oct 23, 2024
1 parent e6d0308 commit 2cacb71
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 14 deletions.
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

0 comments on commit 2cacb71

Please sign in to comment.