Minutes of fuel that burn down in game time, twice as fast in the rain with nothing over the ring, and the hours it held under cover. Lighting and feeding are decided (fire_decide), costed in wood (fire_cost) and applied (fire_apply) apart, so a machine that does not own the world can ask the one that does. Warmth and cooking by distance are queries. FIRE_LIT, FIRE_WENT_OUT and FIRE_LOW_FUEL are facts; the rain, the tarp, the ban and who owns the world come through the FireWorld port. Its own save section. Uses ludic_base only; 8 tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
10 lines
360 B
Text
10 lines
360 B
Text
# ludic.fire - one fire: minutes of fuel that burn down in game time, faster in the rain with
|
|
# nothing over it; lighting and feeding are decided, applied and paid for as three steps
|
|
module ludic_fire uses ludic_base
|
|
numbers float
|
|
import "ludic.base"
|
|
import "state.ludic"
|
|
import "decide.ludic"
|
|
import "queries.ludic"
|
|
import "verbs.ludic"
|
|
import "system.ludic"
|