Longer Buffs

Timed buffs on your character last longer (x2 by default, up to x5 or Infinite), with opt-in extras. A PBZModLoader mod, live settings.

  • MIT · open source
  • 0 stars
  • Latest release v1.0
  • Updated 4 days ago
  • Gameplay
Description

Longer Buffs

Timed buffs on your character last longer (x2 by default, up to x5 or Infinite), with opt-in extras. A PBZModLoader mod, live settings.

What it does

Timed buffs on your character last longer: x2 as installed, 1 to 5 or Infinite, set live.

Buffs Game Mod (default)
Medicine, food and pill heals over time and regen stock x2
Charm, accessory and talent buffs stock x2
Weapon and skill self-buffs stock x2 (or their own multiplier)
Frost and shock resistance after being frozen or shocked stock x2

Optional, all off as installed:

  • Longer Tipsy and Drunk (Fanatic's sword), Phantom Soul (Infernal Rouge), Fiend Form (Fiend Saws) and summoned allies.
  • Keep medicine buffs and the Calming Gourd's effect through a Bell rest; keep Phantom Soul through Phantom Blade; keep weapon buffs and Phantom Soul when you sheathe out of combat.
  • Medicine Case: some seconds of super armour after the drink.
  • Hide the visual effect of the lengthened buffs.

What stays as in the game: debuffs on you, cooldowns, locks, instant and infinite effects, and all enemies. A buff that already runs keeps its length; the next one gets the new length. Each value is the game's value x the multiplier, so nothing adds up, and 1 is the game's value.

It is a PBZModLoader mod: a script in the game's own script engine. It replaces no game file and writes nothing into the save.

Screenshots

Longer Buffs

How to install

  1. Install PBZModLoader 2.1.0 or later.
  2. Download the zip of the latest release on GitHub (phantombladezero_longerbuffs_<version>.zip).
  3. Unpack it into the game folder (the folder that holds ProjectPBZ). It adds the folder ProjectPBZ\PBZModLoader\mods\phantombladezero_longerbuffs\ with main.js and the settings file.
  4. Start the game.

To check that it runs: ProjectPBZ\PBZModLoader\loader.log has the line [PBZMOD] [Longer Buffs] <version> started; settings: ....

To update the mod, replace main.js with the one of the new release; keep your settings file (a setting that it does not have keeps its default). To remove the mod, delete the folder ProjectPBZ\PBZModLoader\mods\phantombladezero_longerbuffs\.

How to use

Nothing to do: the mod works as soon as you load a game. Each buff gets its new length the next time it starts.

Settings

The settings are in ProjectPBZ\PBZModLoader\mods\phantombladezero_longerbuffs\phantombladezero_longerbuffs.txt. Open it with a text editor, change a value and save: the mod reads the file every 2 seconds, so the game uses it without a restart. Without the file the mod uses the defaults below. Keys are not case-sensitive; ; or # starts a comment.

With Mods Menu (0.9.0 or later) in the game, the mod adds its page to Mods Menu's tab in the game's settings, and the page's settings are the ones that count: Mods Menu keeps them in its own file in the game's Saved folder, and the file in the mod's folder is not read then.

Setting Default What it does
Multiplier 2 How much longer timed buffs and heals over time last: 1 to 5, or Infinite (most then last 12 hours or more; eleven that stack or protect you run at x5)
WeaponBuffs Same Weapon and skill buffs on their own: Same (as Multiplier), 1 to 5 or Infinite
LiftProtectiveCap Off On: at Infinite, Phantom Brew's invincibility, the Miraculous Scabbard's super armour and the Iron weapon's bleed buff also last hours (Off: x5)
KeepMedicine Off On: medicine buffs and heals over time keep running through a Bell rest, the weapon pickup screen and some interactions. They still end when you die
KeepCalmingGourd Off On: the same for the Calming Gourd's effect after a drink. Turn it on, then load a save
MedicineCaseEndure 0 0 (off) to 5: seconds the upgraded Medicine Case's super armour lasts after the drink
DrunkenSword 1 Tipsy and Drunk of the Fanatic's Broken Blade and Drunken Sword: 1 to 5 or Infinite. Their drawbacks last as long
Drunk Same Drunk alone: Same (as DrunkenSword) or its own value. While Drunk the game dodges most hits for you
PhantomSoul 1 Infernal Rouge's Phantom Soul: 1 to 5 or Infinite. Its drawbacks last as long
FiendForm 1 The Fiend Saws' Fiend Form: 1 to 5 or Infinite. Its drawbacks last as long
Summons 1 Allies from summon Phantom Edges: 1 to 5 or Infinite (they still leave when the fight ends, at a Bell rest, on death and in cutscenes)
KeepPhantomSoul Off On: Phantom Blade no longer ends Phantom Soul. Turn it on, then load a save
KeepPhantomSoulSheathed Off On: putting the weapon away out of combat no longer cuts Phantom Soul short
KeepWeaponBuffsSheathed Off On: putting the weapon away out of combat no longer cuts weapon buffs down to about 3 seconds
HideBuffVisuals Off On: the lengthened buffs show no visual effect on your character. The buffs and their HUD icons work as before

Compatibility

  • Game version: Steam build 26367565 (CL-302256_JKS-17280).
  • Needs PBZModLoader 2.1.0 or later. Mods Menu is optional.
  • Phantom Tuner changes break and knockdown times, not buff lengths: both run together without a clash.
  • The earlier "Longer Buff Duration" for Mods Menu (PBZBuffDuration): remove it first. With both, the one that starts first keeps the buffs, and the other leaves them alone.
  • Another mod that changes the same buff lengths: this mod leaves a buff alone when it finds a value that is not the game's and not its own.

Known issues

  • A buff that runs while you change a setting, or reload or remove the mod (Alt+F5), keeps its length until it ends. The next one is as set.
  • HideBuffVisuals: a buff that runs at that moment keeps its hidden look. If you remove the mod while it runs, that buff stays without its visual until you restart the game.

How to build

There is nothing to build: src\phantombladezero_longerbuffs\ is the mod folder (main.js and the settings file). tests\test_mod.js runs the script outside the game with Node.js and stand-ins for the game: node tests\test_mod.js. README.md has the details.

Credits

Made by Kintaro. MIT license: you may use, change and share this mod. PBZModLoader is made by LKF, its fork by KintaroModding. Phantom Blade Zero and its files belong to their makers.