A recipe is `def CraftRecipes key { out, n, ins: [...], ns: [...], station, minutes, hold,
group, learned }`. The pack is the CraftPack port (count, take, add, room, and `leaves`: what
an item leaves once used, so water gives back its bottle); stations are CraftStations (ready,
start), unbound meaning hands only. craft_make hands a click recipe over or starts a timed one
at its station, refunding when the station refuses; the hold runs from the screen that shows it.
Uses ludic.base only; ten tests with a fake pack and fake stations.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
10 lines
374 B
Text
10 lines
374 B
Text
# ludic.crafting - recipes as an open registry; the pack and the stations are the game's, asked
|
|
# through ports; making one takes its makings and either hands the result over or starts a station
|
|
module ludic_crafting uses ludic_base
|
|
numbers float
|
|
import "ludic.base"
|
|
import "recipes.ludic"
|
|
import "ports.ludic"
|
|
import "verbs.ludic"
|
|
import "hold.ludic"
|
|
import "system.ludic"
|