v0.4.1: second rebalance pass on armor and enemy damage

This commit is contained in:
Evan Debenham 2016-07-19 04:33:53 -04:00 committed by Evan Debenham
parent 13f2d037d1
commit 9c992a9c07
20 changed files with 23 additions and 33 deletions

View File

@ -51,7 +51,7 @@ public class Bat extends Mob {
@Override @Override
public int damageRoll() { public int damageRoll() {
return Random.NormalIntRange( 8, 15 ); return Random.NormalIntRange( 5, 18 );
} }
@Override @Override

View File

@ -59,8 +59,8 @@ public class Brute extends Mob {
@Override @Override
public int damageRoll() { public int damageRoll() {
return enraged ? return enraged ?
Random.NormalIntRange( 20, 40 ) : Random.NormalIntRange( 15, 45 ) :
Random.NormalIntRange( 10, 20 ); Random.NormalIntRange( 6, 26 );
} }
@Override @Override

View File

@ -43,7 +43,7 @@ public class Crab extends Mob {
@Override @Override
public int damageRoll() { public int damageRoll() {
return Random.NormalIntRange( 3, 6 ); return Random.NormalIntRange( 1, 8 );
} }
@Override @Override

View File

@ -56,7 +56,7 @@ public class Elemental extends Mob {
@Override @Override
public int damageRoll() { public int damageRoll() {
return Random.NormalIntRange( 18, 24 ); return Random.NormalIntRange( 16, 26 );
} }
@Override @Override

View File

@ -42,7 +42,7 @@ public class Gnoll extends Mob {
@Override @Override
public int damageRoll() { public int damageRoll() {
return Random.NormalIntRange( 2, 5 ); return Random.NormalIntRange( 1, 6 );
} }
@Override @Override

View File

@ -70,8 +70,8 @@ public class Goo extends Mob {
@Override @Override
public int damageRoll() { public int damageRoll() {
int min = (HP*2 <= HT) ? 3 : 2; int min = 1;
int max = (HP*2 <= HT) ? 12 : 8; int max = (HP*2 <= HT) ? 15 : 10;
if (pumpedUp > 0) { if (pumpedUp > 0) {
pumpedUp = 0; pumpedUp = 0;
for (int i = 0; i < Level.NEIGHBOURS9DIST2.length; i++) { for (int i = 0; i < Level.NEIGHBOURS9DIST2.length; i++) {

View File

@ -60,7 +60,7 @@ public class Guard extends Mob {
@Override @Override
public int damageRoll() { public int damageRoll() {
return Random.NormalIntRange(5, 10); return Random.NormalIntRange(4, 12);
} }
@Override @Override

View File

@ -283,7 +283,7 @@ public class King extends Mob {
@Override @Override
public int damageRoll() { public int damageRoll() {
return Random.NormalIntRange( 16, 20 ); return Random.NormalIntRange( 15, 25 );
} }
@Override @Override

View File

@ -56,7 +56,7 @@ public class Monk extends Mob {
@Override @Override
public int damageRoll() { public int damageRoll() {
return Random.NormalIntRange( 16, 20 ); return Random.NormalIntRange( 12, 25 );
} }
@Override @Override

View File

@ -26,7 +26,6 @@ import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Chill;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Frost; import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Frost;
import com.shatteredpixel.shatteredpixeldungeon.items.quest.Embers; import com.shatteredpixel.shatteredpixeldungeon.items.quest.Embers;
import com.shatteredpixel.shatteredpixeldungeon.sprites.NewbornElementalSprite; import com.shatteredpixel.shatteredpixeldungeon.sprites.NewbornElementalSprite;
import com.watabou.utils.Random;
public class NewbornElemental extends Elemental { public class NewbornElemental extends Elemental {
@ -43,11 +42,6 @@ public class NewbornElemental extends Elemental {
properties.add(Property.MINIBOSS); properties.add(Property.MINIBOSS);
} }
@Override
public int damageRoll() {
return Random.NormalIntRange(10, 15);
}
@Override @Override
public void add(Buff buff) { public void add(Buff buff) {
if (buff instanceof Frost || buff instanceof Chill) { if (buff instanceof Frost || buff instanceof Chill) {

View File

@ -86,7 +86,7 @@ public class RotLasher extends Mob {
@Override @Override
public int damageRoll() { public int damageRoll() {
return Random.NormalIntRange(6, 12); return Random.NormalIntRange(8, 15);
} }
@Override @Override

View File

@ -56,7 +56,7 @@ public class Shaman extends Mob implements Callback {
@Override @Override
public int damageRoll() { public int damageRoll() {
return Random.NormalIntRange( 4, 6 ); return Random.NormalIntRange( 2, 8 );
} }
@Override @Override
@ -91,7 +91,7 @@ public class Shaman extends Mob implements Callback {
spend( TIME_TO_ZAP ); spend( TIME_TO_ZAP );
if (hit( this, enemy, true )) { if (hit( this, enemy, true )) {
int dmg = (int)(damageRoll()*1.5f); int dmg = Random.NormalIntRange(3, 10);
if (Level.water[enemy.pos] && !enemy.flying) { if (Level.water[enemy.pos] && !enemy.flying) {
dmg *= 1.5f; dmg *= 1.5f;
} }

View File

@ -57,7 +57,7 @@ public class Skeleton extends Mob {
@Override @Override
public int damageRoll() { public int damageRoll() {
return Random.NormalIntRange( 3, 8 ); return Random.NormalIntRange( 2, 10 );
} }
@Override @Override

View File

@ -53,7 +53,7 @@ public class Spinner extends Mob {
@Override @Override
public int damageRoll() { public int damageRoll() {
return Random.NormalIntRange(14, 18); return Random.NormalIntRange(10, 25);
} }
@Override @Override

View File

@ -78,7 +78,7 @@ public class Swarm extends Mob {
@Override @Override
public int damageRoll() { public int damageRoll() {
return Random.NormalIntRange( 1, 3 ); return Random.NormalIntRange( 1, 4 );
} }
@Override @Override

View File

@ -76,7 +76,7 @@ public class Tengu extends Mob {
@Override @Override
public int damageRoll() { public int damageRoll() {
return Random.NormalIntRange( 10, 16 ); return Random.NormalIntRange( 6, 20 );
} }
@Override @Override

View File

@ -82,7 +82,7 @@ public class Thief extends Mob {
@Override @Override
public int damageRoll() { public int damageRoll() {
return Random.NormalIntRange( 1, 8 ); return Random.NormalIntRange( 1, 10 );
} }
@Override @Override

View File

@ -60,7 +60,7 @@ public class Warlock extends Mob implements Callback {
@Override @Override
public int damageRoll() { public int damageRoll() {
return Random.NormalIntRange( 14, 24 ); return Random.NormalIntRange( 16, 22 );
} }
@Override @Override

View File

@ -230,7 +230,7 @@ public class Yog extends Mob {
@Override @Override
public int damageRoll() { public int damageRoll() {
return Random.NormalIntRange( 30, 40 ); return Random.NormalIntRange( 20, 50 );
} }
@Override @Override
@ -426,7 +426,7 @@ public class Yog extends Mob {
@Override @Override
public int damageRoll() { public int damageRoll() {
return Random.NormalIntRange( 24, 28 ); return Random.NormalIntRange( 22, 30 );
} }
@Override @Override

View File

@ -230,11 +230,7 @@ public class Armor extends EquipableItem {
} }
public int DRMin(int lvl){ public int DRMin(int lvl){
int effectiveTier = tier; return lvl;
if (glyph != null) effectiveTier += glyph.tierDRAdjust();
effectiveTier = Math.max(0, effectiveTier);
return (effectiveTier-1)/2 + lvl;
} }
@Override @Override