Compare commits
2 Commits
43546aaa7b
...
228c1c667f
| Author | SHA1 | Date | |
|---|---|---|---|
| 228c1c667f | |||
| 300d4b1f73 |
@@ -1,5 +1,8 @@
|
|||||||
---
|
---
|
||||||
|
name: commit
|
||||||
description: Create a git commit with pre-commit hooks (bypasses sandbox restrictions).
|
description: Create a git commit with pre-commit hooks (bypasses sandbox restrictions).
|
||||||
|
disable-model-invocation: true
|
||||||
|
allowed-tools: Bash(git *), Bash(pnpm *)
|
||||||
---
|
---
|
||||||
|
|
||||||
## Instructions
|
## Instructions
|
||||||
@@ -173,7 +173,7 @@ function addOneFromBestiary(
|
|||||||
|
|
||||||
const id = combatantId(`c-${nextId + 1}`);
|
const id = combatantId(`c-${nextId + 1}`);
|
||||||
const result = addCombatantUseCase(store, id, newName, {
|
const result = addCombatantUseCase(store, id, newName, {
|
||||||
maxHp: entry.hp,
|
maxHp: entry.hp > 0 ? entry.hp : undefined,
|
||||||
ac: entry.ac > 0 ? entry.ac : undefined,
|
ac: entry.ac > 0 ? entry.ac : undefined,
|
||||||
creatureId: cId,
|
creatureId: cId,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user