Always Given a Chance v1.0.0 - Casualties: Unknown


A BepInEx mod that gives you the game's last stand every time you're dying.
In vanilla, the game rolls only once per run for a last stand that pulls you
back. The chance depends on how happy you were about 10 minutes earlier, so
a miserable character almost never gets it. With this mod, you get a roll
every time you're dying, in the same run too, and it always succeeds (or
succeeds at the chance you set).


WHAT YOU NEED
-------------
- Casualties: Unknown (Windows, Steam version)
- BepInEx 5 (x64): https://github.com/BepInEx/BepInEx/releases
  Pick "BepInEx_win_x64_5.4.x.x.zip" (version 5, NOT version 6).


HOW TO INSTALL
--------------
1. Open your game folder. In Steam: right-click Casualties Unknown > Manage >
   Browse local files.
2. Install BepInEx if you don't have it: unzip it into the game folder, start
   the game once, wait for the main menu, then close it.
3. Copy the "BepInEx" folder from this zip into the game folder and merge.
   The file should end up at:
     <game folder>\BepInEx\plugins\AlwaysGivenAChance.dll
4. Start the game.


HOW IT WORKS
------------
Nothing to do. The last stand itself is vanilla: same trigger, same recovery.
The mod changes how often you get it and the odds.
- The roll happens while you're alive, unconscious, and your brain health
  has dropped to 15 or below.
- You get a roll every time you're dying, not just once per run. If a roll
  fails (only possible with Chance below 100), you get a new one the next
  time you're dying, once your brain health has recovered above 15.
- Instant deaths that skip that state (for example losing your head) don't
  get a roll, in vanilla or with this mod.


SETTINGS
--------
<game folder>\BepInEx\config\alwaysgivenachance.cfg
  Enabled     true = use the settings below (default)
              false = vanilla last stand
  Chance      0 to 100, the percent chance the roll succeeds (default 100)
  EveryTime   true = a roll every time you're dying (default)
              false = once per run, like vanilla


UNINSTALL
---------
Delete <game folder>\BepInEx\plugins\AlwaysGivenAChance.dll.
