---
# System prepended metadata

title: Codex to-do list

---

# Codex to-do list

:::spoiler {state="open"} economy/per turn stuff
- [ ] code a counter that displays gold (xml on the board)
- [ ] functions to worker/undo workering a card
    - [ ] worker goes in a special zone when first built, for easy undoing and as a reminder to build one. then at end of turn it goes into the main stack of workers.
- [ ] functions to for building tech and addons
    - [ ] check prereqs
    - [ ] pay
    - [ ] try to rebuild every turn
- [ ] making a building (and eventually other actions) goes into a permanent log next to your board rendered as xml - this needs to be fleshed out
:::

:::spoiler {state="open"} card management
- [ ] deck zone functions:
    - [ ] draw X
        - [ ] check for teched cards before drawing or peeking
            - [ ] teched cards go into a special hand zone next to codex
    - [ ] discard x
        - [ ] harder than it looks, need to handle grouping properly
    - [ ] peek (vir)
:::

:::spoiler card instances and passive event tracking
- [x] data import - done https://github.com/omniraptorr/tts-codex/blob/main/carddb.lua
- [ ] formalize event fields (need second opinion from dragon)
- [ ] after those two are done:
    - [ ] automate paying for cards
    - [ ] UI rendering (buttons to change stats manually)
    - [ ] implementing functions for abilities
:::