Docs · Engineering reference
Market (price curve)
docs/features/market.mdEdit on GitHub
Design context: addons/LifeFramework/Scripts/Game/Feature/Market/Feature.md.
LF_PriceCurve — Feature/Market/LF_PriceCurve.c (#2844, framework #762)
- ✅ Pure price-curve rules in whole cash units (merged, in-dev). A good has a base, floor and ceiling, a drop per unit sold (
dropPerUnitPctof the base, at least 1 unit when above 0) and a recovery per real hour (recoverPctPerHourof the gap to the base, at least 1 unit, never past the base).PriceAfterSalenever goes below the floor;BulkTotalprices each unit marginally, so a bulk sale of N pays the sum of N single sales; a drop of 0 keeps today's fixed price.Recoverpays whole real hours only and counts a gap pastmaxRecoveryHoursas the cap (IsClampedtells the caller to move its stamp to now). All int maths throughLF_Utils.MaxInt/MinInt/ClampInt(#2787). Static, no world, no state. Testmarket/price-curve(LOGIC). - ✅ (2026-11-18, #3028) The price is kept in hundredths of a cash unit, so a cheap good no longer drops a whole 1 per unit: a 2% drop on a 5-cash apple is 0.10 a unit (ten apples leave it at 4, about 25 take it to half; before, it hit its floor of 3 after two).
LF_MarketBookstoresm_iFineand quotes whole cash rounded half up (the board shows what a single unit pays); a bulk sale pays the exact marginal sum in hundredths rounded once (ten 5-cash apples at 2%: 5.00 + 4.90 + ... + 4.10 = 45.50, paid 46). Recovery closes its percent of the gap in hundredths and a gap of one hundredth still closes, so a price reaches the base to the cent a few hours later than before. Config is unchanged (whole cash); a ceiling above 10,000,000 is refused at load. Sums stay exact above 2^24 and stop atINT_MAX(MAX_BULK_UNITSis now 60000). The sale notice reads bands from the rounded cash price, the same number the board shows. Testmarket/price-curve(LOGIC),market/trader-sale(WORLD).
LF_MarketConfig — Feature/Market/LF_MarketConfig.c, Configs/Market/LF_Market.conf (#2844)
- ✅ Per good
m_sGood(item prefab, the trader list's key),m_iBase,m_iFloor,m_iCeiling,m_iDropPerUnitPct,m_iRecoverPctPerHour; globalm_bEnabledandm_iMaxRecoveryHours(168). The core ships the market off (m_bEnabled0) with three neutral goods (copper bar, iron bar, gold bar), so no server changes behaviour until it opts in.Sanitizeat load removes a good with a floor above the ceiling, a base outside them, a percent outside 0..100, a repeat or no prefab, each withLF_Debug.Error("Market", ...)naming the good. Nothing reads the curve yet: the per-good state, the save and the trader sale are later cards of the chapter.
Market config reads pack overlays — Feature/Market/LF_MarketConfig.c (2026-11-18, #3018)
- 🟡
LF_MarketConfig.Get()merges every pack overlay the mission header lists (m_aLF_ConfigOverlays, load order) overLF_Market.confbeforeSanitize: the goods are anLF_ConfigListkeyed by the good's prefab GUID (LF_MarketGoodList), so a pack row patches a core curve, a new good adds one,replacerebuilds one andremovetakes one out (docs/config/override-model.md). A patch that would leave a row unusable (a floor above the ceiling) is refused withLF_Debug.Error("Market", ...)and the row keeps its values. The overlay root may setm_bEnabledandm_iMaxRecoveryHours. No ownerconfig.jsonsection yet. Proof:market/pack-overlay.
Everon 1989 market goods — LF_Everon1989/Configs/Market/LF_Market_Everon1989.conf, Prefabs/Trader/LF_UniversalTrader_Everon1989.et (2026-11-18, #2849)
- 🟡 The 1989 pack turns the market on (header line in
Missions/LF_Everon1989.conf) and curves eight goods: apple 5, plum 4, cement bag 12, gravel bag 10, sand bag 8, iron bar 50, wood plank 6, cabbage 4. Base and ceiling are the trader's price (no seller is ever paid more than today), the floor is half of it rounded up (3, 2, 6, 5, 4, 25, 3, 2), a unit takes 2 percent of the base off (at least 1 cash: whole-cash prices) and 12 percent of the gap to the base comes back each real hour, so a floored good is back within 10 percent of base in 24 h. The pack removes the core copper and gold bar curves and re-prices iron (core 30). The pack trader pays 12 for cement (core 15) because the general store sells it at 12 and a curve ceiling must not exceed a shop buy price (validate-profit-loops). The pack trader prefab inheritsUniversalTrader.etand lists planks at 6 and cabbages at 4 beside the core prices (a derived prefab's object list adds to the ancestor's and an element with the core row's GUID overrides it, so it carries only the two new rows and the cement price); the core trader list is unchanged. Not placed in the town yet: the town layers take atown-pass. Proof: pack-leg testeveron/market(LOGIC),validate-profit-loops.
LF_MarketBook — Feature/Market/LF_MarketBook.c, LF_MarketEvents.c, Feature/Trader/LF_TraderSale.c (#2845)
- ✅ A trader sale rides the curve (merged, in-dev). Server-only, in-memory state per good: the current price and
lastSaleUnix; a good never sold stands at its base. Recovery is applied lazily on each quote from the stamp (no tick), so a quote never moves the price; a sale moves the stamp by the whole hours recovery counted (to now on a first sale or past the cap), so steady trade still recovers.LF_TraderSale.SellasksLF_MarketBook.QuoteAtfor a good the market lists whilem_bEnabledis on: the stack pays the curve's marginal bulk total (ledgertrader-sellas before) and the price drops for the next seller; any other good, or the market off, pays the trader's fixed value exactly as before. Order: pay, move the price, take the item; a failed removal takes the cash back and restores the price. A completed curved sale publishesLF_OnMarketPriceMoved(good, old, new). A client sale request now also counts against thePURCHASErate limit and refuses a dead or downed seller (SELLER_DOWN). Saved since #2846 (below). Testmarket/trader-sale(WORLD).
Profit-loop check reads the market curve — tools/economy/profit-market.mjs (#2848)
- ✅ (2026-11-18, merged, in-dev)
validate-profit-loopsfails a curved good whose cheapest shop buy price (shop price rules after the ownershopssection, or a catalogue outlet) is below the highestm_iCeilingany market file gives it, the most a seller is ever paid. It reads the coreConfigs/Market/LF_Market.confand every packaddons/<pack>/Configs/Market/*.conf, and the line names the shop file, the market file and the good. Fixturetools/validation/fixtures/profit-loop/market-floor-loop(buy 8 against a ceiling of 10 fails, a ceiling of 7 passes, a pack overlay ceiling counts), proofprofit-loop-selftest. The shipped loop it found, GoldBar (shop 250, ceiling 280), was retuned: the core ceiling is now 240 (floor stays 120, half the ceiling), so nothing is baselined. A market ceiling must never exceed what any shop sells the good for. Not read: pack shop price overlays (LF_ShopPrices_*.conf), which price their own shop only.
LF_PriceBoard - Feature/Market/LF_PriceBoard.c, Prefabs/Props/Market/LF_PriceBoard.et (#2847)
- Chalk price board at the trader (merged, in-dev). A board kind (
LF_BoardProviders, kindprices): reading it asks the server, which builds the answer fresh fromLF_MarketBookand replies once to that reader (the sharedRpcAsk_LF_Board/RpcDo_LF_ShowBoardpair, so no new RPC, noRplProp, no JIP state). One line per curved good in config order with today's price and avwhen below base (only the price and a below-base flag cross, never the base or curve; reads ride the shared per-player board read limit); a disabled market answers an empty board painted as No prices today. The prefab inheritsLF_Sign_Chalkboard.etand addsLF_PriceBoardReadAction. The printed chalk face (#3299): the board is a styled sign (sign idprice_board, stylechalk,LF_SignComponent.m_sRowSource "market") whose rows come fromLF_PriceBoardFace.RowsFromAnswerover the same board answer: one row per good (label, price, avafter the price below base), or one No prices today. row. The client asks once (LF_AskBoard(kind, face true), the same RPC pair) when the viewer is within 90 percent of the board read distance and again after 60 s; a reply to a face ask is held inLF_SignRowSourcesand repaints the face, a Read ask still opens the card, and the sign's own "Read: Prices today" is hidden so the board has one Read action. Before the first reply the face shows its title only. Testsmarket/price-board(WORLD),market/price-board-face(LOGIC); proof is a full-profile session picture (lookdraws render targets white).
Market save section — Feature/Market/LF_MarketSave.c (#2846)
- ✅ (2026-11-18, merged, in-dev) Market prices survive a restart. Save section
market(version 1,LF_MarketSavePayload): oneLF_MarketPriceRowper good the book holds (m_sGood,m_iCurrent,m_iLastSaleUnix, andm_sScope, empty, reserved for per-town markets). Floor, ceiling and curve stay config. A load replaces the book: a good the config no longer lists is dropped ([LFDebug:Market] saved price of ... dropped), a price outside the good's current floor..ceiling is clamped (... clamped a -> b); with no config at all the rows are kept unchecked. The saved stamp means recovery for the downtime applies on the first quote after the boot. A save from before the section loads every good at its base (OnAbsent does nothing, so a re-apply to a live session keeps the live prices). Testmarket/persist(PERSISTENCE, restart check in the e2e reload boot). - ✅ (2026-11-18, #3028) Save section
marketis version 2: a row'sm_iCurrentis hundredths of a cash unit (row version 2). The row shape is unchanged; a version 1 row (whole cash) is read x100 and a damaged value is held to the largest price, then to the good's floor..ceiling. Testmarket/persistloads a version 1 row and the e2e price is 22.50.
LF_StallRules — Feature/Market/LF_StallRules.c, LF_StallConfig.c, Configs/Market/LF_Stalls.conf (#2924, framework #786, #759)
- ✅ (2026-11-18, merged, in-dev) Stall market rules as pure server logic: no world, no RPC, no save, no statics; the core ships them off (
m_bEnabled0). The caller owns the cash and moves it only when a rule answersLF_EStallResult.OK. Market day is a config window of the in-game week (m_iMarketDay0..6,m_iOpenHour..m_iCloseHour; the week isdayNumber % 7).Renttakes the pitch fee (m_iPitchFee) for that one market day and refuses outside the window, with a short purse, or twice; a pitch is for one market day and a new one clears the unreserved old listings.Listputs one item at the holder's price on a rented stall: a price outsidem_iMinPrice..m_iMaxPriceor pastm_iMaxListingsrefuses.Reserveholds a buyer's cash in anLF_StallEscrowfor the listing (no double reserve, no self-buy, market open);Settlepays the seller the price minusm_iCutPct(cut rounded down, the market keeps it) and removes the listing,Refundreturns the whole amount and re-opens the listing; an escrow ends once, so a second settle, a refund after a settle (or the reverse) and another stall's attempt refuse. Money maths is int only throughLF_Utils.MaxInt/MinInt/ClampInt(#2787); the cut is split so a price atMAX_CASHcannot overflow and running totals stop atMAX_TOTAL.LF_StallConfig.Sanitizeswitches a bad table off withLF_Debug.Error("Market", ...). Testmarket/stall-rules(LOGIC). Not built yet: the stall prop and screens, taking the cash, the save, and the market-day clock that suppliesdayNumberandhour.
LF_StallComponent / LF_StallRentAction — Feature/Market/LF_StallComponent.c, LF_StallRentAction.c, Prefabs/Props/Stalls/LF_MarketStall.et (#2925, framework #786, #759)
- ✅ (2026-11-18, merged, in-dev) A market stall on the square (vanilla
MarketStand_01mesh, GenericEntity withLF_StallComponent, grid cellslice-2925). "Rent stall (fee)": the server checks reach (5 m), the market clock (LF_StallClock: whole in-game days since 1970-01-01 and the hour, from the vanillaTimeAndWeatherManagerEntity), thenLF_StallRules.Renton a fresh candidate stall, and only after OK takes the pitch fee from carried cash (ledger reasonstall_rent; a short removal is given back and nothing is rented). One stall per player per market day (a second stall, or the same one twice, answersALREADY_RENTEDwith no cash moved). TwoRplProps per stall (rented flag and the holder's display name, at most 32 chars; the holder's uid never leaves the server) so every client and late joiner sees "Stall of " on the prompt. The rent ends with the day:Lapsefrees the stall when the day changes or the closing hour passes (checked on every rent and by a 30 s server timer). The core ships stalls off (LF_Stalls.confm_bEnabled0), so the action is hidden until a server opts in. Testmarket/stall-rent(WORLD). Restart: the stall is server memory, so a restart frees it; the held rent is saved and refunded (seeLF_StallRentBookbelow, #3279). Not built yet: listings and buying at a stall, a printed name over the stall.
LF_StallTrade / LF_StallBuyAction — Feature/Market/LF_StallListing.c, LF_StallBuyAction.c (#2926, framework #786, #759)
- ✅ (2026-11-18, draft PR, REVIEW-NEEDED: money and items) List goods on a rented stall and buy them. A listing is a claim, not custody: the item stays in the holder's inventory and the listing is its price tag, so a restart, a crash or a holder logging out cannot lose an item, and at closing time unsold goods are simply still the holder's (no lost-and-found is needed).
LF_StallTrade.List(server; holder only, within 5 m) refuses a price outside the config range, a full stall, and an item the holder's stock does not back (the stock must cover every listing of that prefab).Buy(server; buyer within 5 m) reserves the listing inLF_StallRules(no cash moved), checks the holder's character is in the world and still carries the item, takes the price from the buyer (ledgerstall_buy), moves the holder's own item entity into the buyer's inventory (its rounds, damage, attachments and contents go with it; a counted stack moves one unit), then settles: the holder is paid the price minus the cut (stall_sale), the market keeps the cut. Each failure undoes the steps before it: no cash and the buyer is refunded and the listing re-opens; the holder took the item away, so the buyer is refunded and the stale listing drops (no dupe); the buyer has no room, so nothing moves and the cash goes back to the buyer. A listing with cash in escrow cannot be taken down.LF_StallBuyAction("Buy from the stall") buys the cheapest open listing; the server toasts the buyer and the holder. Testmarket/stall-trade(WORLD). Not built yet: a listing screen (the holder lists and the buyer picks through the server API only), the list-an-item action with a price prompt, and saving the stall and its rent (a restart before closing frees the stall with no rent refund; there is no escrow to save, since a sale completes inside one server call).
LF_MarketSaleNotice - Feature/Market/LF_MarketSaleNotice.c, hook in Feature/Trader/LF_TraderSale.c (#2923)
- (2026-11-18, merged, in-dev) The trader says when your sale moved the price. A good's price is read in bands of 20 percent of its base below the base (
Band); the server remembers the band the trader last spoke for, per good, in memory only. A completed curved sale that lands in a lower band toasts the seller#LF-Market_SaleDown("I'm paying less for %1 today, I've plenty."); a sale after the good recovered a band toasts#LF-Market_SaleUp("I'm paying full price for %1 again."). A sale inside the band, the market off, or a good with no curve says nothing; no line carries a number. After a restart the first sale re-reads its band from the book, so nothing is said until a band is crossed. One 3-line hook inLF_TraderSale.Sellafter the sold toast callsOnSale. Testmarket/sale-notice(LOGIC).
LF_BuyerDemand — Feature/Market/LF_BuyerDemand.c, LF_BuyerDemandConfig.c, Configs/Market/LF_BuyerDemand.conf (#3267, parent #3169)
- 🟡 (2026-11-18, merged, in-dev) Premium buyer with demand: pure core rules shared by lumber and the mining chains. A row per buyer id and good holds
m_iCap,m_iRefillPerHour,m_iPriceand an optionalm_sCurveGood.LF_BuyerDemand.Sellacceptsmin(units, remaining)and reports the rest refused, the payout and the seconds to the next unit;Refillworks on elapsed unix seconds in int maths (never past the cap, clamped after a long gap, exact at 1.8e9, #2787). A row with a curve prices each unit marginally from the price down to the curve floor as the purse empties.LF_BuyerDemandConfigis a list section keyed by buyer plus good GUID and reads pack overlays; a bad row (cap 0, negative refill, no buyer or good, huge cap, negative price, a repeat) is refused at load withLF_Debug.Error("Market", ...)naming it. The core ships no rows (the pack decides). Not built: a buyer that uses it, saving purses (a later section), and the refusal line to the player. Wholesale isLF_PriceCurve. Testmarket/buyer-demand(LOGIC). - 🟡 (2026-11-22, #4194, merged, in-dev) Per-period cap. A row may set
m_iPeriodHours(1 to 8760, for example 168 for a week) instead ofm_iRefillPerHour: the purse refills to the full cap the first time a sale or read lands in a later period than its stamp, and gains nothing inside a period, so "two cartons a week" is a cap of 2 (an hourly refill cannot say it: its smallest rate is 168 a week). Periods are fixed windows counted from the unix epoch (a 168 hour period turns on Thursday 00:00 UTC), the same for every buyer; missed periods do not stack. Sales past the cap are refused (m_iRefused), the curve price still falls as the cap fills and starts again at the top after the reset, andm_iSecondsToNextis the seconds to the next period start. The save stores units and stamp as before (no new section or version), so a purse spent before a restart stays spent until the period turns. A row with both a period and an hourly refill is refused at load; a pack patch may setm_iPeriodHours. Rows with period 0 (all shipped rows) behave exactly as before. The "I'm full up this week" line belongs to the outlet cards (B5/B6); the existing#LF-Market_BuyerFulltoast shows the wait in minutes. Testmarket/buyer-demand(period cases).
Saint-Philippe market slot — Place_saint-philippe_market.layer, tools/town/kits/market.json (2026-11-18, #3079, draft PR)
- 🟡 The
marketslot of the island's Saint-Philippe is fitted on the b01 frontage (the house the square's north side runs past): a market stall on the pavement facing the street, the pack traderLF_UniversalTrader_Everon1989.eton its counter (planks 6, cabbage 4, the #3027 curves) and the chalk price boardLF_PriceBoard.etat the stall's end. The marker is kindMarketTrader, backed byLF_TraderManagerComponent(town checkreads it through the placed prefab). A sale on the island pays through the pack market overlay and moves the price the board reads. Not built: a trader NPC behind the stall (no pack resident for the kind yet), the printed chalk face. Themarket-proofverb targets the DebugWorld stalls, so the island sale is under## Manual testingof the PR. Town drafts need the maintainer's approval before merge.
LF_StallConfig pack overlays - Feature/Market/LF_StallConfig.c, LF_StallRules.c, LF_Everon1989/Configs/Market/LF_Stalls_Everon1989.conf (#3182)
- (2026-11-18, in-dev)
LF_StallConfig.Get()now layers the pack overlays of the mission header overLF_Stalls.conf: every root field an overlay sets (m_bEnabled,m_iMarketDay,m_iOpenHour,m_iCloseHour, the fee, listing and price limits, the cut) replaces the core value, a field it leaves alone stays;Sanitizeruns after, so a bad merged table switches stalls off.m_iMarketDay0 now means every day (LF_StallRules.IsMarketOpen); 1..6 is that day of the week, so weekday 0 is no longer selectable. The Everon 1989 pack opens the market every day 16:00 to 22:00 (LF_Stalls_Everon1989.conf, one row inLF_Everon1989.conf). The overlay did not switch stalls on until a held rent was refunded at a restart; since #3279 it setsm_bEnabled 1(see below). Testsmarket/stall-config-overlay(LOGIC) andeveron/stalls(pack leg).
Premium buyer sale - Feature/Market/LF_BuyerDemandBook.c, LF_BuyerDemandSave.c, Feature/Trader/LF_TraderSale.c, LF_Everon1989/Prefabs/Trader/LF_TimberBuyer_Everon1989.et (#3599, draft, REVIEW-NEEDED)
- 🟡 (2026-11-19, draft PR) A trader names a premium buyer (
LF_TraderManagerComponent.m_sBuyerId);LF_TraderSale.Sellthen asksLF_BuyerDemandBookbefore paying. A good the buyer has aLF_BuyerDemandrow for sells at the row's price for the units the purse accepts (the count is the server's own, from the stack): the stack shrinks by what was taken and the rest stays with the seller, a spent purse refuses withBUYER_FULLand the toast#LF-Market_BuyerFull("they have enough, back in ~N min";#LF-Market_BuyerNeverfor a row that never refills; the pack rows say "try the wholesale warehouse at the dock"). Pay first, then take the units; a failed payout or removal puts the cash and the purse back. The book logs[LFDebug:Market] demand <buyer>/<good> N/cap. Purses are saved as sectionbuyerdemand(LF_BuyerDemandSavePayload, own version 1,LF_BuyerPurseRow: key, units, stamp): a restart neither refills nor empties a purse, the saved stamp refills it for the time down; a purse with no config row is kept inert. Pack: the timber counter prefabLF_TimberBuyer_Everon1989(buyerhardware, planks and boards; the base list's other rows are 0 so it refuses them), and the dock wholesale buyer's board, post and firewood list values now equal their curve bases (7, 5, 2) instead of dead 10, 8, 5. Testsmarket/buyer-demand-sell(WORLD) andmarket/buyer-demand-persist(PERSISTENCE, restart-checked bywt e2e).
Price per lot - Feature/Market/LF_MarketConfig.c, LF_BuyerDemand.c, LF_MarketBook.c, Feature/Trader/LF_TraderSale.c, LF_Everon1989/Configs/Market/LF_Market_Granary_Everon1989.conf, LF_BuyerDemand_Bakery_Everon1989.conf (#3622, draft, REVIEW-NEEDED)
- 🟡 (2026-11-19, draft PR) A curve row (
LF_MarketGoodDef) and a buyer row (LF_BuyerDemandRow) takem_iLotSize(units one price covers, default 1, a row that leaves it unset counts as 1). The price, floor, ceiling and the drop are per lot, so grain counted in kg can be priced at $2 a 50 kg lot ($0.04 a kg) instead of a whole cash per kg. A sale pays whole lots only (units / lot, rounded down) and the part lot stays with the seller:LF_MarketBook.QuoteAtandApplySaleAtcount lots,SellableUnits(good, units)is what a trader takes,LF_BuyerDemand.Sellacceptsmin(stack lots, purse lots) * lotand reportsm_iUnderLot(the refused units that only fall short of a lot, so the "they have enough" toast stays for a full purse only). A buyer's purse, cap and refill stay in units;SecondsToNextUnitis now seconds to one lot.LF_TraderSale.SelltakessoldUnitsof the stack (TakeUnits) and refuses a stack below one lot with the new outcomeBELOW_LOTand the toast#LF-Market_BelowLot("this buyer takes whole lots of N"), on both the curve path and the premium-buyer path; a lot-1 sale runs exactly as before. A buyer row that names a curve good needs the same lot size (else it prices flat and logs a warning); a buyer row's cap must be at least one lot. The gather hint shows the per-unit price (price / lot, no hint under $1). Pack data: the granary curve for grain ({7B2E5A1C93D40F11}, lot 50 = one full sack, $2 a lot = $0.04 a kg, floor $1, flat: drop 0, because the smallest step, 1 % a lot, halves the hour's grain income and leaves the duty band) and the bakery's flour row (bakery,{7B2E5A1C93D40F12}, lot 5, $1 = $0.20 a kg, purse 1,000 kg, +500 kg/h), each its own overlay file listed in the mission header. The price board prints the lot after the name ("Grain sack x50"). A full 50 kg grain sack is one lot and sells at a counter for $2; a part sack isBELOW_LOTand stays with the seller. Testsmarket/lot-size(LOGIC) andeveron/grain-buyers(pack leg).
LF_StallRentBook / LF_StallSavePayload - Feature/Market/LF_StallSave.c (#3279)
- (2026-11-19, draft PR, REVIEW-NEEDED: money and persistence) A stall rent no longer eats the pitch fee at a restart.
LF_StallComponent.Rentrecords each paid rent inLF_StallRentBook(holder key, market day, fee, token = holder, day and unix second);Lapse(the day passed or closing hour, also run on every save) andClearrelease it. Save sectionstall_rents(version 1, rowsLF_StallRentRow: holder, token, day, fee) writes the rents held at the save. A stall is server memory and is free after a restart, so the load refunds each fee into the holder's bank (ledgerstall_rent-restart-refund, sections apply after the bank payload) instead of restoring the pitch; the listings are claims on the holder's own items and need no save. A token this session recorded or refunded is skipped, so a second load or a re-apply in the session that took the rent pays nothing twice; a rent that lapsed before the save is not saved and not refunded; a save from before the section refunds nothing. The Everon 1989 pack overlay now setsm_bEnabled 1, so stalls are open on the flagship 16:00 to 22:00. Testsmarket/stall-rent-persist(PERSISTENCE, with thewt e2erestart check) andeveron/stalls(pack leg).
Mining buyers - LF_Everon1989/Configs/Market/LF_Market_Everon1989.conf, LF_BuyerDemand_Everon1989.conf (#3237, merged, in-dev)
- 🟡 (2026-11-19) Each mining product has its own wholesale curve at the harbour warehouse (
dk:b24,LF_WholesaleBuyer_Everon1989.et), so a flooded market moves players to another chain. Per unit base / floor, drop, recovery: iron bar 20 / 14, 0.5 %, 30 %/h; copper bar 40 / 20, 3 %, 10 %/h (re-added, the pack no longer removes it); cement bag 7 / 5, 0.2 %, 40 %/h; coal lump 7 / 5, 1 %, 25 %/h. The curve drop is a whole percent, so a drop under 1 % is a lot price (#3622): iron sells in lots of 2 (40 / 28 a lot, 1 %), cement in lots of 5 (35 / 25 a lot, 1 %), which is 0.5 % and 0.2 % a unit; a lone bar or a part lot of bags stays with the seller. Premium rows at the hardware store beat the wholesale base: copper bar $52 (purse 12, +4/h), iron bar $22 (purse 30, +15/h), cement bag $10 (purse 120, +60/h); coal and ore have no premium row. Tuned into the duty band by E2 (#3246). Testeveron/mining-market(pack leg);everon/marketskips the four mining goods.
Saint-Philippe market stall dressing and the stall's own board: tools/town/kits/market.json, LF_PriceBoard.BuildTraderAnswerAt (first-two-hours review A20)
- 🧪 (2026-11-23, merged, in-dev) The market slot reads as a market. The vendor (
LF_Npc_Trader_1: cotton shirt, trousers, flat cap) stands behind the counter. A red market umbrella (MarketStand_01_Umbrella) shades the street end of the stall. Crates heaped with apples and plums sit on the counter ends, and a crate of cabbages stands beside the vendor. The produce crates are pack prefabs (LF_Everon1989/Prefabs/Props/Market/LF_ProduceCrate_{Apple,Plum,Cabbage}.et, written bytools/town/gen-produce-crates.mjs): a wooden crate with mesh-only fruit, no inventory and no physics, so nothing on the stall can be taken and sold back. The chalk price board stands at the other end of the stall, turned toward the customer. - The board prints the trader's own prices.
LF_TraderItem.m_bPostedmarks the rows a trader posts. A board read finds the trader within 8 m of the reader (LF_ActionSite.FindNear, the trader'sLF_TraderSellAction) and, when that trader posts rows, lists them withLF_TraderSale.QuoteUnits(1): the same price its "Sell 1" row shows, with the down arrow for a curved good below its base. A good that sells only by the lot is left off. A trader that posts nothing, or no trader near, gives the market's curved goods as before. The pack stall posts apple, plum, wooden plank, cabbage, honey jar, honeycomb and apple juice (7 of the face's 8 rows). Testmarket/price-board-trader(WORLD). - The trader role talks through a registered dialogue (
role_trader, text only in the core;role_trader_everonvoiced in the pack by "Nicolas Estrem - Mature"), so the market vendor's five lines are voiced like the other role NPCs. - 🧪 (2026-11-23, #4413, 0.3.0 work A1 rows) The power plant buys coal by the truck load. The pack's buyer table (
LF_BuyerDemand_Everon1989.conf) has apower_plantrow forCoalLump: $8 a lump (over the wholesale base of $7), a purse of 60 lumps that refills 26 an hour, so the East Rise coal feeder (about 71 lumps an hour by car) sells 26 at the premium and the rest at wholesale: about $450 an hour, the Entry rung (was $385). A sale past the purse is refused with the buyer-full toast ("try again in about N min"). Rows only: the buyer NPC and the coal yard are the Day 5 card "A1 place", andtools/economy/mining-assumptions.jsonstill hasbuyer: nullfor the coal feeder, sotools\cli economykeeps showing $385 until that line namespower_plant. Testeveron/power-plant-coal(WORLD, pack leg).