Refactor seasonal plugin configurations to improve clarity and consistency

- Updated comments for clarity on enabling/disabling features across various seasonal scripts.
- Changed default value checks to ensure undefined values are handled consistently.
- Enhanced readability by providing descriptive comments for configuration variables.

[skip ci]
This commit is contained in:
CodeDevMLH
2026-02-27 23:56:36 +01:00
parent d0634e4487
commit a4b2d2edd5
31 changed files with 134 additions and 135 deletions

View File

@@ -1,11 +1,11 @@
const config = window.SeasonalsPluginConfig?.Spooky || {};
const spooky = config.EnableSpooky !== undefined ? config.EnableSpooky : true; // enable/disable
const spookyCount = config.SymbolCount || 25; // count of random extra symbols
const enableDifferentDuration = config.EnableDifferentDuration !== undefined ? config.EnableDifferentDuration : true;
const enableSpookySway = config.EnableSpookySway !== undefined ? config.EnableSpookySway : true;
const spookySize = config.SpookySize || 20;
const spookyGlowSize = config.SpookyGlowSize !== undefined ? config.SpookyGlowSize : 2;
const spooky = config.EnableSpooky !== undefined ? config.EnableSpooky : true; // enable/disable spooky
const spookyCount = config.SymbolCount !== undefined ? config.SymbolCount : 25; // count of symbols
const enableDifferentDuration = config.EnableDifferentDuration !== undefined ? config.EnableDifferentDuration : true; // enable different durations
const enableSpookySway = config.EnableSpookySway !== undefined ? config.EnableSpookySway : true; // enable/disable spooky sway
const spookySize = config.SpookySize !== undefined ? config.SpookySize : 20; // size of elements
const spookyGlowSize = config.SpookyGlowSize !== undefined ? config.SpookyGlowSize : 2; // size of element glow
const spookyImages = [
"../Seasonals/Resources/halloween_images/ghost_20x20.png",