v0.6.5: balance changes to skeletons
This commit is contained in:
parent
602119070b
commit
7a089d73f9
|
@ -47,7 +47,7 @@ public class Skeleton extends Mob {
|
||||||
maxLvl = 10;
|
maxLvl = 10;
|
||||||
|
|
||||||
loot = Generator.Category.WEAPON;
|
loot = Generator.Category.WEAPON;
|
||||||
lootChance = 0.2f;
|
lootChance = 0.125f;
|
||||||
|
|
||||||
properties.add(Property.UNDEAD);
|
properties.add(Property.UNDEAD);
|
||||||
properties.add(Property.INORGANIC);
|
properties.add(Property.INORGANIC);
|
||||||
|
@ -69,7 +69,8 @@ public class Skeleton extends Mob {
|
||||||
for (int i = 0; i < PathFinder.NEIGHBOURS8.length; i++) {
|
for (int i = 0; i < PathFinder.NEIGHBOURS8.length; i++) {
|
||||||
Char ch = findChar( pos + PathFinder.NEIGHBOURS8[i] );
|
Char ch = findChar( pos + PathFinder.NEIGHBOURS8[i] );
|
||||||
if (ch != null && ch.isAlive()) {
|
if (ch != null && ch.isAlive()) {
|
||||||
int damage = Math.max( 0, damageRoll() - (ch.drRoll() / 2) );
|
int damage = Random.NormalIntRange(6, 12);
|
||||||
|
damage = Math.max( 0, damage - (ch.drRoll() + ch.drRoll()) );
|
||||||
ch.damage( damage, this );
|
ch.damage( damage, this );
|
||||||
if (ch == Dungeon.hero && !ch.isAlive()) {
|
if (ch == Dungeon.hero && !ch.isAlive()) {
|
||||||
heroKilled = true;
|
heroKilled = true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user