Skip to content

Add Infinite Ammo Toggle in Ammo Settings - #109

Open
freakycheesy wants to merge 3 commits into
yowchap:mainfrom
freakycheesy:infinite-ammo
Open

Add Infinite Ammo Toggle in Ammo Settings#109
freakycheesy wants to merge 3 commits into
yowchap:mainfrom
freakycheesy:infinite-ammo

Conversation

@freakycheesy

Copy link
Copy Markdown
  • Added Infinite Ammo Toggle in Ammo Settings
  • Added Preferences.Save Function
  • Added infiniteAmmo ModPref in Preferences class

Thought it would be a good idea to have infinite ammo in BoneLib by default instead of requiring a separate infinite ammo code mod, especially because of the existence of ammo settings in BoneLib

@freakycheesy
freakycheesy marked this pull request as draft May 31, 2026 20:24
@freakycheesy
freakycheesy marked this pull request as ready for review May 31, 2026 20:24
Comment thread BoneLib/BoneLib/Main.cs
{
if (Preferences.infiniteAmmo.entry.Value)
{
AmmoInventory.Instance.AddCartridge(cartridge, count);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the case that you have 0 ammo, wouldn't this just do nothing?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

noted the issue, scripted a method that detects if there is no ammo in the inventory to add ammo on startup and on enabled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants