Leaf maze demiplane + crayon update (#901)

* crayons update

* Update workbench.yml

* leaf maze demiplane

* Update t2_leaf_maze.yml
This commit is contained in:
Ed
2025-02-15 17:49:05 +03:00
committed by GitHub
parent f839ffec0d
commit 02379e37f7
31 changed files with 486 additions and 64 deletions

View File

@@ -106,7 +106,7 @@ public sealed class CrayonSystem : SharedCrayonSystem
private void OnCrayonBoundUI(EntityUid uid, CrayonComponent component, CrayonSelectMessage args)
{
// Check if the selected state is valid
if (!_prototypeManager.TryIndex<DecalPrototype>(args.State, out var prototype) || !prototype.Tags.Contains("crayon"))
if (!_prototypeManager.TryIndex<DecalPrototype>(args.State, out var prototype) || !prototype.Tags.Contains("CP14crayon")) //CP14 crayon
return;
component.SelectedState = args.State;
@@ -130,7 +130,7 @@ public sealed class CrayonSystem : SharedCrayonSystem
component.Charges = component.Capacity;
// Get the first one from the catalog and set it as default
var decal = _prototypeManager.EnumeratePrototypes<DecalPrototype>().FirstOrDefault(x => x.Tags.Contains("crayon"));
var decal = _prototypeManager.EnumeratePrototypes<DecalPrototype>().FirstOrDefault(x => x.Tags.Contains("CP14crayon")); //CP14 crayon
component.SelectedState = decal?.ID ?? string.Empty;
Dirty(uid, component);
}