v0.4.1: buffed the base effectiveness of the lucky enchant
This commit is contained in:
parent
4066a4b4f4
commit
935a4593b8
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user