Documentation
Readme
View as plain text
Invulnerability
Compatible with Hollow Knight version: 1.4.2.4
USAGE INSTRUCTIONS
::Installation Folder::
Windows: C:\Program Files (x86)\Steam\steamapps\common\Hollow Knight\hollow_knight_Data\Managed
Mac: /Users/.../Library/Application Support/Steam/steamapps/common/Hollow Knight/hollow_knight.app/Contents/Resources/Data/Managed
Linux: /home/<USER>/.steam/steam/steamapps/common/Hollow Knight/hollow_knight_Data/Managed
Note for Mac users: To get to the Managed folder you will need to right-click hollow_knight.app and click "Show Package Contents"
::To install::
Copy Assembly-CSharp-invulnerable to the installation folder.
::To enable the mod::
Close out of Hollow Knight. Open the installation folder. Rename Assembly-CSharp to Assembly-CSharp-original (or some other thing to distinguish it as the un-modded copy). Rename Assembly-CSharp-invulnerable to Assembly-Csharp.
::To disable the mod::
Close out of Hollow Knight. Open the installation folder. Rename Assembly-CSharp to Assembly-CSharp-invulnerable (or some other thing to distinguish it as the modded copy). Rename Assembly-CSharp-original to Assembly-CSharp.
NOTE
This is a small, lightweight change and I think you're unlikely to encounter problems or unexpected behavior. However, as with any mod, I recommend backing up your player data before use.
FOR MODDERS
To recreate the effects of this mod, edit HeroBox.CheckForDamage() and HeroBox.ApplyBufferedHit() and delete the lines that start with "this.heroCtrl.TakeDamage"