41 lines
950 B
TypeScript
41 lines
950 B
TypeScript
/**
|
|
* Centralized Game Configuration containing thresholds, rates, and balancing constants.
|
|
*/
|
|
export const GameConfig = {
|
|
/** Evolution related constants */
|
|
Evolution: {
|
|
totalTarget: 150,
|
|
thresholds: {
|
|
hardenedShell: { constitution: 25 },
|
|
electricSkin: { intelligence: 25 },
|
|
glowingBody: { human: 50 },
|
|
},
|
|
},
|
|
|
|
/** Absorption related constants */
|
|
Absorption: {
|
|
range: 30,
|
|
healPercentMin: 0.1,
|
|
healPercentMax: 0.2,
|
|
skillAbsorptionChance: 0.3,
|
|
mutationChance: 0.1,
|
|
removalDelay: 3.0,
|
|
},
|
|
|
|
/** Combat related constants */
|
|
Combat: {
|
|
knockbackPower: 150,
|
|
defaultAttackArc: 0.5,
|
|
damageReflectionPercent: 0.2,
|
|
hardenedShellReduction: 0.7,
|
|
},
|
|
|
|
/** AI behavior related constants */
|
|
AI: {
|
|
detectionAwarenessThreshold: 0.7,
|
|
passiveAwarenessThreshold: 0.95,
|
|
fleeAwarenessThreshold: 0.5,
|
|
awarenessLossRate: 0.5,
|
|
awarenessGainMultiplier: 2.0,
|
|
},
|
|
};
|