Make some overall changes to utilities

This commit is contained in:
2026-10-26 22:09:36 +01:00
parent a4109f5be0
commit 881b61a66d
22 changed files with 376 additions and 790 deletions
+10 -12
View File
@@ -4,33 +4,31 @@ 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. Normal runs have a five-wave campaign followed by an optional endless mode.
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.
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.
## Validate a checkout
## Test and build
Stage the changes you intend to validate, then run:
Run the EditMode tests from Unity's **Window > General > Test Runner** window.
```powershell
./Tools/Validate-Checkout.ps1 -Build
```
Build the game through **File > Build Profiles**, using the scenes configured in the project. The editor entry point `KernelPanic.Editor.PlayerBuild.BuildWindows` is also available for batch-mode Windows development builds; its default output is `Builds/Windows/KernelPanic.exe`.
The script checks tracked asset/folder metadata, exports the Git index into a new temporary project, runs the complete EditMode suite with graphics, and optionally builds a Windows development player. It prints the project and artifact paths. It does not commit changes or alter the open working editor. For offline package reuse, add `-UseInstalledPackageCache`; the production manifest and lock file remain intact. Without that switch, Unity resolves packages normally.
See [Tools/README.md](Tools/README.md) for isolated-save player smoke checks, balance comparisons and import recovery. The balance runner supports `-balancePrefetch true` or `false` to compare use of the spare-Cycles draw action under the same seeds, loadouts and policies. These are bot measurements, not human win rates.
For seeded balance measurements, use the editor entry point `KernelPanic.Editor.BalanceComparison.RunBatch`. These are bot measurements, not human win rates.
## Current run decisions
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.
- Each campaign stage has three curated, seed-selected encounters. Elite detours add a Daemon with a disclosed modifier; repairs restore up to six Uptime instead. Previewing routes consumes no combat or shop randomness.
- After waves two and four, 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.
- 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.
- 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.
- 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.
Checkpoint versions 1 and 2 still load; older campaigns retain their original encounters. New saves use envelope schema 8 and checkpoint version 3. Seeded retries require the same game content and action sequence.
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–3 still load; older campaigns retain their original encounter timing and wave-five completion choice. New saves use envelope schema 8 and checkpoint version 4, including route topology, event results, and travel history. Seeded retries require the same game content and action sequence.
## Daily quests