fix: cap pact interference penalty at 1.0 to prevent negative multipliers with 4+ pacts
Build and Publish Mana Loop Docker Image / build-and-publish (push) Failing after 1m3s
Build and Publish Mana Loop Docker Image / build-and-publish (push) Failing after 1m3s
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
# Circular Dependencies
|
# Circular Dependencies
|
||||||
Generated: 2026-06-10T20:57:50.802Z
|
Generated: 2026-06-10T21:01:48.810Z
|
||||||
Found: 3 circular chain(s) — these MUST be fixed before modifying involved files.
|
Found: 3 circular chain(s) — these MUST be fixed before modifying involved files.
|
||||||
|
|
||||||
1. 1) stores/golem-combat-actions.ts > stores/golem-combat-helpers.ts
|
1. 1) stores/golem-combat-actions.ts > stores/golem-combat-helpers.ts
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"_meta": {
|
"_meta": {
|
||||||
"generated": "2026-06-10T20:57:48.663Z",
|
"generated": "2026-06-10T21:01:46.760Z",
|
||||||
"description": "Import dependency graph for src/lib/game. Keys are files, values are arrays of files they import.",
|
"description": "Import dependency graph for src/lib/game. Keys are files, values are arrays of files they import.",
|
||||||
"usage": "To find what a file affects, search for its path in the VALUES. To find what a file depends on, look at its KEY entry."
|
"usage": "To find what a file affects, search for its path in the VALUES. To find what a file depends on, look at its KEY entry."
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ export function computePactMultiplier(state: {
|
|||||||
const numAdditionalPacts = signedPacts.length - 1;
|
const numAdditionalPacts = signedPacts.length - 1;
|
||||||
const basePenalty = 0.5 * numAdditionalPacts;
|
const basePenalty = 0.5 * numAdditionalPacts;
|
||||||
const mitigationReduction = Math.min(pactInterferenceMitigation, 5) * 0.1;
|
const mitigationReduction = Math.min(pactInterferenceMitigation, 5) * 0.1;
|
||||||
const effectivePenalty = Math.max(0, basePenalty - mitigationReduction);
|
const effectivePenalty = Math.min(1.0, Math.max(0, basePenalty - mitigationReduction));
|
||||||
|
|
||||||
if (pactInterferenceMitigation >= 5) {
|
if (pactInterferenceMitigation >= 5) {
|
||||||
const synergyBonus = (pactInterferenceMitigation - 5) * 0.1;
|
const synergyBonus = (pactInterferenceMitigation - 5) * 0.1;
|
||||||
@@ -53,7 +53,7 @@ export function computePactInsightMultiplier(state: {
|
|||||||
const numAdditionalPacts = signedPacts.length - 1;
|
const numAdditionalPacts = signedPacts.length - 1;
|
||||||
const basePenalty = 0.5 * numAdditionalPacts;
|
const basePenalty = 0.5 * numAdditionalPacts;
|
||||||
const mitigationReduction = Math.min(pactInterferenceMitigation, 5) * 0.1;
|
const mitigationReduction = Math.min(pactInterferenceMitigation, 5) * 0.1;
|
||||||
const effectivePenalty = Math.max(0, basePenalty - mitigationReduction);
|
const effectivePenalty = Math.min(1.0, Math.max(0, basePenalty - mitigationReduction));
|
||||||
|
|
||||||
if (pactInterferenceMitigation >= 5) {
|
if (pactInterferenceMitigation >= 5) {
|
||||||
const synergyBonus = (pactInterferenceMitigation - 5) * 0.1;
|
const synergyBonus = (pactInterferenceMitigation - 5) * 0.1;
|
||||||
|
|||||||
Reference in New Issue
Block a user