Puddle error fix (#7165)

This commit is contained in:
mirrorcult 2022-03-17 11:42:25 -07:00 committed by GitHub
parent 92e261171b
commit 71366bcf95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -72,14 +72,12 @@ namespace Content.Client.Fluids
if (forceWetFloorSprite)
{
//Change the puddle's sprite to the wet floor sprite
spriteComponent.LayerSetRSI(0, "Fluids/wet_floor_sparkles.rsi");
spriteComponent.LayerSetState(0, "sparkles");
spriteComponent.LayerSetState(0, "sparkles", "Fluids/wet_floor_sparkles.rsi");
spriteComponent.Color = spriteComponent.Color.WithAlpha(0.25f); //should be mostly transparent.
}
else
{
spriteComponent.LayerSetRSI(0, "Fluids/smear.rsi");
spriteComponent.LayerSetState(0, "smear-0"); // TODO: need a way to implement the random smears again when the mop creates new puddles.
spriteComponent.LayerSetState(0, "smear-0", "Fluids/smear.rsi"); // TODO: need a way to implement the random smears again when the mop creates new puddles.
}
}