Refactor alot of stuff
This commit is contained in:
@@ -4,7 +4,7 @@ A Unity card battler about Linux distributions and programming languages. Native
|
||||
|
||||
## Open and run
|
||||
|
||||
Use Unity **6000.4.8f1**, with Windows build support. Open this directory through Unity Hub, let the complete package set import, and start `Assets/Scenes/MainMenuScene.unity`. New profiles learn the game in a three-wave tutorial, including Cron Job's countdown and a Daemon miniboss. New normal runs have a ten-wave campaign ending with the Kernel Overseer. After clearing wave 10, bank your rewards or continue the same build into endless survival at wave 11.
|
||||
Use Unity **6000.4.8f1**, with Windows build support. Open this directory through Unity Hub, let the complete package set import, and start `Assets/Scenes/MainMenuScene.unity`. New profiles learn the game in a three-wave tutorial, including Cron Job's countdown and a Daemon miniboss. New normal runs have a ten-wave campaign ending with a seeded Kernel Overseer, Process Supervisor, or OOM Reaper encounter. After clearing wave 10, bank your rewards or continue the same build into endless survival at wave 11.
|
||||
|
||||
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.
|
||||
|
||||
@@ -16,13 +16,29 @@ The mandatory tutorial retains the basic queue/stack turn-order demonstration. P
|
||||
|
||||
Clear all ten campaign waves with **C selected as either run language** to permanently unlock **C++**, or with **JavaScript selected** to unlock **TypeScript**. Selecting both unlocks both. The unlock is saved at the completion boundary, including when continuing into endless survival, and remains available in collection, run setup and practice. Generated cards and distro exclusives do not qualify by themselves; optional training and legacy five-wave campaigns never qualify. Failed saves show a retry action and never announce a saved unlock.
|
||||
|
||||
Each evolution has three distinct starter cards (four cards including the duplicate) and eight repository cards, mirroring its base language's costs, rarities and roles. C++ strengthens C's effects, retains its elevated critical chance, transfers all remaining overkill and never causes segfault recoil. Its pointer chains after C++, and its sizeof counts both C and C++ cards in hand. TypeScript uses fixed damage without critical rolls: console.log deals 9, fetch 13, typeof always deals 16, Math.random 20, Promise.all 10 three times, Array.map 6 per enemy, Promise.resolve 5, JSON.parse 9 plus a draw, and eval 30. Its defensive and copy cards also improve. External buffs, distro mechanics and enemy defenses still apply.
|
||||
Each evolution has three distinct starter cards (four cards including the duplicate) and eight repository cards, mirroring its base language's costs, rarities and roles. C++ matches C's base attack damage and improves its utility, retains its elevated critical chance, transfers all remaining overkill and never causes segfault recoil. Its pointer chains after C++, and its sizeof counts both C and C++ cards in hand. TypeScript cannot crit and uses JavaScript's average base damage, rounding halves up: console.log deals 6, fetch 9, typeof always deals 11 (14 at 75% success averages to 10.5), Math.random 11, Promise.all 7 three times, Array.map 4 per enemy, Promise.resolve 3, JSON.parse 6 plus a draw, and eval 15. Averages exclude JavaScript critical hits. Its defensive and copy cards also improve. External buffs, distro mechanics and enemy defenses still apply.
|
||||
|
||||
The combat workspace includes **Turn resolution**: Go, Python automation, FIFO, Haskell LIFO, enemies and cleanup, with the active action highlighted and a bounded journal of actual damage, Shield and host losses. Completed results remain available during planning. The separate execution preview still shows public estimates rather than guaranteed outcomes. These observers never consume randomness or delay gameplay.
|
||||
|
||||
Run reports and recent history now include full-run totals, per-card plays/damage/Shield contributions and the final deck with its upgrades. Contributions group copies by card type and include Go ticks, Python payload replays and overkill spill without counting them as additional plays. Utility effects are not ranked. Statistics survive repository save/resume; older checkpoints explicitly report statistics only since resuming. Original-build loading retains its existing behavior.
|
||||
|
||||
New campaigns use encounter revision 3, adding alternate compositions and threat advice for waves 5–9. Old checkpoints retain their saved encounter revision. The boss remains wave 10. Combat repository/report screens, menu history, and collection language panels live in separate controller partial files; reusable turn-resolution and performance views own their own presentation.
|
||||
New campaigns use encounter revision 4, adding boss and elite variants while retaining alternate compositions and threat advice for waves 5–9. Old checkpoints retain their saved encounter revision. The boss remains wave 10. Combat repository/report screens, menu history, and collection language panels live in separate controller partial files; reusable turn-resolution and performance views own their own presentation.
|
||||
|
||||
## Planning, encounters and combat saves
|
||||
|
||||
The repository's **installed deck** foldout shows permanent Cycles costs (0, 1, 2, 3, 4+), RAM requirements, language counts, and overlapping damage/defense/utility roles. Each card upgrade has **Before / after** details with its costs, magnitude bonus, draw rider, and actual rules. Combat discounts are excluded from the durable deck summary.
|
||||
|
||||
New campaigns select one of three final bosses from the run seed. Process Supervisor cycles through summoning two workers, Shield, and an interrupt; summons stop at eight living processes. OOM Reaper removes two RAM while alive and cycles through a Shield charge, a 14-damage burst, and a weak recovery attack. Both strengthen their next attacks below half Uptime. Elite detours can add a hidden-intent Daemon, a countdown Watchdog, or a Process Broker that alternates summoning and attacking. Future route previews disclose the encounter and advice. Older encounter revisions retain their original bosses and escorts.
|
||||
|
||||
**Save & exit** is also available during a stable combat planning phase, including after playing queued cards. Resolve target selections, Python choices and animations first. The checkpoint preserves the hand and pile order, temporary card state, FIFO/LIFO targets and multipliers, enemy intents, statuses, delayed effects, Go PIDs/ticks, Python automation, governor/Compilation state, progression and random cursor. Restore rebuilds these objects without replaying gameplay events. A failed write keeps the run playable; a successful resume consumes the checkpoint once. Tutorial and optional practice cannot replace campaign saves. Mid-combat checkpoints require compatible content; this does not promise replay compatibility across later balance changes.
|
||||
|
||||
Card previews explain each hit's input, flat bonuses, multipliers and defenses without rolling randomness. The top-bar **results** button opens a scrollable report; **Damage calculation / recent hits** shows the observed stages, critical outcome, Shield/Uptime losses and excess damage. Inputs already include the card's base roll/condition and magnitude; the rules and preview notes describe those upstream values. The journal bounds detailed storage to 32 recent hits per action.
|
||||
|
||||
Balance batches accept `-balanceCombatPolicy greedy|language` (default `language`). The language policy values affordable Python setup/payload combinations, drawing with usable Cycles/RAM, Haskell stack setup, Go deployment/extensions and Java warmup. It remains a heuristic, not an optimal player.
|
||||
|
||||
Validation for these improvements: 1,022 EditMode tests passed, followed by all 24 combat-layout tests after the final responsive UI changes. A Windows player build and wide/narrow player smoke checks exercise planning save/resume, resumed Go/FIFO execution, damage details, deck/upgrade views and route previews. Six fixed-seed benchmark cases reproduced identical wave, round, Uptime and event-trace results against their baseline. Test logs and screenshots are under `Logs/next-*` and `Logs/NextSmoke*`.
|
||||
|
||||
For human balance review, play the same seeds with both an immediate-damage build and a setup-heavy Python/Go or Haskell build. Record where route advice changes a decision, which upgrades are hard to evaluate, and whether each boss's loss feels explainable from its announced actions. Automated smoke checks exercise mechanics and layout; they do not establish human difficulty or enjoyment.
|
||||
|
||||
## NixOS and Go
|
||||
|
||||
@@ -64,6 +80,19 @@ The expansion adds 29 cards:
|
||||
|
||||
Python payload detection reads catalog operations rather than a fixed list of card IDs. New payloads participate in loops, zip and async capture; `map()` draws once on queue resolution, never on repeats or automation replays. `contextlib.suppress()` supplies a pure Shield payload and does not consume zip. Fixed draws remain fixed under magnitude upgrades.
|
||||
|
||||
## Software loadouts
|
||||
|
||||
Equipment uses **System**, **Tools**, and **Services**, with one featured combat bonus per category. These slots represent selected bonuses, not all software installed on a distro. System covers foundational libraries, storage, memory, security, and desktop components; Tools covers interactive utilities, package managers, build tools, and recovery; Services covers background processes and recurring work.
|
||||
|
||||
Existing collection loadouts move packages to their current categories. An item already in its category takes precedence over an incoming item; collisions leave the incoming package owned and upgraded but unequipped, with a migration notice. Saved runs and original-build retries preserve their original package allocations and effects. Loading an archived build into new setup uses current categories and reports any conflicts. Package effects, upgrade caps, costs, and rarity are unchanged. Internal serialized slot enum identities remain stable; UI and Inspector labels use the new taxonomy.
|
||||
|
||||
## Package upgrades
|
||||
|
||||
Packages have individual upgrade caps stored in their assets, from no upgrades to level 8. Each purchasable level changes an effective combat value. AUR and the currently unimplemented less/firewalld effects have no paid upgrades. Gentoo's three package progressions retain their five levels.
|
||||
|
||||
Counts and timing scale separately: udev progresses from draw 1 every 4 turns, to draw 1 every 3 turns, to draw 2 every 3 turns (cap 2). Wave draws and generated cards gain at most one additional card; Cycle bonuses gain at most one additional Cycle. Vim and Snap Store extend their one-Cycle discount to one more card. Generic ccache/nginx reduce their free-card interval to a minimum of two cards. Systemd gains ten percentage points per level; Timeshift raises its actual recovery threshold by five percentage points per level, up to 75% on Mint.
|
||||
|
||||
Repeated shield/damage effects generally have three to five levels; selected one-time shields and health packages have six or eight. Levels 6–8 cost 230/330/450 Cache and 460/660/900 Bandwidth; levels 1–5 keep their existing prices. Collection previews, equipment, gacha details, save/load, run checkpoints and previous-build retries use the package's own cap. Loading a collection refunds the full original Cache and Bandwidth cost of levels removed by a lower cap, in the same save transaction as the cap adjustment; reloading cannot pay twice.
|
||||
## Test and build
|
||||
|
||||
Run the EditMode tests from Unity's **Window > General > Test Runner** window.
|
||||
@@ -78,7 +107,7 @@ Campaign improvement validation: `Logs/improvements-tests-final.xml` records 998
|
||||
|
||||
C balance tuning: C damage now has a 35% critical chance (down from 50%); critical damage remains 1.5x. Each C overkill jump transfers 50% of the remaining excess, rounded down, after the previous target's defenses. For example, 11 excess damage spills 5; if that target consumes 2, the next jump carries 1. Java still transfers all remaining excess, and Rust's overkill-to-Shield is unchanged. Base card damage and segfault rules are unchanged.
|
||||
|
||||
- Waves 2–9 offer connected route stops before their seed-selected encounters; wave 10 converges on the boss. Elite detours add a Daemon with a disclosed modifier 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.
|
||||
- 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.
|
||||
@@ -86,7 +115,7 @@ C balance tuning: C damage now has a 35% critical chance (down from 50%); critic
|
||||
|
||||
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–4 still load; older campaigns retain their original encounter timing and wave-five completion choice. New saves use envelope schema 9 and checkpoint version 5, 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 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.
|
||||
|
||||
## Daily quests
|
||||
|
||||
|
||||
Reference in New Issue
Block a user