OsmarBriones-CharmGoldenCoin icon

CharmGoldenCoin

Heads or Tails: a Golden Coin in your pocket flips on every hit you are about to take: heads and you take no damage, tails and the coin wears. Needs Pockets and CharmCore. Everyone in the lobby needs it.

Last updated 31 minutes ago
Total downloads 2
Total rating 0 
Categories Mods Valuables AI Generated
Dependency string OsmarBriones-CharmGoldenCoin-1.0.0
Dependants 0 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2304 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2304
OsmarBriones-Pockets-1.0.1 icon
OsmarBriones-Pockets

Store valuables in your inventory slots and take them out again. Tiny valuables by default, configurable up to any size. Requires all players (Host and Clients) to install.

Preferred version: 1.0.1
OsmarBriones-CharmCore-1.0.0 icon
OsmarBriones-CharmCore

Engine behind the Charm mods: valuables in your pockets grant powers and wear down with use. Everyone in the lobby needs it.

Preferred version: 1.0.0

README

Charm Golden Coin

Heads or Tails: while the Golden Coin is in your pocket, every hit you are about to take flips it: heads and you take no damage, tails and you take it and the coin wears.

Everyone in the lobby must install this mod, together with Pockets and CharmCore. The power changes what your own character can do and its state shows on your inventory slot, so friends without the mods would see an empty slot and be unable to use the pocket.

Preview

Gameplay Preview

The captions and the pause on each flip are added to the recording to explain it; the game does not show them. The waits between shots are fast-forwarded.

How to Use

  1. Find the Golden Coin valuable and store it in a free inventory slot with Pockets (grab it, press the slot key).
  2. From then on, every time something is about to hurt you, a coin is flipped. Heads: the hit does nothing to you and the coin is untouched. Tails: you take the hit as usual and the coin loses some of its value.
  3. Take the Golden Coin out of the pocket and the power stops.

Not sure what it does? Hold the Golden Coin and a short description appears at the bottom of the screen.

Features

  • Heads or Tails: each hit you are about to take is a coin flip (50% by default): heads cancels it completely, even a hit that would have killed you; tails lets it land and wears the coin.
  • No pause: there is no cooldown, every hit is flipped.
  • It costs the coin: each tails wears away a share of the Golden Coin's value, and a worn-out coin breaks. Heads costs nothing.
  • Everything is configurable: wear, the chance of heads and the short protection after a heads. The host's choices apply to everyone.

Requirements

Installation

  1. Install through r2modman / Thunderstore Mod Manager (Pockets and CharmCore come with it), or place CharmGoldenCoin.dll next to Pockets.dll and CharmCore.dll in BepInEx/plugins. All players need it.
  2. Launch the game once; the configuration file is created inside BepInEx/config.

Configuration

Settings are in com.osmar.CharmGoldenCoin.cfg inside BepInEx/config, section Charm.GoldenCoin. The host's choices apply to everyone.

  • Enabled (default true): turn this charm on or off.
  • WearPercent (default 15): share of the valuable's original value lost on each tails.
  • HeadsChancePercent (default 50, 0 to 100): chance that a flip is heads. 0 never saves you, 100 always does.
  • HeadsInvincibleSeconds (default 0.5, 0 to 5): seconds you cannot be hurt after a heads, so a single attack is not flipped again and again. 0 flips every hit.

Section Debug: DebugMode (default false) places a Golden Coin on the floor in front of you when a level starts (host or singleplayer) and writes extra log lines. For testing. SpawnNow (default false, needs DebugMode): set it to true while a level is running to place one right away; it switches itself back off.

Good to know

  • Instant kills that skip the normal damage (a scripted explosion kill, arena kills) are not covered by the coin.
  • A cancelled hit can still push or tumble you.
  • If you die or are out of the round, nothing is flipped.

Issues & Bug Reports

The official way to report issues, suggest improvements, or submit feedback is by opening an issue on the official GitHub repository: 👉 GitHub Issues

Credits

Developed by Osmar Briones