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:
@@ -51,6 +51,7 @@ public class RCDSystem : EntitySystem
|
||||
private readonly EntProtoId _instantConstructionFx = "EffectRCDConstruct0";
|
||||
private readonly ProtoId<RCDPrototype> _deconstructTileProto = "DeconstructTile";
|
||||
private readonly ProtoId<RCDPrototype> _deconstructLatticeProto = "DeconstructLattice";
|
||||
private static readonly ProtoId<TagPrototype> CatwalkTag = "Catwalk";
|
||||
|
||||
private HashSet<EntityUid> _intersectingEntities = new();
|
||||
|
||||
@@ -411,7 +412,7 @@ public class RCDSystem : EntitySystem
|
||||
if (isWindow && HasComp<SharedCanBuildWindowOnTopComponent>(ent))
|
||||
continue;
|
||||
|
||||
if (isCatwalk && _tags.HasTag(ent, "Catwalk"))
|
||||
if (isCatwalk && _tags.HasTag(ent, CatwalkTag))
|
||||
{
|
||||
if (popMsgs)
|
||||
_popup.PopupClient(Loc.GetString("rcd-component-cannot-build-on-occupied-tile-message"), uid, user);
|
||||
|
||||
Reference in New Issue
Block a user