Skip to content

Latest commit

 

History

History
41 lines (33 loc) · 2.71 KB

ReadMe.md

File metadata and controls

41 lines (33 loc) · 2.71 KB

Keep Me Geo

A Hollow Knight mod which makes it so that when you die, you keep your geo.
There are also options for turning off the spawning of shades when you die too.

How it Works

There is a player data property called "geoPool", and one called "geo". "geoPool" stores the amount of geo dropped when you last died, and "geo" stores the current amount of geo you have. This mod hooks onto a script provided by the Hollow Knight modding API which runs after you die. It then replaces your current geo with the value of "geoPool", and sets "geoPool" to zero.

Available Options

The following settings can be changed:

  • Mod Toggle
    Enable or disable the mod.
  • Spawn Shades
    Toggle whether or not shades spawn when you die.
  • Remove Soul Limit
    Toggle whether or not the limit on the total amount of soul your vessel can hold to two-thirds of its original capacity after you die is removed.
  • Percent of Geo Kept
    Specify the percent of your geo that you want to keep when you die (the rest stays on your shade).

The following safeguards are in place:

  • Permanent Geo Loss
    The mod will directly warn you and ask for confirmation if you try to set the percent of geo kept after death to anything other than 100% while shade spawns are off, in order to prevent accidental permanent loss of geo.
  • Making Geo out of Thin Air
    You cannot set the percent of geo kept after death to anything greater than 100%, and so you'll always have at most 100% of your geo when you die.
  • Going into Debt
    The percent of geo kept after death cannot be set below 0%, which would cause you to go into geo debt after you die. Millibelle the Banker is gonna take your house and your dogs otherwise...

Dependencies

Credits

  • TheMulhima on GitHub
    I borrowed the code from DebugMod which recovers your shade, and used it to do the same in this mod.
    This readme file is heavily inspired by the very well-organized readme file from the mod AdditionalChallenge.
    I also extensively relied on this fantastic documentation for Hollow Knight modding beginners, which I believe TheMulhima also created.
  • ygsbzr on Github
    I got my foothold in creating menus with Satchel by borrowing the code used for the menu in the EnemyHPBars mod.
  • W3Schools
    I'm pretty sure anyone who's ever coded anything in the modern age has used W3Schools.