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:
@@ -1,19 +1,19 @@
|
||||
const config = window.SeasonalsPluginConfig?.Underwater || {};
|
||||
|
||||
const underwater = config.EnableUnderwater !== undefined ? config.EnableUnderwater : true;
|
||||
const underwater = config.EnableUnderwater !== undefined ? config.EnableUnderwater : true; // enable/disable underwater
|
||||
const symbolCountMobile = config.SymbolCountMobile !== undefined ? config.SymbolCountMobile : 2; // Devisor to reduce number of objects on mobile
|
||||
const enableDifferentDuration = config.EnableDifferentDuration !== undefined ? config.EnableDifferentDuration : true;
|
||||
const enableLightRays = config.EnableLightRays !== undefined ? config.EnableLightRays : true;
|
||||
const seaweedCount = config.SeaweedCount !== undefined ? config.SeaweedCount : 50;
|
||||
const enableDifferentDuration = config.EnableDifferentDuration !== undefined ? config.EnableDifferentDuration : true; // enable different durations
|
||||
const enableLightRays = config.EnableLightRays !== undefined ? config.EnableLightRays : true; // enable/disable lightrays
|
||||
const seaweedCount = config.SeaweedCount !== undefined ? config.SeaweedCount : 50; // count of seaweed
|
||||
|
||||
// Entity counts configured
|
||||
const fishCount = config.FishCount !== undefined ? config.FishCount : 15;
|
||||
const seahorseCount = config.SeahorseCount !== undefined ? config.SeahorseCount : 3;
|
||||
const jellyfishCount = config.JellyfishCount !== undefined ? config.JellyfishCount : 3;
|
||||
const turtleCount = config.TurtleCount !== undefined ? config.TurtleCount : 1;
|
||||
const crabCount = config.CrabCount !== undefined ? config.CrabCount : 2;
|
||||
const starfishCount = config.StarfishCount !== undefined ? config.StarfishCount : 2;
|
||||
const shellCount = config.ShellCount !== undefined ? config.ShellCount : 2;
|
||||
const fishCount = config.FishCount !== undefined ? config.FishCount : 15; // count of fish
|
||||
const seahorseCount = config.SeahorseCount !== undefined ? config.SeahorseCount : 3; // count of seahorse
|
||||
const jellyfishCount = config.JellyfishCount !== undefined ? config.JellyfishCount : 3; // count of jellyfish
|
||||
const turtleCount = config.TurtleCount !== undefined ? config.TurtleCount : 1; // count of turtle
|
||||
const crabCount = config.CrabCount !== undefined ? config.CrabCount : 2; // count of crab
|
||||
const starfishCount = config.StarfishCount !== undefined ? config.StarfishCount : 2; // count of starfish
|
||||
const shellCount = config.ShellCount !== undefined ? config.ShellCount : 2; // count of shell
|
||||
|
||||
// credits: https://lottiefiles.com/free-animation/seaweed-E6Go0HdkqY
|
||||
const seaweeds = [
|
||||
|
||||
Reference in New Issue
Block a user