Skip to content

Commit

Permalink
Shadow anomaly respects "reduced motion" (space-wizards#25355)
Browse files Browse the repository at this point in the history
Enabling "reduced motion" now makes the smoke effects not animate. This helps some people with vision issues.
  • Loading branch information
PJB3005 authored Feb 18, 2024
1 parent 8ea30ca commit 0c8e617
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
15 changes: 12 additions & 3 deletions Resources/Prototypes/Entities/Objects/Misc/kudzu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -290,11 +292,18 @@
tags:
- HideContextMenu
- SpookyFog
- type: OptionsVisualizer
visuals:
base:
- options: Default
data: { state: spookysmoke }
- options: ReducedMotion
data: { state: spookysmoke_static }

- type: entity
name: Haze
id: ShadowKudzuWeak
parent: ShadowKudzu
components:
- type: Kudzu
spreadChance: 0 #appears during pulsation. It shouldnt spreading.
spreadChance: 0 #appears during pulsation. It shouldnt spreading.
5 changes: 4 additions & 1 deletion Resources/Textures/Effects/spookysmoke.rsi/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
0.2
]
]
},
{
"name": "spookysmoke_static"
}
]
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0c8e617

Please sign in to comment.