Skip to content

Interface: SolVariationRanges

Per-type variation ranges for the sol-side procedural effects (cracks, lava, blend mode pick). Optional on BodyTypeStrategy: only metallic bodies override the defaults — every other strategy falls back to DEFAULT_SOL_RANGES defined in bodyVariation.ts.

Properties

crackWidth

ts
crackWidth: readonly [number, number];

[min, max] linear range for the crack width multiplier.


crackScale

ts
crackScale: readonly [number, number];

[min, max] linear range for the crack scale multiplier.


lavaScale

ts
lavaScale: readonly [number, number];

[min, max] linear range for the lava scale multiplier.

Methods

pickCrackBlend()

ts
pickCrackBlend(rng): number;

Returns the crack blend mode index (matches crackBlend slider in BODY_PARAMS). Driven by a per-type rule rather than a uniform range because metallic bodies bias toward a binary Mix / Soft-Light pick.

Parameters

ParameterType
rng() => number

Returns

number

Distribué sous la licence indiquée dans le dépôt.