Shadow anomaly respects "reduced motion" (#25355)

Enabling "reduced motion" now makes the smoke effects not animate. This helps some people with vision issues.
This commit is contained in:
Pieter-Jan Briers
2024-02-18 04:26:19 +01:00
committed by GitHub
parent 8ea30cae34
commit 0c8e617572
3 changed files with 16 additions and 4 deletions

View File

@@ -271,8 +271,10 @@
- type: Sprite - type: Sprite
drawdepth: Effects drawdepth: Effects
sprite: Effects/spookysmoke.rsi sprite: Effects/spookysmoke.rsi
state: spookysmoke layers:
color: "#793a80dd" - state: spookysmoke
color: "#793a80dd"
map: [base]
- type: Kudzu - type: Kudzu
growthTickChance: 0.2 growthTickChance: 0.2
spreadChance: 0.99 spreadChance: 0.99
@@ -290,6 +292,13 @@
tags: tags:
- HideContextMenu - HideContextMenu
- SpookyFog - SpookyFog
- type: OptionsVisualizer
visuals:
base:
- options: Default
data: { state: spookysmoke }
- options: ReducedMotion
data: { state: spookysmoke_static }
- type: entity - type: entity
name: Haze name: Haze
@@ -297,4 +306,4 @@
parent: ShadowKudzu parent: ShadowKudzu
components: components:
- type: Kudzu - type: Kudzu
spreadChance: 0 #appears during pulsation. It shouldnt spreading. spreadChance: 0 #appears during pulsation. It shouldnt spreading.

View File

@@ -25,6 +25,9 @@
0.2 0.2
] ]
] ]
},
{
"name": "spookysmoke_static"
} }
] ]
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB