* additionalKeys
* Update lava.yml
* Update Content.Client/IconSmoothing/IconSmoothComponent.cs
---------
Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
[ViewVariables(VVAccess.ReadWrite), DataField("key")]
public string? SmoothKey { get; private set; }
+ /// <summary>
+ /// Additional keys to smooth with.
+ /// </summary>
+ [DataField]
+ public List<string> AdditionalKeys = new();
+
/// <summary>
/// Prepended to the RSI state.
/// </summary>
while (candidates.MoveNext(out var entity))
{
if (smoothQuery.TryGetComponent(entity, out var other) &&
- other.SmoothKey == smooth.SmoothKey &&
+ other.SmoothKey != null &&
+ (other.SmoothKey == smooth.SmoothKey || smooth.AdditionalKeys.Contains(other.SmoothKey)) &&
other.Enabled)
{
return true;
acts: [ "Destruction" ]
- type: IconSmooth
- key: bricks
+ key: walls
base: brick
- type: entity
state: full
- type: IconSmooth
key: chasm
+ additionalKeys:
+ - walls
base: chasm
- type: Physics
bodyType: Static
state: full
- type: IconSmooth
key: floor
+ additionalKeys:
+ - walls
base: lava
- type: Physics
bodyType: Static