v0.4.1: buffed the base effectiveness of the lucky enchant

This commit is contained in:
Evan Debenham 2016-07-05 17:00:31 -04:00 committed by Evan Debenham
parent 4066a4b4f4
commit 935a4593b8

View File

@ -35,7 +35,7 @@ public class Lucky extends Weapon.Enchantment {
public int proc( Weapon weapon, Char attacker, Char defender, int damage ) { public int proc( Weapon weapon, Char attacker, Char defender, int damage ) {
int level = Math.max( 0, weapon.level() ); int level = Math.max( 0, weapon.level() );
if (Random.Int(100) < (50 + level)){ if (Random.Int(100) < (55 + level)){
int exStr = 0; int exStr = 0;
if (attacker == Dungeon.hero) exStr = Math.max(0, Dungeon.hero.STR() - weapon.STRReq()); if (attacker == Dungeon.hero) exStr = Math.max(0, Dungeon.hero.STR() - weapon.STRReq());
damage = weapon.imbue.damageFactor(weapon.max()) + exStr - defender.drRoll(); damage = weapon.imbue.damageFactor(weapon.max()) + exStr - defender.drRoll();