ludic.things: a Thing's dawn (the last day a restock reached it, saved); things_restock takes the day; things_catch_up restocks a chunk's Things that missed a dawn once a morning would reach them, as that morning would have

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Orkun ÇAKILKAYA 2026-09-29 21:14:42 +03:00
parent 0634116d59
commit b053bf625c
7 changed files with 57 additions and 8 deletions

View file

@ -21,6 +21,7 @@ export property Thing {
seat: int = -1 # the first of its model's seat rows in the game's table; -1 none
seats: int = 0 # how many seat rows follow it
taken: int = 0 # a bit per seat someone is sitting in; never saved
dawn: int = 0 # the last day a restock reached it (a morning, or a catch-up)
shared: bool = false # the game copies it to others (a party)
ent: int = -1 # its handle in the table, -1 once removed
tab: Table<Thing> = null # the table holding it, so a verb on the Thing alone keeps the indexes