fix: pact system boon counts and signedPactDetails population
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m30s
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m30s
- Fix multi-element guardians (floors 130,140,150,170,190,200,210,230,240) to have exactly 2 boons per spec instead of 3-4 - Fix signedPactDetails never being populated: pipeline processPactRitual now includes signedPactDetails in writes with floor, guardianId, signedAt time, and skillLevels - Fix completePactRitual in prestigeStore to also populate signedPactDetails - Update gameStore.ts call site to pass signedPactDetails and current day/hour to processPactRitual Fixes #309, fixes #308
This commit is contained in:
@@ -166,9 +166,19 @@ export const usePrestigeStore = create<PrestigeStore>()(
|
||||
}
|
||||
}
|
||||
|
||||
const floor = state.pactRitualFloor;
|
||||
set({
|
||||
signedPacts: [...state.signedPacts, state.pactRitualFloor],
|
||||
defeatedGuardians: state.defeatedGuardians.filter(f => f !== state.pactRitualFloor),
|
||||
signedPacts: [...state.signedPacts, floor],
|
||||
defeatedGuardians: state.defeatedGuardians.filter(f => f !== floor),
|
||||
signedPactDetails: {
|
||||
...state.signedPactDetails,
|
||||
[floor]: {
|
||||
floor,
|
||||
guardianId: guardian.name || `floor-${floor}`,
|
||||
signedAt: { day: 0, hour: 0 },
|
||||
skillLevels: {},
|
||||
},
|
||||
},
|
||||
pactRitualFloor: null,
|
||||
pactRitualProgress: 0,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user