Welcome to Elderfield - Mining Hazard Frequency
Mod by ModdedMana - v1.0.0
https://moddedmana.com/mods
=============================================

WHAT THIS MOD DOES
------------------
Every successful mine in Welcome to Elderfield has a small chance of
triggering a hazard. This mod lets you choose how often those hazards
happen.

The three mining hazards are:

  - An ambush battle. You cannot escape it, though a Hazard Potion will
    stop it from starting.
  - Being cursed by the sleeping beings beneath the mine, which also
    applies a random two-day debuff.
  - Being hit by a piece of falling debris.

OPTIONS
-------
  0      No change. The mod does nothing at all.
  0.25   Hazards are 25% less likely.        (default)
  0.5    Hazards are half as likely.
  0.75   Hazards are a quarter as likely.
  1      Mining hazards never happen.

TO CHANGE IT
------------
Open MiningHazardFrequency.js in a text editor and find this line near
the top of the file:

    const HAZARD_REDUCTION = 0.25;

Replace the number after the = sign with one of the values above, save,
and launch the game. Leave the semicolon in place.

For example, to turn mining hazards off completely, the line should read:

    const HAZARD_REDUCTION = 1;

If you do not change anything, the mod uses "0.25".

HOW IT WORKS
------------
When a hazard would trigger, this mod skips it a set percentage of the
time. A skipped hazard simply does not happen - nothing weaker replaces
it, so you never get a milder version of an effect you wanted gone.

REQUIREMENTS
------------
- A copy of Welcome to Elderfield (built on RPG Maker MZ).
- Uses the game's own mining events, which are already part of the game
  - no other downloads are required.
- This mod is specific to Welcome to Elderfield and is not intended for
  other games.

INSTALLATION
------------
1. Copy MiningHazardFrequency.js into the game's plugins folder:
     <your Welcome to Elderfield install>\js\plugins\
2. Open plugins.js (in the js\ folder) with a text editor.
3. Find the end of the file. The last plugin entry is followed by a
   closing "]". Paste the contents of plugins.txt from this folder
   directly between the last plugin's closing "}" and that final "]".
   Placing the new entry near the bottom of the plugin list is best.
4. Save the file and launch the game. The mod uses "0.25" out of the
   box. See the OPTIONS section above if you want a different setting.

UNINSTALL
---------
1. Delete MiningHazardFrequency.js from the js\plugins\ folder.
2. Remove the entry named "MiningHazardFrequency" from plugins.js.

SUPPORTED VERSIONS
------------------
Made and tested against the current release of Welcome to Elderfield.
A future game update could change the mining events this mod targets. If
that happens the mod stops working rather than breaking anything.

NOTE
----
This mod only affects mining hazards. The separate farming hazard is not
affected. Your Hazard Potion still works normally if you leave hazards
enabled.

CREDITS
-------
Mod by ModdedMana (https://moddedmana.com/mods).
Welcome to Elderfield is developed by Chris Cote / Ill-Advised Records
and published by Kwalee (https://store.steampowered.com/app/3195440).
This is an unofficial fan mod. All game content belongs to its
respective owners.

CHANGELOG
---------
v1.0.0 - Initial release.

LICENSE
-------
Free to use and privately modify. Credit the author, no commercial use,
and no redistribution without permission. See LICENSE.txt in this
folder for the full terms.