Date uploaded | 9 months ago |
Version | 1.0.5 |
Download link | eXish-Batteries-1.0.5.zip |
Downloads | 118003 |
Dependency string | eXish-Batteries-1.0.5 |
This mod requires the following mods to function
BepInEx-BepInExPack
BepInEx pack for Mono Unity games. Preconfigured and ready to use.
Preferred version: 5.4.2100README
Batteries
A mod that adds battery items to the game that can be found on any moon. Batteries can be used on any battery powered item to recharge it at the cost of consuming the battery. Simply hold the item you wish to recharge in your hand and press the use battery keybind (C). If you wish, you can also sell batteries as scrap.
Certain properties can be modified using the configuration file such as how much batteries recharge items or how much batteries are worth. By default batteries are fairly common and will only recharge items by 25%. You can also configure gameplay elements like whether batteries spawn naturally, are purchasable, or disabling the charging coil entirely.
To install the mod manually (outside Thunderstore) put the "batteries" and "Batteries.dll" file inside a folder called Batteries (or whatever you want to name it) under the BepInEx/plugins directory.
A big thanks to TrevTastic for providing the model and texture.
CHANGELOG
Batteries [1.1.0]
- Batteries now spawn outside of the scrap pool and work just like keys
- Added config value batteryMaxSpawns which determines the maximum number of batteries that can spawn per moon
- The spawning system currently generates a random number from 1-150 batteryMaxSpawns times and if batteryRarity is greater or equal it spawns
- Feel free to let me know if this should be tweaked or given more configurability on Discord
- Revamped the entire use battery system to support controller and VR thanks to DaXcess
- Removed the useBatteyKeybind config value
- Added the useBatteryKeybinds config value which is a string instead of an integer - Note that any custom keybind you had set before must be manually transferred to the new config value
- Fixed batteries purchased from the shop having a scrap value
- Fixed a bug where you could not turn on an empty flashlight after using a battery on it
Batteries [1.0.5]
- Natural spawning of batteries can now be disabled by setting the batteryRarity config value to 0
- Batteries can now be configured to appear in the shop with a price as defined by the batteryShopValue config value
- The charging coil can now be disabled using the disableChargingCoil config value to make batteries the only charge source
Batteries [1.0.4]
- Fixed batteries not saving, despawning, selling for any value, and other shenanigans due to not being marked as scrap
- I originally wanted for batteries to be like keys, but making it function as a full scrap seems to fix several issues
- Feel free to let me know on Discord if you think it should be like a key or full scrap, I would like it to function however the community sees fit
- Fixed the use battery tool tip not being added/removed properly with multiple players
Batteries [1.0.3]
- Made the use battery sound effect Mono instead of Stereo
- Changed audio mixing system to use LethalLib's mixing fix method
- Fixed battery sounds being global to all players with no 3D dropoff
Batteries [1.0.2]
- Changed the audio source of the use battery sound to the audio source of the item you are holding
Batteries [1.0.1]
- Fixed the mod not checking for empty item slots on a battery use
- Fixed being able to use a battery while using the charging station
Batteries [1.0.0]
- Initial release