1.5 KiB
1.5 KiB
Task 5: DebugTab Update - Invoker Debug Buttons - Context
Task Description
From task2.md: Add Invoker Debugging Buttons to manually trigger/force Pacts with different Guardians.
Current Implementation:
- DebugTab is likely in
/home/user/repos/Mana-Loop/src/components/game/debug/or similar - Pact system involves Guardians and signing pacts with them
- DebugTab already has some debugging features
What Needs To Be Done:
- Find the DebugTab component (search for "DebugTab" or look in
src/components/game/debug/) - Read the component to understand current implementation
- Find how Pacts work:
- Look for "pact" related functions in the store (
store.tsor similar) - Understand what signing a pact does (what state changes)
- Look for "pact" related functions in the store (
- Add buttons to manually trigger/force Pacts with different Guardians:
- Each Guardian should have a button
- Clicking the button forces a pact with that Guardian
- Test the implementation
- Commit with message: "Task 2: DebugTab Update - add Invoker Debugging Buttons for Pacts"
Key Files To Examine:
src/components/game/debug/- DebugTab componentsrc/lib/game/store.ts- Pact-related functions- Look for Guardian definitions (maybe in
constants/ordata/)
Implementation Notes:
- Pacts are likely stored in the game state
- Forcing a pact might involve calling a function like
store.signPact(guardianId) - The buttons should be clearly labeled with Guardian names
- Consider adding confirmation dialogs to prevent accidental clicks