v0.4.0: balance changes re: equipment and prison
This commit is contained in:
parent
6a3de8c7ab
commit
13bb64468e
|
@ -45,7 +45,7 @@ public class Guard extends Mob {
|
|||
{
|
||||
spriteClass = GuardSprite.class;
|
||||
|
||||
HP = HT = 30;
|
||||
HP = HT = 40;
|
||||
defenseSkill = 10;
|
||||
|
||||
EXP = 6;
|
||||
|
@ -131,7 +131,7 @@ public class Guard extends Mob {
|
|||
|
||||
@Override
|
||||
public int dr() {
|
||||
return 7;
|
||||
return 9;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -76,7 +76,7 @@ public class Tengu extends Mob {
|
|||
|
||||
@Override
|
||||
public int damageRoll() {
|
||||
return Random.NormalIntRange( 6, 15 );
|
||||
return Random.NormalIntRange( 8, 15 );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -24,6 +24,7 @@ import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
|||
import com.shatteredpixel.shatteredpixeldungeon.items.Generator;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.Heap.Type;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.Item;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.armor.Armor;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.keys.IronKey;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.levels.Level;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.levels.Room;
|
||||
|
@ -69,12 +70,16 @@ public class CryptPainter extends Painter {
|
|||
|
||||
private static Item prize( Level level ) {
|
||||
|
||||
Item prize = Generator.random( Generator.Category.ARMOR );
|
||||
//1 floor set higher than normal
|
||||
Armor prize = Generator.randomArmor( (Dungeon.depth / 5) + 1);
|
||||
|
||||
for (int i=0; i < 3; i++) {
|
||||
Item another = Generator.random( Generator.Category.ARMOR );
|
||||
if (another.level() > prize.level()) {
|
||||
prize = another;
|
||||
//if it isn't already cursed, give it a free upgrade
|
||||
if (!prize.cursed){
|
||||
prize.upgrade();
|
||||
//curse the armor, unless it has a glyph
|
||||
if (prize.glyph != null){
|
||||
prize.cursed = prize.cursedKnown = true;
|
||||
prize.inscribe(Armor.Glyph.randomCurse());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
*/
|
||||
package com.shatteredpixel.shatteredpixeldungeon.levels.painters;
|
||||
|
||||
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.Piranha;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.Generator;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.Heap;
|
||||
|
@ -86,25 +87,22 @@ public class PoolPainter extends Painter {
|
|||
|
||||
Item prize;
|
||||
|
||||
if (Random.Int(3) != 0){
|
||||
if (Random.Int(3) == 0){
|
||||
prize = level.findPrizeItem();
|
||||
if (prize != null)
|
||||
return prize;
|
||||
}
|
||||
|
||||
prize = Generator.random( Random.oneOf(
|
||||
Generator.Category.WEAPON,
|
||||
Generator.Category.ARMOR
|
||||
) );
|
||||
|
||||
for (int i=0; i < 4; i++) {
|
||||
Item another = Generator.random( Random.oneOf(
|
||||
Generator.Category.WEAPON,
|
||||
Generator.Category.ARMOR
|
||||
) );
|
||||
if (another.level() > prize.level()) {
|
||||
prize = another;
|
||||
//1 floor set higher in probability
|
||||
if (Random.Int(2) == 0){
|
||||
prize = Generator.randomWeapon((Dungeon.depth / 5)+1);
|
||||
} else {
|
||||
prize = Generator.randomArmor((Dungeon.depth / 5)+1);
|
||||
}
|
||||
|
||||
//if not cursed, 50% chance for an extra update.
|
||||
if (!prize.cursed && Random.Int(0) == 1){
|
||||
prize.upgrade();
|
||||
}
|
||||
|
||||
return prize;
|
||||
|
|
Loading…
Reference in New Issue
Block a user