Skip to content

Commit

Permalink
Update ClientFoodSequenceSystem.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Aidenkrz authored Aug 19, 2024
1 parent 26e44f9 commit 1915310
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,16 @@ private void UpdateFoodVisuals(Entity<FoodSequenceStartPointComponent> start, Sp
var rsiPath = spriteComp.BaseRSI?.Path.ToString();
if (rsiPath == null)
continue;

var layercount = 0;
foreach (var layer in spriteComp.AllLayers)
{

if (!layer.RsiState.IsValid || !layer.Visible || layer.ActualRsi == null || layer.RsiState == null || layer.RsiState.Name == null)
continue;


state.Sprite = new SpriteSpecifier.Rsi(layer.ActualRsi.Path, layer.RsiState.Name);

var keyCodeProto = $"food-layer-{counter}-{layer.RsiState.Name}";
var keyCodeProto = $"food-layer-{counter}-{layer.RsiState.Name}-{layercount}";
layercount++;
start.Comp.RevealedLayers.Add(keyCodeProto);

sprite.LayerMapTryGet(start.Comp.TargetLayerMap, out var indexProto);
Expand Down

0 comments on commit 1915310

Please sign in to comment.