Skip to content
Permalink
Browse files

Fixed negative might bug.

  • Loading branch information...
BlackVegetable committed Apr 27, 2013
1 parent 7becbf5 commit 10966eb644aaeb92ee80e11e9b29ef31f6580169
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/combat.py
@@ -733,7 +733,7 @@ def weaponAttack(source, target, hitType, forceMod=1, criticalDamageMod=1, armor
effectiveForce = (weapon.force + source.statusForce) * forceMod
if source.usingWeapon("Ranged"):
effectiveForce *= 1 + (float(source.totalRangedForce) / 100)
effectiveMight = round(Dice.rollFloat(0.50, 1.0) * (source.totalMight + mightMod) * (float(effectiveForce) / 100))
effectiveMight = max(0, round(Dice.rollFloat(0.50, 1.0) * (source.totalMight + mightMod) * (float(effectiveForce) / 100)))
effectiveDR = min(80, max(0, target.totalDR - (armorPenetrationMod + source.totalArmorPenetration)))
outgoingDamage = ((Dice.roll(weapon.damageMin + weapon.damageMinBonus,
weapon.damageMax + weapon.damageMaxBonus) +

0 comments on commit 10966eb

Please sign in to comment.
You can’t perform that action at this time.