Modular sprites auto coloring (#697)

* axe and dagger update

* more blade processing

* shovel and sickle

* sword

* gardes

* grips

* modular presets

* blade material modifiers

* modular spear blade

* balance sharp garde, add sturdy garde

* Update sturdy.yml
This commit is contained in:
Ed
2025-01-05 04:01:31 +03:00
committed by GitHub
parent 9a8f66727f
commit be3064b99c
446 changed files with 883 additions and 1841 deletions

View File

@@ -80,6 +80,9 @@ public sealed class CP14ClientModularCraftSystem : CP14SharedModularCraftSystem
start.Comp.RevealedLayers.Add(keyCode);
var index = sprite.AddLayer(defaultLayer);
sprite.LayerMapSet(keyCode, index);
if (indexedPart.Color is not null)
sprite.LayerSetColor(keyCode, indexedPart.Color.Value);
}
else
{
@@ -148,6 +151,7 @@ public sealed class CP14ClientModularCraftSystem : CP14SharedModularCraftSystem
{
RsiPath = indexedPart.RsiPath,
State = state,
Color = indexedPart.Color,
};
var key = $"{defaultKey}-{counterPart}-default";
@@ -203,6 +207,7 @@ public sealed class CP14ClientModularCraftSystem : CP14SharedModularCraftSystem
{
RsiPath = indexedPart.RsiPath,
State = state,
Color = indexedPart.Color,
};
var key = $"{defaultKey}-{counterPart}-default";