ludic.base: a queue's fact records come round again (q_rec / q_ring_add), used by effects, clock, wallet, weather, tracks, needs, fire, settings, update, steps, crafting, shop, gear, hints, session and photo instead of a new record per fact; the minimap's marks cleared and rubbed out in place, its scale steps without a list; the clock's dice seeded again, not made again; once-per-join, per-save and pool-miss paths declared

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Orkun ÇAKILKAYA 2026-09-28 20:03:46 +03:00
parent 5be2422c84
commit d9612ba2a6
31 changed files with 215 additions and 25 deletions

View file

@ -2,7 +2,12 @@
# itself; a bonus past the cap pushes out the oldest bonus; a full ring drops the nearest end.
function ef_end(effects_st: mut EffectsState, i: int, why: int) -> void {
let all = ef_all(effects_st)
let e = new EffectEnded
var e = q_rec(effects_ended(effects_st))
if e == null {
@alloc_ok("past the ring: more of these in a frame than its records, then kept in it")
e = new EffectEnded
q_ring_add(effects_ended(effects_st), e)
}
e.kind = all[i].kind
e.label = all[i].label
e.why = why