v0.7.5: slight balance adjustments:

- Slime damage to 3-5 from 4-5
- Goo damage reduced by ~20%
- Guards no longer drop health potions, exp to 7 from 6
This commit is contained in:
Evan Debenham 2019-09-17 18:36:51 -04:00
parent 6af4ffeaf7
commit d8dfdbda4e
3 changed files with 12 additions and 26 deletions

View File

@ -68,7 +68,7 @@ public class Goo extends Mob {
@Override @Override
public int damageRoll() { public int damageRoll() {
int min = 1; int min = 1;
int max = (HP*2 <= HT) ? 15 : 10; int max = (HP*2 <= HT) ? 12 : 8;
if (pumpedUp > 0) { if (pumpedUp > 0) {
pumpedUp = 0; pumpedUp = 0;
PathFinder.buildDistanceMap( pos, BArray.not( Dungeon.level.solid, null ), 2 ); PathFinder.buildDistanceMap( pos, BArray.not( Dungeon.level.solid, null ), 2 );

View File

@ -50,11 +50,11 @@ public class Guard extends Mob {
HP = HT = 40; HP = HT = 40;
defenseSkill = 10; defenseSkill = 10;
EXP = 6; EXP = 7;
maxLvl = 14; maxLvl = 14;
loot = null; //see createloot. loot = Generator.Category.ARMOR;
lootChance = 0.25f; lootChance = 0.1667f;
properties.add(Property.UNDEAD); properties.add(Property.UNDEAD);
@ -126,8 +126,6 @@ public class Guard extends Mob {
@Override @Override
protected Item createLoot() { protected Item createLoot() {
//first see if we drop armor, overall chance is 1/8
if (Random.Int(2) == 0){
Armor loot; Armor loot;
do{ do{
loot = Generator.randomArmor(); loot = Generator.randomArmor();
@ -135,16 +133,6 @@ public class Guard extends Mob {
} while (loot.tier >= 4 && Random.Int(2) == 0); } while (loot.tier >= 4 && Random.Int(2) == 0);
loot.level(0); loot.level(0);
return loot; return loot;
//otherwise, we may drop a health potion. overall chance is 1/8 * (6-potions dropped)/6
//with 0 potions dropped that simplifies to 1/8
} else {
if (Random.Float() < ((6f - Dungeon.LimitedDrops.GUARD_HP.count) / 6f)){
Dungeon.LimitedDrops.GUARD_HP.count++;
return new PotionOfHealing();
}
}
return null;
} }
private final String CHAINSUSED = "chainsused"; private final String CHAINSUSED = "chainsused";

View File

@ -21,10 +21,8 @@
package com.shatteredpixel.shatteredpixeldungeon.actors.mobs; package com.shatteredpixel.shatteredpixeldungeon.actors.mobs;
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
import com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon; import com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon;
import com.shatteredpixel.shatteredpixeldungeon.actors.Char; import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
import com.shatteredpixel.shatteredpixeldungeon.effects.Speck;
import com.shatteredpixel.shatteredpixeldungeon.items.Generator; import com.shatteredpixel.shatteredpixeldungeon.items.Generator;
import com.shatteredpixel.shatteredpixeldungeon.items.Item; import com.shatteredpixel.shatteredpixeldungeon.items.Item;
import com.shatteredpixel.shatteredpixeldungeon.items.weapon.melee.MeleeWeapon; import com.shatteredpixel.shatteredpixeldungeon.items.weapon.melee.MeleeWeapon;
@ -47,7 +45,7 @@ public class Slime extends Mob {
@Override @Override
public int damageRoll() { public int damageRoll() {
return Random.NormalIntRange( 4, 5 ); return Random.NormalIntRange( 3, 5 );
} }
@Override @Override