e
This commit is contained in:
parent
f657b6a4a4
commit
d163ceb291
76 changed files with 1385 additions and 524 deletions
|
|
@ -55,11 +55,18 @@
|
|||
const crisisCollapseSignal = m.weakRatio >= 0.70 && m.criticalRatio >= 0.60;
|
||||
add("devastation", 120, m.n <= 10 && devastationSignal);
|
||||
add("crisis", 110, !m.populationIncreasing && ((crisisMortalitySignal && crisisSystemicStress) || crisisCollapseSignal));
|
||||
add("confusion", 100, (m.recentShock && (m.panicRatio >= 0.10 || m.safetyRatio >= 0.18)) || m.panicRatio >= 0.25);
|
||||
const confusionPanicThreshold = Math.max(4, Math.ceil(m.n * 0.32));
|
||||
const confusionShockPanicThreshold = Math.max(3, Math.ceil(m.n * 0.18));
|
||||
const confusionShockSafetyThreshold = Math.max(5, Math.ceil(m.n * 0.30));
|
||||
const confusionSignal = m.panicCount >= confusionPanicThreshold
|
||||
|| (m.recentShock && m.panicCount >= confusionShockPanicThreshold && m.safetyHighCount >= confusionShockSafetyThreshold);
|
||||
const breedingThreshold = Math.max(4, Math.ceil(m.n * 0.18));
|
||||
const breedingSignal = m.breedingCount >= breedingThreshold && m.breedingRatio >= 0.18;
|
||||
add("confusion", 100, confusionSignal);
|
||||
add("fearful", 90, (m.avgSafety >= 50 && m.safetyRatio >= 0.28) || (m.recentShock && m.safetyRatio >= 0.18));
|
||||
add("disease_spread", 82, m.diseaseRatio >= 0.25 || (m.diseasedCount >= 3 && m.diseaseRatio >= 0.16));
|
||||
add("weakened", 74, !m.populationIncreasing && ((m.avgEnergy < 54 && m.weakRatio >= 0.18) || m.avgHunger > 82 || m.weakRatio >= 0.34));
|
||||
add("breeding", 66, m.breedingRatio >= 0.10 || m.breedingCount >= 2 || m.now - (worldRef?.lastBirthAt || -999) <= 45);
|
||||
add("breeding", 66, breedingSignal);
|
||||
add("happy", 46, m.avgStress < 28 && m.panicRatio < 0.08 && m.diseaseRatio < 0.12 && m.weakRatio < 0.18);
|
||||
add("isolated", 28, m.n <= 1);
|
||||
if (!candidates.length) return "relaxed";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue