Goliath mob (#30839)
* Goliath mob * Update asteroid.yml * mcfuck yourself * add cloak * fixes * Update materials.yml
This commit is contained in:
@@ -34,6 +34,7 @@ public sealed partial class NPCBlackboard : IEnumerable<KeyValuePair<string, obj
|
||||
{"RangedRange", 10f},
|
||||
{"RotateSpeed", float.MaxValue},
|
||||
{"VisionRadius", 10f},
|
||||
{"AggroVisionRadius", 10f},
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
@@ -269,6 +270,13 @@ public sealed partial class NPCBlackboard : IEnumerable<KeyValuePair<string, obj
|
||||
return _blackboard.Remove(key);
|
||||
}
|
||||
|
||||
public string GetVisionRadiusKey(IEntityManager entMan)
|
||||
{
|
||||
return TryGetValue<EntityUid>("Target", out _, entMan)
|
||||
? AggroVisionRadius
|
||||
: VisionRadius;
|
||||
}
|
||||
|
||||
// I Ummd and Ahhd about using strings vs enums and decided on tags because
|
||||
// if a fork wants to do their own thing they don't need to touch the enum.
|
||||
|
||||
@@ -317,9 +325,11 @@ public sealed partial class NPCBlackboard : IEnumerable<KeyValuePair<string, obj
|
||||
public const string PathfindKey = "MovementPathfind";
|
||||
|
||||
public const string RotateSpeed = "RotateSpeed";
|
||||
public const string VisionRadius = "VisionRadius";
|
||||
public const string UtilityTarget = "UtilityTarget";
|
||||
|
||||
private const string VisionRadius = "VisionRadius";
|
||||
private const string AggroVisionRadius = "AggroVisionRadius";
|
||||
|
||||
/// <summary>
|
||||
/// A configurable "order" enum that can be given to an NPC from an external source.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user