Skip to content

Named card choices in PvZ

A live 2-6 request asked to discount Scaredy-shroom while it occupied the first packet. The account's unchanged current model chose slot 4 instead. The prompt carried native seed/source IDs and zero-based packet indexes, but no readable name-to-slot mapping. The incorrect live sample is retained in the game worktree's output/source26-inline-live.json; no native action was applied to a player's game.

Current card context now adds the one-based slot, English name and available Chinese deck name to each observed packet. Numeric-choice instructions explicitly use those slots, preserve current packet order/identity, and ask for clarification when a name identifies multiple packets or is missing. Variant sources retain their own identities: Grave Spitter is distinct from Grave Buster, the borrowed mushroom is not prematurely named, and ally dancer packets are not inferred from placeholder art. Raw price, cooldown and generation data remain unchanged. This adds no client schema, action permission or database migration.

Two regressions fail before the fix and pass afterward. They cover reordered packet data, localized names, duplicate Scaredy cards and special-source aliases. Existing quote tests continue comparing every raw field after excluding the new derived labels. All 440 isolated NPC/route tests pass; the final alias additions pass the focused tests. The host branch starts from 871ec7092, retaining the other session's model-picker work.

The game also restores 2-6's existing inline numeric reply controls and mushroom upgrade menu, which were omitted from the chapter UI dispatch. Game details and browser evidence are recorded separately. The first provider sample is a verified failure, not a writing-quality pass. A follow-up should use the same account's current default configuration after deployment, without rerolling or changing models.