Show other speso colours, add larger denominations (Frontier#1496) (#37030)

This commit is contained in:
Whatstone
2025-04-29 17:44:47 -04:00
committed by GitHub
parent 87d097bb5d
commit afc55d6573
16 changed files with 236 additions and 44 deletions

View File

@@ -78,6 +78,13 @@ namespace Content.Shared.Stacks
[DataField("layerStates")]
[ViewVariables(VVAccess.ReadWrite)]
public List<string> LayerStates = new();
/// <summary>
/// An optional function to convert the amounts used to adjust a stack's appearance.
/// Useful for different denominations of cash, for example.
/// </summary>
[DataField]
public StackLayerFunction LayerFunction = StackLayerFunction.None;
}
[Serializable, NetSerializable]
@@ -95,4 +102,19 @@ namespace Content.Shared.Stacks
Lingering = lingering;
}
}
[Serializable, NetSerializable]
public enum StackLayerFunction : byte
{
// <summary>
// No operation performed.
// </summary>
None,
// <summary>
// Arbitrarily thresholds the stack amount for each layer.
// Expects entity to have StackLayerThresholdComponent.
// </summary>
Threshold
}
}