refactor(packages): the mechanic packages use ludic_base only, and ask through ports
ludic.clock, .effects, .inventory, .wallet, .weather and .tracks say 'uses ludic_base' (ludic.base uses nothing). ClockWorld, PackRules, WeatherWorld and TracksWorld are export ports whose defaults are the old fallbacks; clock_bind, inv_bind, weather_bind and tracks_bind are gone, and the tests bind their fakes. The base README's toy does the same. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
f4062010e9
commit
63e29f024c
31 changed files with 130 additions and 149 deletions
|
|
@ -1,8 +1,7 @@
|
|||
# pick.ludic - the next spell, drawn from weights, and how long one lasts. The weights are the
|
||||
# kind's own unless the world leans on them (a season, a wet week); every draw is this package's
|
||||
function wx_odds(from: int) -> []float {
|
||||
if wx_world != null and wx_world.odds != null { return wx_world.odds(from) }
|
||||
return wx_kinds[from].odds
|
||||
return WeatherWorld.odds(from)
|
||||
}
|
||||
|
||||
# the kind a set of weights lands on; no weights (or all zero) keeps the kind it came from
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue