She Will Punish Them
0 of 0

File information

Last updated

Original upload

Created by

aedenthorn

Uploaded by

aedenthorn

Virus scan

Safe to use

Tags for this mod

About this mod

Adds four new potions to the game and lets you create your own custom potions.

Requirements
Permissions and credits
Changelogs
Donations
This mod creates a simple framework for adding potions to the game and adds four new pre-made potions:

  • Stamina Potion: adds 50 stamina
  • Cure All Potion: adds 50 health, 50 mana, 50 stamina
  • Rage Potion: fills the rage bar
  • Proficiency Potion: adds 1 attribute point and 2 skill points

All potions drop as normal loot from enemies (chance depends on potion rarity), and may be sold by the Maid merchant.
Creating Potions

You can create your own potion type by following the format of the pre-made potions. A potion consists of four files in BepInEx\plugins\Potions:

  • <PotionName>.json - contains the potion data in JSON format (see below)
  • <PotionName>_icon.png - used as the potion's image in inventory
  • <PotionName>_3D.png - used to paint the in-game model (doesn't seem to work yet, WIP)
  • <PotionName>_E.png - used for emission on the in-game model (doesn't seem to work yet, WIP)



JSON Format
The json file contains the following keys:

  • "id": the name of the potion
  • "nameEN": not currently used by the game
  • "nameCN": not currently used by the game
  • "nameRU": not currently used by the game
  • "health": how much health the potion adds
  • "mana": how much mana the potion adds
  • "stamina": how much stamina the potion adds
  • "rage": how much rage the potion adds
  • "cost": the cost of the potion in gold
  • "rarity": the rarity of the potion
  • "skillPoints": how many skill points the potion adds
  • "attributePoints": how many attribute points the potion adds
  • "hotKey": an optional hotkey to use a potion of this type if it exists in the player's inventory


Config

A config file BepInEx/config/aedenthorn.Potions.cfg is created after running the game once with this mod.

You can adjust the config values by editing this file using a text editor or using the Configuration Manager mod.


Technical

This mod requires BepInEx to be installed for SWPT.  Detailed instructions on installing BepInEx are here.

If you are on Windows, you will need the x64 or x86 version based on your architecture, found here:

https://github.com/BepInEx/BepInEx/releases

Unpack the zip file, and place the contents in the game's root folder (beside the game's .exe file).

To install this mod, place the contents of its zip file in the BepInEx/plugins folder (create it if the folder doesn't exist).


Code is at https://github.com/aedenthorn/SWPTMods.

If you want to complain or ask for help or help me test my mods, you can visit my Discord server.