wip(0.S3): packages and examples migrated again from their pre-0.S sources in one run

ludic migrate state packages <every example program> packages/ludic.lab/example/plate.ludic
  1804 vars into 126 states, 64 into lets; 23498 edits in 460 files

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Orkun ÇAKILKAYA 2026-09-25 15:31:34 +03:00
parent 5ffe50ed02
commit 19fcf60599
459 changed files with 17862 additions and 17603 deletions

View file

@ -20,11 +20,11 @@ export function weather_draw_from(w: []float, from: int, roll: float) -> int {
return len(w) - 1
}
function wx_pick_next(from: int) -> int {
return weather_draw_from(wx_odds(from), from, rng_float(wx_dice))
function wx_pick_next(weather_st: WeatherState, from: int) -> int {
return weather_draw_from(wx_odds(from), from, rng_float(weather_st.wx_dice))
}
function wx_spell_hours(k: int) -> float {
let kd = wx_kinds[k]
return rng_span(wx_dice, kd.spell_lo, kd.spell_hi)
function wx_spell_hours(weather_st: WeatherState, k: int) -> float {
let kd = weather_st.wx_kinds[k]
return rng_span(weather_st.wx_dice, kd.spell_lo, kd.spell_hi)
}