Skip to content

feat(gamestate): expose tags, joker targets, and economy helpers - #222

Open
BGarber42 wants to merge 1 commit into
coder:mainfrom
BGarber42:feat/gamestate-run-context
Open

feat(gamestate): expose tags, joker targets, and economy helpers#222
BGarber42 wants to merge 1 commit into
coder:mainfrom
BGarber42:feat/gamestate-run-context

Conversation

@BGarber42

Copy link
Copy Markdown

Summary

  • Expose held skip tags (tags) from G.GAME.tags with key/name/effect.
  • Add round joker targets (idol_card, mail_card, ancient_card, castle_card) and free_rerolls.
  • Add economy (interest_cap/amount, bankrupt_at, discount_percent, shop_slots), probabilities, pool_flags, skips, starting_deck_size, and optional consumable_usage_total.
  • Document in OpenRPC, api.md, and CLAUDE.md; add integration tests.

Test plan

  • uv run pytest tests/lua/endpoints/test_gamestate.py::TestGamestateTopLevel::test_tags_empty_at_run_start -v
  • uv run pytest tests/lua/endpoints/test_gamestate.py::TestGamestateTopLevel::test_tags_and_skips_after_skip -v
  • uv run pytest tests/lua/endpoints/test_gamestate.py::TestGamestateTopLevel::test_economy_defaults -v
  • uv run pytest tests/lua/endpoints/test_gamestate.py::TestGamestateTopLevel::test_probabilities_normal_default_and_oops -v
  • uv run pytest tests/lua/endpoints/test_gamestate.py::TestGamestateTopLevel::test_pool_flags_and_starting_deck_size -v
  • uv run pytest tests/lua/endpoints/test_gamestate.py::TestGamestateTopLevel::test_consumable_usage_total_after_using_tarot -v
  • uv run pytest tests/lua/endpoints/test_gamestate.py::TestGamestateRound::test_round_joker_targets_and_free_rerolls -v

Surface held skip tags, Idol/Mail/Ancient/Castle targets, interest/shop
economy fields, probabilities, pool_flags, skips, starting_deck_size, and
consumable_usage_total so bots can act on run context the game already tracks.
@S1M0N38

S1M0N38 commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

thanks for PRs #221 and #222. I prolly review then add to dev branch instead of main. dev branch (almost ready) will become balatrobot v2 introducing breaking changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants