A frame holding a new peak of facts made a record and grew the free list; now nothing is made until 64 are held at once. The two record-count tests hold the 64. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
14 lines
486 B
Text
14 lines
486 B
Text
# ludic.character/fact_pool.ludic - the facts' records made at the start (CHARACTERFACTS of them) with a free list
|
|
# of room for all, so a frame holding a new peak of facts makes nothing until that many are held
|
|
const CHR_FACTS: int = 64
|
|
|
|
function chr_fpool_new() -> []CharacterFact {
|
|
let l = new []CharacterFact
|
|
for i in 0 .. CHR_FACTS { push(l, new CharacterFact) }
|
|
return l
|
|
}
|
|
function chr_ffree_new() -> []CharacterFact {
|
|
let l = chr_fpool_new()
|
|
List.clear(l)
|
|
return l
|
|
}
|