prosolis
01c2cb2f0b
Combat engine §1: the hired companion can cast
...
Every spell lookup in the engine is keyed on a Matrix user id and answered
by a dnd_* table. The companion has rows in none of them, deliberately — a
sheet on disk is what would turn him into a real character everywhere. So
the auto-picker's first statement, LoadDnDCharacter(uid), came back nil and
returned "attack", every turn, for the whole fight.
A hired Cleric swung a mace while the party died. Role-fill hands a lone
martial a Cleric, so that was the common case of the feature.
Adds a seat-scoped spellbook: seatKnownSpells / seatSpellSlots /
seatKnowsSpell / consumeSeatSlot / refundSeatSlot. A human seat delegates to
the DB functions verbatim — same queries, same order — so solo combat and the
balance corpus are untouched (both goldens byte-identical). A companion seat
is answered from his synthetic sheet and a slot ledger on his seat's
persisted statuses. The seat is the correct home and not merely the available
one: every expedition hires the same @pete, so a store keyed on his user id
would have two parties sharing one pool of slots.
He gets the same default kit a real character of his class and level gets.
The below-median stays where it was — the level penalty, the never-Masterwork
gear, the absent subclass and magic items. A bespoke weaker spell list would
be a second nerf hidden in a different file.
castActionForSeat was also a live hazard: it loaded the caster through
ensureCharForDnDCmd, whose auto-migration branch, handed a user with no sheet,
builds one at level 1 and *saves* it. Pointed at the companion that silently
makes him a player. He now takes a branch that never reaches it, and a test
counts rows in dnd_character / dnd_known_spells / dnd_spell_slots /
player_meta to keep it that way.
Measured, 640 runs/arm (10 classes x L10,L12 x 4 zones):
solo 66.1%
+ Pete, mace-only (HEAD) 83.4% (+17.3pp)
+ Pete, casting 95.9% (+29.8pp)
The fix does what it should. It also lands on top of an unpaid §2(a): the
mace-only arm shows Pete was ALREADY a carry, taking the trailing band from
6.8% to 63.6% without casting a thing. The tell is the cleric leader, who
role-fills a *Fighter* Pete — a seat this commit cannot touch — and still goes
26.6% -> 98.4%. That is enemy scaling undercharging for a seat, not spells.
§2(a) is next, and is not optional.
Claude-Session: https://claude.ai/code/session_01J5SQZWoLmL3M3mw2XmHHdy
2026-07-11 13:44:47 -07:00
..
2026-07-11 12:39:01 -07:00
2026-07-09 19:22:10 -07:00
2026-07-11 07:43:57 -07:00
2026-05-27 19:41:49 -07:00
2026-07-10 07:18:07 -07:00
2026-07-10 07:18:07 -07:00
2026-07-10 07:18:07 -07:00
2026-05-09 14:25:22 -07:00
2026-05-09 14:25:22 -07:00
2026-07-10 07:18:07 -07:00
2026-07-09 19:22:10 -07:00
2026-07-10 07:20:14 -07:00
2026-07-09 19:22:10 -07:00
2026-07-10 20:09:30 -07:00
2026-07-10 07:18:07 -07:00
2026-07-10 15:03:57 -07:00
2026-04-26 07:57:31 -07:00
2026-07-10 23:50:48 -07:00
2026-04-08 15:50:28 -07:00
2026-07-11 12:39:01 -07:00
2026-07-11 12:39:01 -07:00
2026-05-12 21:59:19 -07:00
2026-07-10 13:36:32 -07:00
2026-07-10 19:18:45 -07:00
2026-07-11 07:43:57 -07:00
2026-07-10 09:12:34 -07:00
2026-07-10 19:18:45 -07:00
2026-05-09 14:25:21 -07:00
2026-07-10 07:18:07 -07:00
2026-07-10 15:37:53 -07:00
2026-07-10 16:53:32 -07:00
2026-05-16 12:40:17 -07:00
2026-07-10 07:18:07 -07:00
2026-04-28 22:37:04 -07:00
2026-04-10 16:50:49 -07:00
2026-05-09 21:32:47 -07:00
2026-04-24 22:23:58 -07:00
2026-07-10 16:12:53 -07:00
2026-07-10 07:18:07 -07:00
2026-04-05 17:04:03 -07:00
2026-07-10 16:12:53 -07:00
2026-04-05 17:04:03 -07:00
2026-05-16 12:40:17 -07:00
2026-05-16 12:40:17 -07:00
2026-07-10 07:18:07 -07:00
2026-07-10 14:05:11 -07:00
2026-07-10 14:05:11 -07:00
2026-05-09 14:25:22 -07:00
2026-03-27 21:26:19 -07:00
2026-07-10 07:18:07 -07:00
2026-07-10 15:03:57 -07:00
2026-07-10 16:12:53 -07:00
2026-07-09 18:29:31 -07:00
2026-07-09 18:29:31 -07:00
2026-07-10 14:05:24 -07:00
2026-05-09 14:25:22 -07:00
2026-07-10 16:12:53 -07:00
2026-07-10 16:53:32 -07:00
2026-07-10 20:09:30 -07:00
2026-07-10 20:30:15 -07:00
2026-07-10 15:03:57 -07:00
2026-05-22 08:42:47 -07:00
2026-05-09 14:25:22 -07:00
2026-07-10 15:03:57 -07:00
2026-07-10 20:30:15 -07:00
2026-07-10 20:09:30 -07:00
2026-07-10 19:48:49 -07:00
2026-05-09 14:25:23 -07:00
2026-07-10 16:53:32 -07:00
2026-05-23 10:30:47 -07:00
2026-07-10 19:48:49 -07:00
2026-07-10 20:30:15 -07:00
2026-07-10 20:30:15 -07:00
2026-07-10 16:02:15 -07:00
2026-07-10 17:26:16 -07:00
2026-07-10 17:26:16 -07:00
2026-05-14 21:19:31 -07:00
2026-07-10 07:18:07 -07:00
2026-07-10 20:30:15 -07:00
2026-07-10 08:55:07 -07:00
2026-07-10 08:55:07 -07:00
2026-07-10 07:18:07 -07:00
2026-07-10 14:31:59 -07:00
2026-07-10 15:03:57 -07:00
2026-07-10 13:36:32 -07:00
2026-07-10 13:36:32 -07:00
2026-07-10 18:27:32 -07:00
2026-07-10 13:44:32 -07:00
2026-07-10 14:05:24 -07:00
2026-07-10 13:36:32 -07:00
2026-07-10 13:36:32 -07:00
2026-07-10 18:09:11 -07:00
2026-07-10 18:09:11 -07:00
2026-07-11 00:53:25 -07:00
2026-07-10 07:18:07 -07:00
2026-07-10 07:18:07 -07:00
2026-05-09 14:25:22 -07:00
2026-05-14 15:28:42 -07:00
2026-05-14 15:28:42 -07:00
2026-05-14 15:28:42 -07:00
2026-07-09 20:29:05 -07:00
2026-05-28 21:55:34 -07:00
2026-07-10 07:18:07 -07:00
2026-05-14 18:00:29 -07:00
2026-05-14 18:00:29 -07:00
2026-03-27 21:26:19 -07:00
2026-03-26 09:22:02 -07:00
2026-07-10 07:18:07 -07:00
2026-05-28 09:35:04 -07:00
2026-06-18 06:34:16 -07:00
2026-07-11 07:43:57 -07:00
2026-05-15 12:11:27 -07:00
2026-05-09 14:25:23 -07:00
2026-07-09 19:36:24 -07:00
2026-05-12 21:54:40 -07:00
2026-04-18 01:07:25 -07:00
2026-05-09 17:23:08 -07:00
2026-05-09 14:25:22 -07:00
2026-05-09 14:25:23 -07:00
2026-07-11 12:39:01 -07:00
2026-07-10 08:01:51 -07:00
2026-05-09 14:25:22 -07:00
2026-07-10 19:48:49 -07:00
2026-05-14 07:53:17 -07:00
2026-07-11 13:44:47 -07:00
2026-05-12 21:59:19 -07:00
2026-07-09 20:21:17 -07:00
2026-07-10 12:44:19 -07:00
2026-07-11 12:39:01 -07:00
2026-04-18 01:05:22 -07:00
2026-07-11 12:39:01 -07:00
2026-07-10 08:25:56 -07:00
2026-07-10 11:07:21 -07:00
2026-05-22 09:26:17 -07:00
2026-05-09 14:25:22 -07:00
2026-07-10 08:44:25 -07:00
2026-07-09 21:23:35 -07:00
2026-07-11 12:39:01 -07:00
2026-07-11 12:39:01 -07:00
2026-07-09 23:23:17 -07:00
2026-07-11 12:39:01 -07:00
2026-07-09 23:23:17 -07:00
2026-07-11 12:39:01 -07:00
2026-05-16 12:53:00 -07:00
2026-07-09 22:07:20 -07:00
2026-07-09 20:29:05 -07:00
2026-07-11 13:44:47 -07:00
2026-07-11 13:44:47 -07:00
2026-07-11 12:39:01 -07:00
2026-07-10 08:01:51 -07:00
2026-07-11 13:44:47 -07:00
2026-07-10 07:18:07 -07:00
2026-07-10 15:03:57 -07:00
2026-07-11 12:39:01 -07:00
2026-07-09 20:43:37 -07:00
2026-07-10 07:18:07 -07:00
2026-03-26 09:22:02 -07:00
2026-04-08 17:04:40 -07:00
2026-07-10 08:01:51 -07:00
2026-07-10 08:01:51 -07:00
2026-07-10 07:18:07 -07:00
2026-06-18 00:28:05 -07:00
2026-05-12 21:59:19 -07:00
2026-07-10 07:18:07 -07:00
2026-07-10 07:18:07 -07:00
2026-07-09 23:23:17 -07:00
2026-05-28 08:14:13 -07:00
2026-07-10 08:01:51 -07:00
2026-05-12 21:59:19 -07:00
2026-07-11 07:56:41 -07:00
2026-05-12 21:59:19 -07:00
2026-05-09 14:25:22 -07:00
2026-07-09 23:56:16 -07:00
2026-07-10 07:18:07 -07:00
2026-07-10 07:18:07 -07:00
2026-05-14 22:37:47 -07:00
2026-05-14 22:37:47 -07:00
2026-05-17 12:24:18 -07:00
2026-05-17 17:03:20 -07:00
2026-05-09 14:25:22 -07:00
2026-05-09 17:21:33 -07:00
2026-07-10 08:01:51 -07:00
2026-05-27 19:41:49 -07:00
2026-07-11 12:39:01 -07:00
2026-07-10 07:18:07 -07:00
2026-07-10 07:20:14 -07:00
2026-06-18 06:34:16 -07:00
2026-07-10 17:26:16 -07:00
2026-05-15 12:11:27 -07:00
2026-07-11 00:53:25 -07:00
2026-07-10 07:18:07 -07:00
2026-07-10 20:09:30 -07:00
2026-07-10 07:18:07 -07:00
2026-07-09 23:56:16 -07:00
2026-07-09 18:49:19 -07:00
2026-07-10 08:01:51 -07:00
2026-07-10 07:18:07 -07:00
2026-05-16 12:40:17 -07:00
2026-05-15 12:11:27 -07:00
2026-07-10 08:01:51 -07:00
2026-05-09 14:25:22 -07:00
2026-07-10 07:18:07 -07:00
2026-07-10 07:18:07 -07:00
2026-07-10 07:20:14 -07:00
2026-07-10 07:18:07 -07:00
2026-07-10 07:18:07 -07:00
2026-05-09 14:25:22 -07:00
2026-05-27 18:42:57 -07:00
2026-07-10 20:09:30 -07:00
2026-05-21 23:40:54 -07:00
2026-07-10 20:09:30 -07:00
2026-07-10 07:18:07 -07:00
2026-05-09 14:25:21 -07:00
2026-05-15 11:29:03 -07:00
2026-07-10 19:48:49 -07:00
2026-07-10 07:18:07 -07:00
2026-07-10 07:18:07 -07:00
2026-05-14 21:30:15 -07:00
2026-05-12 21:59:19 -07:00
2026-05-17 16:20:10 -07:00
2026-05-09 14:25:22 -07:00
2026-05-14 19:47:01 -07:00
2026-05-17 17:03:20 -07:00
2026-05-17 16:06:46 -07:00
2026-07-10 13:36:32 -07:00
2026-05-14 22:06:31 -07:00
2026-07-11 07:43:57 -07:00
2026-07-10 19:48:49 -07:00
2026-05-09 14:25:21 -07:00
2026-07-10 07:18:07 -07:00
2026-05-09 14:25:21 -07:00
2026-05-09 14:25:21 -07:00
2026-07-10 08:25:56 -07:00
2026-07-10 07:18:07 -07:00
2026-07-10 07:18:07 -07:00
2026-05-14 21:30:15 -07:00
2026-05-09 14:25:21 -07:00
2026-05-15 14:43:11 -07:00
2026-05-14 21:53:06 -07:00
2026-05-14 15:18:18 -07:00
2026-07-10 13:36:32 -07:00
2026-05-09 14:25:21 -07:00
2026-05-09 14:25:22 -07:00
2026-07-10 07:18:07 -07:00
2026-07-10 08:25:56 -07:00
2026-05-09 14:25:21 -07:00
2026-05-09 14:25:22 -07:00
2026-05-14 18:38:57 -07:00
2026-05-16 12:40:17 -07:00
2026-07-10 07:18:07 -07:00
2026-07-10 07:18:07 -07:00
2026-07-10 19:48:49 -07:00
2026-07-09 23:56:16 -07:00
2026-05-09 14:25:22 -07:00
2026-07-10 16:53:32 -07:00
2026-05-09 14:25:22 -07:00
2026-07-10 16:02:15 -07:00
2026-05-09 15:17:30 -07:00
2026-05-09 14:25:22 -07:00
2026-05-09 14:25:22 -07:00
2026-05-17 17:03:20 -07:00
2026-05-09 14:25:22 -07:00
2026-07-10 20:09:30 -07:00
2026-07-10 07:18:07 -07:00
2026-07-09 23:56:16 -07:00
2026-05-12 21:59:19 -07:00
2026-07-10 07:18:07 -07:00
2026-05-27 17:24:36 -07:00
2026-07-10 07:18:07 -07:00
2026-05-27 18:13:33 -07:00
2026-07-10 19:48:49 -07:00
2026-06-28 17:39:29 -07:00
2026-04-08 17:04:40 -07:00
2026-07-10 07:18:07 -07:00
2026-07-10 23:32:52 -07:00
2026-05-16 12:40:17 -07:00
2026-07-10 20:30:15 -07:00
2026-07-10 07:18:07 -07:00
2026-07-10 08:01:51 -07:00
2026-05-27 19:07:37 -07:00
2026-07-10 15:26:20 -07:00
2026-07-10 07:18:07 -07:00
2026-07-10 07:18:07 -07:00
2026-07-10 07:18:07 -07:00
2026-07-11 12:39:01 -07:00
2026-07-10 11:07:21 -07:00
2026-07-11 12:39:01 -07:00
2026-07-09 22:30:11 -07:00
2026-07-09 22:30:11 -07:00
2026-07-09 23:56:16 -07:00
2026-07-09 22:18:40 -07:00
2026-07-11 12:39:01 -07:00
2026-07-10 08:55:07 -07:00
2026-07-11 12:39:01 -07:00
2026-07-10 00:37:59 -07:00
2026-05-27 20:47:28 -07:00
2026-07-11 13:44:47 -07:00
2026-07-10 07:18:07 -07:00
2026-07-10 07:18:07 -07:00
2026-03-26 23:38:06 -07:00
2026-05-21 18:05:37 -07:00
2026-07-10 07:18:07 -07:00
2026-05-21 18:05:37 -07:00
2026-05-22 07:25:08 -07:00
2026-03-26 09:22:02 -07:00
2026-05-21 22:58:31 -07:00
2026-07-10 07:18:07 -07:00
2026-07-10 07:18:07 -07:00
2026-07-10 07:18:07 -07:00
2026-07-10 07:18:07 -07:00
2026-07-10 07:18:07 -07:00
2026-07-10 07:18:07 -07:00
2026-04-18 01:06:50 -07:00
2026-03-26 09:22:02 -07:00
2026-03-26 09:22:02 -07:00
2026-05-09 14:25:21 -07:00
2026-03-26 09:22:02 -07:00
2026-03-26 09:22:02 -07:00
2026-04-18 14:11:59 -07:00
2026-05-27 18:42:57 -07:00
2026-04-18 14:11:59 -07:00
2026-07-10 07:18:07 -07:00
2026-07-10 07:18:07 -07:00
2026-07-10 07:18:07 -07:00
2026-07-10 07:18:07 -07:00
2026-03-10 16:58:15 -07:00
2026-04-26 10:09:32 -07:00
2026-07-09 18:52:32 -07:00
2026-07-09 18:52:32 -07:00
2026-07-10 07:18:07 -07:00
2026-04-08 17:04:40 -07:00
2026-05-09 14:25:21 -07:00
2026-05-09 14:25:21 -07:00
2026-07-09 18:32:23 -07:00
2026-07-09 19:22:10 -07:00
2026-07-10 08:55:07 -07:00
2026-05-14 22:37:47 -07:00
2026-05-14 18:00:29 -07:00
2026-05-14 18:00:29 -07:00
2026-03-27 21:26:19 -07:00
2026-03-27 11:55:47 -07:00
2026-07-10 10:44:56 -07:00
2026-07-10 07:18:07 -07:00
2026-04-08 17:04:40 -07:00
2026-07-10 07:18:07 -07:00
2026-04-08 17:04:40 -07:00
2026-07-11 07:43:57 -07:00
2026-07-11 07:56:41 -07:00
2026-07-10 23:50:48 -07:00
2026-05-09 14:25:23 -07:00
2026-07-10 19:48:49 -07:00
2026-07-10 23:32:52 -07:00
2026-05-15 08:03:42 -07:00
2026-05-09 14:25:23 -07:00
2026-05-09 14:25:23 -07:00
2026-03-11 00:45:25 -07:00
2026-03-08 18:25:18 -07:00
2026-03-27 11:55:47 -07:00
2026-03-26 09:22:02 -07:00
2026-03-10 18:08:05 -07:00
2026-04-08 17:04:40 -07:00
2026-07-10 07:18:07 -07:00
2026-03-08 18:25:18 -07:00
2026-07-10 07:18:07 -07:00
2026-05-12 21:59:19 -07:00
2026-07-10 07:18:07 -07:00
2026-03-26 09:22:02 -07:00
2026-03-11 00:45:25 -07:00
2026-07-10 16:12:53 -07:00
2026-03-08 18:25:18 -07:00
2026-07-10 07:18:07 -07:00
2026-07-10 07:18:07 -07:00
2026-07-10 07:18:07 -07:00
2026-07-10 07:18:07 -07:00
2026-07-10 07:18:07 -07:00
2026-07-09 18:52:32 -07:00
2026-04-08 17:04:40 -07:00
2026-04-26 10:09:32 -07:00
2026-03-11 00:45:25 -07:00
2026-03-29 16:24:59 -07:00
2026-03-26 09:22:02 -07:00
2026-07-10 07:18:07 -07:00
2026-04-10 16:50:49 -07:00
2026-03-29 16:24:59 -07:00
2026-07-10 07:18:07 -07:00
2026-06-03 17:23:53 -07:00
2026-04-08 15:24:49 -07:00
2026-07-10 07:20:14 -07:00
2026-07-11 12:39:01 -07:00
2026-05-28 20:00:09 -07:00
2026-05-28 20:00:09 -07:00
2026-07-10 07:18:07 -07:00
2026-05-27 17:32:29 -07:00
2026-05-28 20:00:09 -07:00
2026-05-28 20:00:09 -07:00
2026-05-28 20:00:09 -07:00
2026-05-28 20:00:09 -07:00
2026-05-27 17:32:29 -07:00
2026-05-27 17:32:29 -07:00
2026-05-27 17:24:36 -07:00
2026-05-27 17:24:36 -07:00
2026-07-10 16:02:15 -07:00
2026-07-10 16:02:15 -07:00
2026-05-09 16:41:46 -07:00
2026-05-21 23:56:18 -07:00
2026-07-10 07:18:07 -07:00
2026-07-10 07:18:07 -07:00
2026-05-27 17:32:29 -07:00
2026-05-27 17:32:29 -07:00
2026-05-28 19:02:58 -07:00
2026-07-10 16:02:15 -07:00
2026-07-10 16:02:15 -07:00
2026-05-27 17:46:38 -07:00
2026-05-27 17:46:38 -07:00
2026-05-27 17:24:36 -07:00
2026-07-09 19:36:24 -07:00
2026-07-09 19:47:16 -07:00
2026-07-09 23:56:16 -07:00