diff --git a/README.md b/README.md index e4bd3de..eb0daf6 100644 --- a/README.md +++ b/README.md @@ -1,30 +1,25 @@ -# Chick Sorter v10.7 UI / Ports / Shutter +# Chick Sorter v14.0 Zunda Tax / Resale -Open `index.html` in a browser. +## Changes in this build +- Changed Egg Farm build price to `¥250`. +- Replaced the previous daily Fairies fee with `ZUNDA TAX`, paid when `Next Day` is pressed. +- `ZUNDA TAX` taxes only cash above `¥500`: `ceil((cash - 500) × rate)`, with 5% added per `¥500` band and a 95% cap. +- Removing equipment from a previous Build phase now sells it for 50% of its build price; same-Build removals still refund 100%. +- Removed visible `STOPPED` text/highlight. Blocked chicks simply stay still. +- Removed route-overlay arrows/colored flow arrows. Conveyor movement is now shown by small direction triangles inside belt tiles. +- Moved the starter S1 position lower so the Egg Farm and S1 have more distance. +- Moved the Truck to the bottom side of the grid and connected the starter S2-to-Truck belt to the new receiver. +- Made scanner and facility ports strict: a belt must occupy the exact port cell to count as connected. +- Expanded `Next Day` validation to scanner inputs/outputs and planned output routes, not just machine receiver cells. +- Build buttons for unaffordable equipment, or already-built unique machines, are disabled and visually faded. +- Removed Close buttons from clicked-equipment/upgrade popovers. Click outside the popover to close it. +- Kept `src/index.html` and `src/styles.css` removed; the project uses the root `index.html` and `styles.css` only. +- Continued centralized price/income/fine/facility definitions in `src/core/config.js`, shared text in `src/core/text.js`, and economy logic in `src/systems/economy.js`. -## v10.7 changes - -- Reduced excessive rule/help text. Only essential routing/status is shown. -- Moved the build grid lower so the top rows are not hidden by HUD/status UI. -- Added egg farm shutter animation when the timer reaches 0. Farms stop producing; the remaining chicks must clear before Build phase. -- Facility bodies cannot overlap when building or dragging. -- Mixer / Shredder / Truck receiver ports remain on the grid edge while bodies sit outside the grid. -- Output route arrows are color-coded: - - Mixer: blue - - Shredder: green - - Truck: pink - - If one belt segment carries multiple destination routes, multiple colored guide lines are drawn. Duplicate same-destination lines are collapsed. -- Next Turn is blocked unless Mixer, Shredder, and Truck receiver ports are connected to conveyor. -- Truck visual cargo is cleared before Build phase so females do not remain displayed in the truck after settlement. - -## Controls - -Sorting: -- S1: A = Mixer, D = S2 -- S2: Left Arrow = Shredder, Right Arrow = Truck - -Build phase: -- Left drag empty area: box select -- Drag selected equipment: move selection -- Right drag: pan -- Ctrl+Z / Ctrl+Y: undo / redo +## Structure ideas for the next cleanup pass +- Move HTML button content to a data-rendered build panel instead of hard-coded markup. +- Give every equipment object a `defId`, so runtime state never duplicates names, prices, sizes, or upgrade rules. +- Store routes as cell arrays and convert to pixel paths only at movement/draw time. +- Cache route plans per build session, then invalidate once on build/erase/drag instead of recomputing every draw. +- Split route validation into errors and warnings, so optional/unused equipment can be supported later without blocking the day. +- Remove legacy fallback paths after save compatibility is no longer needed. diff --git a/assets/images/README.md b/assets/images/README.md index 5f03f73..1bd6e5b 100644 --- a/assets/images/README.md +++ b/assets/images/README.md @@ -4,7 +4,7 @@ The game currently uses simple canvas placeholders. You can override them by add - `chick_male.png` - `chick_female.png` -- `poop.png` +- `tarinai.png` - `conveyor.png` - `scanner_manual.png` - `scanner_auto.png` diff --git a/index.html b/index.html index 7103dc6..1e94edb 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@
-Build, drag, connect all receiver ports, then start the next turn.
+Build, drag, connect all receiver ports, then start the next day.