Valheim

Details

Last Updated
5 days ago
First Uploaded
5 days ago
Downloads
2.3K
Likes
2
Size
96KB
Dependency string
RustyMods-DualWielder-1.0.2
Dependants

DualWielder

DualWielder is a dual wield system that allows players to equip and use two different one-handed weapons simultaneously (e.g., Sword + Axe).


Features

  • Custom attach point for the left-hand weapon when holstered (only if dual wielding).
  • Option to merge left-hand damage into right-hand attacks (configurable).
  • Option to apply a damage modifier to the total damage after combining (configurable).
  • Dual Wield skill (DualWielder), which increases damage when dual wielding.

Notes

  • If left-hand damage is disabled (Off), then:
    • The damage modifier will not be applied.
    • The Dual Wield skill will not contribute to damage.
  • These configs let you balance dual wielding by tuning how much extra damage is gained.
  • Stamina use is modified calculating right + left x 0.75
  • Eitr use is modified calculating right + left x 0.75

Damage Calculation

  1. Left-hand weapon damage is added to the right-hand weapon damage.
  2. The total is then scaled by the damage modifier.
  3. Finally, the Dual Wield skill is applied as a multiplier.

Formula:

  • Modifier = damage scaling factor (0.0 – 1.0).
  • SkillFactor = Dual Wield skill percentage (0.0 – 1.0).

Example (Skill 50)

  • Combine Weapon Damages: On
  • Damage Modifier: 0.5 (50%)
  • Dual Wield Skill: 50 (≈ 50% = 0.5 SkillFactor)

Calculation:

  1. Base damage = Right + Left
  2. Apply modifier = (Right + Left) * 0.5
  3. Apply skill = (Right + Left) * 0.5 * (1 + 0.5 * (1 - 0.5))
    • = (Right + Left) * 0.5 * (1 + 0.25)
    • = (Right + Left) * 0.5 * 1.25
    • = (Right + Left) * 0.625

Result: At skill 50, you deal 62.5% of the combined damage.

Example (Skill 100)

  • Combine Weapon Damages: On
  • Damage Modifier: 0.5 (50%)
  • Dual Wield Skill: 100 (≈ 1.0 SkillFactor)

Calculation:

  1. Base damage = Right + Left
  2. Apply modifier = (Right + Left) * 0.5
  3. Apply skill = (Right + Left) * 0.5 * (1 + 1.0 * (1 - 0.5))
    • = (Right + Left) * 0.5 * (1 + 0.5)
    • = (Right + Left) * 0.5 * 1.5
    • = (Right + Left) * 0.75

Result: At skill 100 with DamageModifier 0.5, you deal 75% of the combined weapon damage.

Thunderstore development is made possible with ads. Please consider making an exception to your adblock.
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.