Pillars of Eternity
0 of 0

File information

Last updated

Original upload

Created by

redheadredemp

Uploaded by

redheadredemp

Virus scan

Safe to use

Tags for this mod

About this mod

Couldn't be simpler: press the plus key on the numpad and add 1000 currency to your inventory.

Permissions and credits
General Information:

  • This isn't the most advanced mod out there and it was mostly just an attempt at getting into Unity modding.
  • It's recommended that you make a backup of the original file in case things break horribly. They shouldn't since the code I added isn't especially intrusive and doesn't even modify any of the already existing code, but it never hurts to be on the safe side. Besides, the only way I know of to uninstall this mod is to replace the mod file with the original, so keep that in mind.
  • Because most mods for this game work through editing the Assembly-CSharp.dll file, which is the standard way of modding Unity games (at least older ones) without developer mod support, this mod is not compatible with other mods that edit the same file. You can always install this mod, beat the living crap out of that plus key, and then uninstall once you're content with your level of currency. Alternatively, you could try merging it yourself using a tool like dnSpy or similar. The code I used will be provided below.

Install Instructions:

  • Make a backup of your Assembly-CSharp.dll file in Pillars of Eternity/PillarsOfEternity_Data/Managed
  • Replace the old Assembly-CSharp.dll file in the folder mentioned above with the one contained within this mod
  • Open a save file and press the "plus" key on the numpad to add 1000 currency at a time

Uninstall Instructions:

  • Replace the Assembly-CSharp.dll file in Pillars of Eternity/PillarsOfEternity_Data/Managed with the backup that you definitely made when installing the mod
  • Alternatively, if you've misplaced your backup and you're using Steam, you can remove the Assembly-CSharp.dll file, go to steam, right-click the game and go to Local Files, and lastly click on "Verify intergrity of game files". Steam should detect that the file is missing and re-download it. If you're using another game platform, I'm sure this function exists, but I only use Steam so you'll have to figure that out on your own.

Source Code:


Added to the PlayerInventory Class:
New Method, mod_AddCurrency():

public void mod_AddCurrency()
{
if (GlobalAudioPlayer.Instance)
{
  GlobalAudioPlayer.Instance.Play(UIAudioList.UIAudioType.ReceiveGold);
}
this.currencyTotalValue.v += 1000f;
}

In the existing Update() method, right before this.base():

if (Input.GetKeyDown(KeyCode.KeypadPlus))
{
this.mod_AddCurrency();
}