Revamp UI a whole lot

This commit is contained in:
2026-11-18 19:42:44 +01:00
parent 260abc2c98
commit fdde7f9d80
57 changed files with 2667 additions and 935 deletions
+21 -11
View File
@@ -8,6 +8,14 @@ Use Unity **6000.4.8f1**, with Windows build support. Open this directory throug
Keep Unity `.meta` files alongside their assets in version control. `Library`, `Temp`, `Logs`, builds and local recovery scenes are excluded. Do not delete or regenerate metadata to resolve missing references.
## Gacha economy and feature branch
Commits are the free pull currency shared by beginner, stable and feature banners. Normal runs award one Commit at wave 5, two at the wave-10 campaign boss, and one at every later five-wave endless milestone. Sustained daily objectives award one Commit and the wave-5 daily awards two. Root Credits remain the premium currency and convert to Entropy at the existing 1:1 rate; one pull paid entirely with Entropy costs 100.
The **feature branch** is a permanent NixOS rate-up with independent 4-star and 5-star pity. Its 4-star distro pool features Fedora and Ubuntu. A 5-star first splits evenly between package and distro; a distro hit has a 1/3 chance to use the non-featured standard pool, and losing that roll guarantees that the next 5-star distro on this banner is NixOS. Equipment hits do not consume or arm the featured-distro guarantee.
Completed pull transactions are saved newest-first, capped at 100 receipts, and available through a separate pull-history pop-up from the gacha toolbar or the main prompt with `git log --pulls`. Pull history is not a banner and opening it preserves the currently selected banner. Each receipt retains its banner, payment, exact resolved rewards, rarity, and duplicate conversion.
In `ls ~/collection/languages`, unlocked playable languages offer **Learn more / practice fight**. C, C++, Rust, Python, JavaScript, TypeScript, Haskell, Java, and Go each have a replayable guided fight with a fixed loan deck, followed by free practice. Exit with Escape or the training button; completion returns to the selected language, with a retry option. Practice does not replace campaign checkpoints, advance daily quests, award currencies, or change mandatory tutorial progress. Languages whose cards are still planned show an availability note instead.
The mandatory tutorial retains the basic queue/stack turn-order demonstration. Python's detailed preparation, automation, modifier and payload lesson now lives in its optional fight, where players perform the combo and watch the captured payload replay.
@@ -110,36 +118,38 @@ C balance tuning: C damage now has a 35% critical chance (down from 50%); critic
- Waves 2–9 offer connected route stops before their seed-selected encounters; wave 10 converges on the boss. Elite detours add a disclosed elite escort and award eight Bits plus a draw rider on the first eligible card after clearing the wave (16 Bits total if no card is eligible); repairs restore up to six Uptime. Patch workshops improve a card, sacrifice altars exchange one card for a stronger upgrade, recyclers remove a card for Bits, and caches grant Bits. Previewing routes consumes no combat or shop randomness.
- After waves 2, 4, 6, and 8, choose a magnitude upgrade, a first draw rider on a chosen card, or eight Bits. Rewards last for the current run. The choice and its claim state survive repository saves.
- During normal combat, **prefetch** spends two Cycles to draw one card, once per turn. It requires two free RAM so any possible card fits. It does not bypass the draw order, corruption or card locks.
- Combat sounds have a volume/mute control in Settings. Audio observes events and has no effect on gameplay timing or randomness.
- Combat sounds have a 0–100 volume slider in Settings; zero is muted. Audio observes events and has no effect on gameplay timing or randomness.
- Daemons hide a fresh action each round: Surge (8–10 damage), Harden (6–8 Shield), or Bypass (3–4 damage through Shield). Damage, including Shield-only hits, reveals the committed action for that round without rerolling it.
Focusing a hand card reveals its name and Cycles cost, including when its rules are taller than the hand viewport. Cards fit the available hand width on narrow screens; the rules remain freely scrollable.
Checkpoint versions 1–5 still load; older campaigns retain their original encounter timing and wave-five completion choice. New saves use envelope schema 10 and checkpoint version 6, including route topology, event results, travel history and run statistics. Seeded retries require the same game content and action sequence.
Checkpoint versions 1–5 still load; older campaigns retain their original encounter timing and wave-five completion choice. New saves use envelope schema 11 and checkpoint version 6, including route topology, event results, travel history, run statistics, accrued Commits, independent feature-banner state and bounded pull receipts. Seeded retries require the same game content and action sequence.
## Daily quests
The main menu's compact `[ cron.daily ]` widget sits below neofetch. The entire widget is clickable and reports the reset countdown, completed/claimed counts, three task progress readouts, and the exact number of unclaimed rewards in amber. Its terminal action highlights on hover/focus and switches from `> inspect tasks` to `> claim available rewards` when appropriate. Click it or focus it and press Enter to inspect descriptions and claim individual rewards in a terminal overlay. Escape or the close control restores previous focus. The existing prompt also accepts `cat /etc/cron.daily/quests`, including Tab completion; no extra navigation tab is added. Claims and daily resets update both views immediately. The widget and overlay have no animations.
The main menu's compact `[ cron.daily ]` widget sits below neofetch. The entire widget is clickable and reports the reset countdown, completed/claimed counts, five task progress readouts, and the exact number of unclaimed rewards in amber. Its terminal action highlights on hover/focus and switches from `> inspect tasks` to `> claim available rewards` when appropriate. Click it or focus it and press Enter to inspect descriptions and claim individual rewards in a terminal overlay. Escape or the close control restores previous focus. The existing prompt also accepts `cat /etc/cron.daily/quests`, including Tab completion; no extra navigation tab is added. Claims and daily resets update both views immediately. The widget and overlay have no animations.
The wider detail modal keeps its terminal command, reset countdown, and completion summary above the scrolling task list. Fixed-width ASCII bars and aligned numerical progress accompany subdued `[ in progress ]`, amber `> CLAIM REWARD`, or muted-green `[ CLAIMED ]` controls. A successful atomic save produces a two-line `[ OK ]` confirmation with the actual deposited currencies; failed saves never announce success. Focus moves to Close after claiming so repeated Enter does not advance into another reward.
Focus restoration distinguishes input methods: mouse-opened details return to the menu without a persistent widget focus highlight; keyboard-opened details restore the prior keyboard target, and the command alias returns to the prompt. Escape can release the widget's keyboard focus. Selecting a primary command with arrows or pointer hover also releases the widget, keeping Enter consistent with the selected command. Ordinary hover highlighting remains while the pointer is over the widget. This follow-up passes 78 relevant tests (`Logs/daily-quest-focus-tests.xml`), a zero-error Windows build (`Logs/daily-quest-focus-build.log`), and isolated mouse/keyboard player checks at 1280x720 and 390x844 (`Logs/DailyQuestFocusSmoke-16bd1b818f1046de9bbc6780170b64f2/`).
The main menu shows three distinct quests randomly selected from eight options: clear 3 waves, play 25 cards, deal 200 Uptime damage, block 40 damage with Shield, play 15 Native cards, deal 60 damage to enemy Shields, survive 8 enemy rounds, or clear wave 5. Each 24-hour reset picks a new set and never repeats the exact previous trio. The saved selection survives reopening the game and does not consume combat or shop randomness. Existing fixed quests keep their progress and claim status until their next reset.
The main menu shows five distinct quests randomly selected from eight options: clear 3 waves, play 25 cards, deal 200 Uptime damage, block 40 damage with Shield, play 15 Native cards, deal 60 damage to enemy Shields, survive 8 enemy rounds, or clear wave 5. Each 24-hour reset picks a new set and never repeats the exact previous set. The saved selection survives reopening the game and does not consume combat or shop randomness. Active three-quest periods expand to five immediately while preserving their progress and claim status.
Progress accumulates across normal runs and is saved as you play. Tutorial combat and self-damage do not count. Shield damage and Uptime damage advance their respective objectives; surviving rounds requires reaching Garbage Collection alive after the enemy phase. Only the three active quests can progress or pay rewards.
Progress accumulates across normal runs and is saved as you play. Tutorial combat and self-damage do not count. Shield damage and Uptime damage advance their respective objectives; surviving rounds requires reaching Garbage Collection alive after the enemy phase. Only the five active quests can progress or pay rewards.
Each completed quest has an individual claim button. Rewards scale with the objective's difficulty and expected effort:
| Objectives | Bandwidth | Entropy |
| --- | ---: | ---: |
| Play 25 cards; play 15 Native cards | 75 | 25 |
| Deal 200 Uptime damage; block 40 damage with Shield | 100 | 50 |
| Clear 3 waves; deal 60 damage to enemy Shields; survive 8 enemy rounds | 150 | 75 |
| Clear wave 5 | 250 | 125 |
| Objectives | Bandwidth | Entropy | Commits |
| --- | ---: | ---: | ---: |
| Play 25 cards; play 15 Native cards | 75 | 25 | 0 |
| Deal 200 Uptime damage; block 40 damage with Shield | 100 | 50 | 0 |
| Clear 3 waves; deal 60 damage to enemy Shields; survive 8 enemy rounds | 150 | 75 | 1 |
| Clear wave 5 | 250 | 125 | 2 |
Quest details and payouts use the same reward table. Existing progress and claimed flags are preserved; already-claimed quests do not pay again when rewards change. Both currencies and the claim flag are saved together, so repeated clicks or saving retries cannot pay twice. Claim rewards before the countdown expires: progress and unclaimed rewards reset every 24 hours, anchored to the first quest initialization using the computer's UTC clock. Closing the game does not pause or restart the countdown.
Claiming all five daily task rewards automatically pays a one-time all-clear bonus of **250 Bandwidth, 125 Entropy, and 2 Commits**. The fifth quest reward and all-clear bonus settle atomically: if any balance would overflow or the save fails, neither payout is announced as successful.
Validation: `Logs/daily-quests-tests.xml` records 672 passing EditMode tests, including reset boundaries, save/reload, failed-save recovery, reward claims, gameplay events, and menu layouts at standard/large text sizes.
Difficulty reward validation: `Logs/daily-quest-difficulty-tests.xml` records 76 passing EditMode tests, including exact payouts for all eight objectives, duplicate-claim prevention after reload, preservation of previously claimed flat rewards, currency overflow checks, displayed reward amounts, and responsive quest layouts.