Log inGet started
World

Sillage

Branchmain
Branchesmain
Commit27e62798a4

README.md

sillage_economy

Stock, the ledger, the season, and the still — everything in Sillage that makes a formula cost something.

A perfume is a spend. Every drop comes out of a bottle that has a bottom, and every bottle was bought or made. This module owns the three francs-and-grams facts the rest of the game reads: how much of a material is left, what it costs today, and how the fields and the alembic put more of it in the cupboard.

What it provides

Economy.stockOf(id)grams left of a material
Economy.dropsOf(id)the same, counted the way a perfumer counts
Economy.spend(id, drops)draw a dose down; false when the bottle is empty. A negative count puts it back
Economy.priceOf(id)francs per gram this season
Economy.buy(id, grams)ok, message; refuses what the trade does not sell
Economy.formulaCost(f)what a formula costs to pour
Economy.stockValue()what the whole cupboard is worth today
Economy.season()the month, its note, what is in season, and the baskets
Economy.distil(lot, process)take a basket to the apparatus
Economy.settle(verdict)pay the fee or take the loss, and turn the calendar
Economy.openLedger() / openStill() / close()the two pages
Economy.figure(n, dec)a number set the French way: 1 234,50

It emits stock:changed whenever any of that moves, and owns Core.state.francs, Core.state.reputation and Core.state.stock. Material prices and behaviour come from sillage_sim, keyed on the same id as Core.catalogue; the table here is only the fallback if the sim is not loaded.

The season

Six harvests, one per commission, from February 1954 to December 1955. Mimosa comes down from the Tanneron in February, the rose is cut in May, the jasmine is picked at four in the morning in August, the iris root is lifted in October. What is in season is cheap; what is out of it is dearer, and the ledger marks it with a dagger.

The still

Two materials — ambergris tincture and civet tincture — are not sold in Grasse at any price. The only way to have them is to make them, from what the season put in the baskets, at the copper alembic on the right of the room. That is the private palette: not a bonus, the only route.

Each basket wants one of three apparatus, and the wrong one costs the same and gives back about a fifth. Bark, leaf and root take the steam; a fragile flower is killed by it and goes to the fat; animal matter and moss are left cold in alcohol. The rubric at the foot of the page says so.

World content

The alembic on its raised hearth at Core.anchors.still, framed by the still camera station, and the season's harvest baskets on the floor by the window at Core.anchors.baskets. Both are rebuilt when the calendar turns, so the room shows what month it is before any page is opened. Surfaces come from the econ_* materials beside this module.