A 5e storytelling engine with an LLM DM
Something went wrong. Try again.
Add adjust_coins tool and purse clamping master
The DM was doing absolute-value coin updates and getting the math wrong, which led to -20 silver on the character sheet. Now there's an `adjust_coins` tool that takes relative deltas (negative to spend, positive to gain) so the DM doesn't need to do mental arithmetic. Coins are clamped to 0 as a backstop in update_character too. The TUI shows friendly notifications like "Spending 13 gold, 10 silver" using the same deferred-notification pattern as dice rolls. Also gitignored .loq_cache which snuck into the repo. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Author Chris Guidry Co-author Claude Opus 4.6 (1M context) Date (Apr 9, 2026, 4:45 PM UTC) Commit 87fcc9b8 87fcc9b8577304cad9eeca2644d9c81af708faf7 Parent fe7a84ba fe7a84baae3f151e982ea493ac25ac825eaee8c3