From 627ceee647e1c7bfd94ebcd866ba22461a9ed466 Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Tue, 31 Mar 2026 03:17:53 +0000 Subject: [PATCH] trying with dice roll data being passed in --- CLAUDE.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 03cb371..302ff3b 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -24,11 +24,10 @@ All books have been converted into .md files. Use those whenever possible, but ## Dice Rolling -Use Python's `random` module to roll dice. Always show the roll formula, the result, and any modifiers. Example: +Dice rolls will be passed to you as JSON data from Foundry VTT. Use the following documentation to figure out what the roll was: -``` -🎲 Attack Roll: d20 + 7 → [14] + 7 = 21 vs AC 18 — Hit! -``` +- [Foundry ChatMessage API](https://foundryvtt.com/api/classes/foundry.documents.ChatMessage.html). Use it and the topics within to for rules on how Foundry works in general. This relates to how Foundry works, regardless of game rules system it's running. It might be helpful, but it's not as useful as the next link. +- [Pf2e Foundry VTT Game System source code](https://github.com/foundryvtt/pf2e). This is the source code for the Pathfinder game system on Foundry VTT. Use it to figure out what the data means in relationship to the Pathfinder game system specifically (as opposed to Foundry VTT in general). This will most likely be more useful than the previous link. Log every roll to `rolls.md` with a timestamp, description, formula, and result.