Extracts magic strings from Tag calls (#36305)
* Extracts magic strings from Tag calls When #36281 gets merged, the `TagSystem` methods will all give warnings. Let's fix those warnings before they even happen! * Adds missing libraries * Remove not yet implemented TagSystem changes * Fix tag spelling error Genuinely surprised there was only 1! * Styling and proper type changes * Styling Co-authored-by: Tayrtahn <tayrtahn@gmail.com> --------- Co-authored-by: Tayrtahn <tayrtahn@gmail.com>
This commit is contained in:
@@ -65,6 +65,8 @@ public abstract class SharedMagicSystem : EntitySystem
|
||||
[Dependency] private readonly SharedMindSystem _mind = default!;
|
||||
[Dependency] private readonly SharedStunSystem _stun = default!;
|
||||
|
||||
private static readonly ProtoId<TagPrototype> InvalidForGlobalSpawnSpellTag = "InvalidForGlobalSpawnSpell";
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
@@ -484,7 +486,7 @@ public abstract class SharedMagicSystem : EntitySystem
|
||||
|
||||
var ent = human.Comp.OwnedEntity.Value;
|
||||
|
||||
if (_tag.HasTag(ent, "InvalidForGlobalSpawnSpell"))
|
||||
if (_tag.HasTag(ent, InvalidForGlobalSpawnSpellTag))
|
||||
continue;
|
||||
|
||||
var mapCoords = _transform.GetMapCoordinates(ent);
|
||||
|
||||
Reference in New Issue
Block a user