You are viewing a potentially older version of this package. View all versions.
ryuka_labs-Weapon_XP_Multiplier-1.0.3 icon

Weapon XP Multiplier

Adds a configurable 0-100x weapon XP multiplier for SULFUR.

Date uploaded 2 weeks ago
Version 1.0.3
Download link ryuka_labs-Weapon_XP_Multiplier-1.0.3.zip
Downloads 504
Dependency string ryuka_labs-Weapon_XP_Multiplier-1.0.3

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2305 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2305

README

Weapon XP Multiplier

A BepInEx mod for SULFUR that lets you configure weapon level-up XP from 0x to 100x.

What This Mod Does

This mod adds a configurable multiplier for weapon XP.

Default value:

2.0x

Examples:

XpMultiplier = 0     -> no weapon XP
XpMultiplier = 0.01  -> 1% weapon XP
XpMultiplier = 0.2   -> 20% weapon XP
XpMultiplier = 1     -> vanilla weapon XP
XpMultiplier = 2     -> double weapon XP
XpMultiplier = 10.2  -> 10.2x weapon XP
XpMultiplier = 100   -> 100x weapon XP

What It Affects

This mod patches weapon XP gain through:

PerfectRandom.Sulfur.Core.Weapons.Weapon.AddExperience(float)

Weapons earn XP when you kill an enemy you damaged. The multiplier is applied to that amount after the game's own bonuses (for example Library Card or Lock of the Magus), so it stacks with them.

It affects non-melee, non-throwable weapons that normally gain weapon XP.

With a high multiplier a single kill can raise a weapon by several ranks at once. The game then shows one rank-up notice, but every rank (and its enchantment slot) is still granted.

What It Does NOT Affect

This mod does not change:

Player XP
Money
Loot
Enemy stats
Weapon damage
Weapon fire rate
Weapon durability
Melee weapon XP
Throwable weapon XP

Configuration

After launching the game once with the mod installed, a config file will be generated at:

BepInEx/config/kumo.sulfur.weapon_xp_multiplier.cfg

Default config:

[General]

EnableMod = true
XpMultiplier = 2

[Debug]

LogXpChanges = false

EnableMod

EnableMod = true

Set to false to disable the mod without uninstalling it.

XpMultiplier

XpMultiplier = 2

Weapon XP multiplier.

Allowed range:

0 to 100

Decimal values are supported.

Use a period for decimals:

XpMultiplier = 0.2
XpMultiplier = 10.2

Do not use a comma. The comma is read as a thousands separator, so this gives 2x, not 0.2x:

XpMultiplier = 0,2

Values outside 0 to 100 are clamped to the nearest limit.

LogXpChanges

LogXpChanges = false

Set this to true only for testing.

For normal gameplay, keep it set to false.

Installation

Thunderstore / r2modman

Install the mod through Thunderstore Mod Manager or r2modman.

Make sure the required BepInExPack dependency is installed.

Manual Installation

  1. Install BepInExPack for SULFUR.
  2. Start the game once so BepInEx creates its folders.
  3. Create the folder BepInEx/plugins/WeaponXpMultiplier/ and copy WeaponXpMultiplier.dll and the lang folder into it. The lang folder is only needed for translated SULFUR Config pages.
  4. Start the game.
  5. Edit the generated config file if you want a different multiplier.

Compatibility

Tested with SULFUR 1.0.6.

This mod should be compatible with most mods.

If another mod also changes weapon XP through Weapon.AddExperience, the final XP amount may depend on patch order.

Do not install this together with a fixed Weapon Double XP mod unless you intentionally want the multipliers to stack.

Uninstallation

Remove the folder:

BepInEx/plugins/WeaponXpMultiplier/

Optionally remove:

BepInEx/config/kumo.sulfur.weapon_xp_multiplier.cfg

SULFUR Config Localization Support

This mod includes localization files for SULFUR Config.

This localization support is only for the in-game configuration page provided by SULFUR Config. It localizes the mod name, config sections, setting names, and setting descriptions shown in the config UI.

It does not change the game’s own text, item names, dialogue, or gameplay content.

Supported SULFUR Config languages:

  • English
  • Simplified Chinese
  • Traditional Chinese
  • Swedish
  • French
  • Italian
  • German
  • Spanish
  • Portuguese
  • Russian
  • Polish
  • Japanese
  • Korean
  • Turkish
  • Arabic

CHANGELOG

Changelog

1.0.3

  • Added a Traditional Chinese (zh-TW) translation for the SULFUR Config settings page.
  • The plugin now reports its real version. 1.0.2 still called itself 1.0.0 in the BepInEx log and in config managers.
  • If a game update ever moves the code this mod patches, the log now says the mod is inactive.
  • The settings page description no longer shows an internal method name.
  • Readme fixes: manual install now includes the lang folder, and it explains that a comma in XpMultiplier is read as a thousands separator (0,2 gives 2x).
  • No gameplay changes. Checked on SULFUR 1.0.6.

1.0.2

  • Moved the localization files into a lang/ folder next to the plugin DLL (the layout preferred by SULFUR Native UI Lib). No gameplay changes.
  • Verified against SULFUR v0.18.4: Weapon.AddExperience(float) is unchanged, so the multiplier behaves exactly as before.

1.0.1

  • Added localization files for the SULFUR Config options page (14 languages). No gameplay changes.

1.0.0

  • Initial release: configurable 0-100x weapon XP multiplier patched onto Weapon.AddExperience(float).