
You are viewing a potentially older version of this package. View Latest Version
WackyDBSecondaryAttacks
Optional WackyDB companion that gives secondary attacks independent damage through item YAML.WackyDB SecondaryAttacks
Optional BepInEx companion for WackysDatabase 2.6.14+. It gives secondary attacks independent damage using WackyDB item YAML. WackyDB alone does not install these combat patches.
Install and configure
Install on Clients and Server.
name: SwordIron
Secondary_Attack:
Damage:
Slash: 90
Pierce: 20
Damage_Per_Level:
Slash: 6
- Supported only inside
Secondary_Attack; primary damage stays in the item's top-level blocks. - Each provided block replaces that entire base/per-level block. Omitted damage types in a provided block become zero, including per-level damage if you supply an empty block.
- Each omitted block independently falls back to the weapon's normal shared damage. Omit both for existing behavior.
- Quality and world-level scaling remain native, as do
DmgMultiplier, chain bonuses, skill scaling, status effects, and other downstream attack modifiers. - Handles melee, area hits, and projectile bursts. Ammunition damage is not replaced.
- The tooltip appends secondary base damage using the native damage tooltip formatting, followed by the secondary damage multiplier (for example,
3x). That multiplier applies to the listed base damage: Slash 90 withDmgMultiplier: 3becomes Slash 270 before other combat modifiers. Chain bonuses, ammunition and other modifiers are not included in this example; it is not a prediction of final damage dealt. - The secondary multiplier is shown in blue. When it is greater than
1x, multiplied damage appears in blue immediately after the original yellow range on each damage line, followed by its skill-based range in yellow. This preview includes the secondary multiplier, but not other combat modifiers. Multipliers of1xor less do not add multiplied values. - Secondary tooltips also show
ChopandPickaxe, which Valheim's normal weapon tooltip omits. These damage types retain normal target resistance and tool-tier rules; a missing native tooltip row does not mean the damage was not loaded. - WackyDB synchronizes and exports the optional fields normally. Removing the blocks, or deleting an item's YAML, clears its override on the next full reload. YAML changes need a WackyDB reload and a fresh hover over the item;
Implementation and compatibility
The main mod only stores YAML metadata. This companion tracks cloned attack definitions, redirects weapon damage reads, and scopes overrides around the original ItemData.GetDamage pipeline. Normal GetDamage patches from other mods can still run.