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
drawdepth: Effects
sprite: Effects/spookysmoke.rsi
state: spookysmoke
color: "#793a80dd"
layers:
- state: spookysmoke
color: "#793a80dd"
map: [base]
- type: Kudzu
growthTickChance: 0.2
spreadChance: 0.99
@@ -290,6 +292,13 @@
tags:
- HideContextMenu
- SpookyFog
- type: OptionsVisualizer
visuals:
base:
- options: Default
data: { state: spookysmoke }
- options: ReducedMotion
data: { state: spookysmoke_static }
- type: entity
name: Haze
@@ -297,4 +306,4 @@
parent: ShadowKudzu
components:
- 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
]
]
},
{
"name": "spookysmoke_static"
}
]
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB