refactor(packages): 0.R5 - the shop's week is rolled by its tick and asking reads it; needs start filled and vehicles start with their list; character, physics, vehicles and nativeecho's lazy starts are defaults; --tighten over all four

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Orkun ÇAKILKAYA 2026-09-27 13:25:57 +03:00
parent 67d8079c47
commit 87259f989d
31 changed files with 104 additions and 111 deletions

View file

@ -154,6 +154,7 @@ program ShopTest {
test "the week's demand is the shop's own dice, and turns with the week" (shop_st: mut ShopState, shop_test_st: mut ShopTestState) {
fresh(shop_st, shop_test_st)
shop_roll(shop_st) # the shop's tick rolls the week; asking only reads it
let a = shop_wanted(shop_st, 0)
expect(len(a) > 0)
for k in 0 .. len(a) { expect(shop_buys(shop_st, 0, a[k])) }
@ -167,6 +168,7 @@ program ShopTest {
var moved = false
for w in 1 .. 12 {
shop_test_st.day = 1 + w * 7
shop_roll(shop_st)
let b = shop_wanted(shop_st, 0)
if len(b) != len(a) or b[0] != a[0] { moved = true }
}