refactor(data): ♻️ Optimize DataEngine class for faster processing in "age-of-four" guide
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
6153c7742b
commit
287e17a1d5
2 changed files with 0 additions and 16 deletions
|
|
@ -85,20 +85,6 @@ export const weatherEvents: MergedWeatherEvent[] = []
|
|||
export const leyChanneling: LeyChanneling =
|
||||
(climateSpecFile as Record<string, unknown>).ley_channeling as LeyChanneling
|
||||
|
||||
// ─── Corruption Terrain Modifiers ───────────────────────────────────────────
|
||||
|
||||
export interface CorruptionTerrainEntry { id: string; name: string; modifier: number }
|
||||
|
||||
export const corruptionTerrainModifiers: CorruptionTerrainEntry[] = allTerrains
|
||||
.filter((t) => t.terrain_power?.corruption_spread_modifier != null
|
||||
&& t.terrain_power.corruption_spread_modifier !== 1.0)
|
||||
.map((t) => ({
|
||||
id: t.id,
|
||||
name: t.name,
|
||||
modifier: t.terrain_power.corruption_spread_modifier!,
|
||||
}))
|
||||
.sort((a, b) => b.modifier - a.modifier)
|
||||
|
||||
// ─── Climate Scalar Constants ────────────────────────────────────────────────
|
||||
// These come from climate_params.json (M2); use built-in defaults for M0/M1.
|
||||
|
||||
|
|
|
|||
|
|
@ -14,8 +14,6 @@ export {
|
|||
type MergedWeatherEvent,
|
||||
weatherEvents,
|
||||
leyChanneling,
|
||||
type CorruptionTerrainEntry,
|
||||
corruptionTerrainModifiers,
|
||||
qualityUpThreshold,
|
||||
qualityDownThreshold,
|
||||
mountainRainShadowBlock,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue