v0.7.0: adjusted droprates. Bombs down, runestones slightly up

This commit is contained in:
Evan Debenham 2018-08-12 16:36:03 -04:00
parent e49d387553
commit 30826c49f0
5 changed files with 13 additions and 18 deletions

View File

@ -23,6 +23,7 @@ package com.shatteredpixel.shatteredpixeldungeon.items.bombs;
import com.shatteredpixel.shatteredpixeldungeon.Assets;
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
import com.shatteredpixel.shatteredpixeldungeon.SPDSettings;
import com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon;
import com.shatteredpixel.shatteredpixeldungeon.actors.Actor;
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
@ -42,6 +43,7 @@ import com.shatteredpixel.shatteredpixeldungeon.items.scrolls.ScrollOfRage;
import com.shatteredpixel.shatteredpixeldungeon.items.scrolls.ScrollOfRecharging;
import com.shatteredpixel.shatteredpixeldungeon.items.scrolls.ScrollOfRemoveCurse;
import com.shatteredpixel.shatteredpixeldungeon.items.stones.Runestone;
import com.shatteredpixel.shatteredpixeldungeon.messages.Languages;
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
import com.shatteredpixel.shatteredpixeldungeon.plants.Plant;
import com.shatteredpixel.shatteredpixeldungeon.scenes.GameScene;
@ -187,12 +189,11 @@ public class Bomb extends Item {
@Override
public Item random() {
switch(Random.Int( 2 )){
switch(Random.Int( 4 )){
case 0:
return new DoubleBomb();
default:
return this;
case 1:
return new DoubleBomb();
}
}
@ -288,7 +289,7 @@ public class Bomb extends Item {
bomb.quantity(2);
if (bomb.doPickUp(hero)) {
//isaaaaac.... (don't bother doing this when not in english)
if (Messages.get(this, "name").equals("two bombs"))
if (SPDSettings.language() == Languages.ENGLISH)
hero.sprite.showStatus(CharSprite.NEUTRAL, "1+1 free!");
return true;
}

View File

@ -30,7 +30,6 @@ import com.shatteredpixel.shatteredpixeldungeon.levels.Level;
import com.shatteredpixel.shatteredpixeldungeon.levels.Terrain;
import com.shatteredpixel.shatteredpixeldungeon.levels.painters.Painter;
import com.watabou.utils.Point;
import com.watabou.utils.Random;
public class SecretHoneypotRoom extends SecretRoom {
@ -58,11 +57,7 @@ public class SecretHoneypotRoom extends SecretRoom {
placeItem(new Honeypot(), level);
placeItem( Random.Int(3) == 0 ? new Bomb.DoubleBomb() : new Bomb(), level);
if (Random.Int(2) == 0){
placeItem( new Bomb(), level);
}
placeItem( new Bomb().random(), level);
entrance().set(Door.Type.HIDDEN);
}

View File

@ -65,7 +65,7 @@ public class LaboratoryRoom extends SpecialRoom {
alchemy.seed( level, pot.x + level.width() * pot.y, chapter*10 + Random.IntRange(0, 20) );
level.blobs.put( Alchemy.class, alchemy );
int n = Random.NormalIntRange( 1, 3 );
int n = Random.NormalIntRange( 2, 3 );
for (int i=0; i < n; i++) {
int pos;
do {

View File

@ -42,7 +42,7 @@ public class RunestoneRoom extends SpecialRoom {
Painter.drawInside( level, this, entrance(), 2, Terrain.EMPTY_SP);
Painter.fill( level, this, 2, Terrain.EMPTY );
int n = Random.NormalIntRange(2, 3);
int n = Random.NormalIntRange(2, 4);
int dropPos;
for (int i = 0; i < n; i++) {
do {

View File

@ -230,16 +230,15 @@ public class ShopRoom extends SpecialRoom {
itemsToSpawn.add( new SmallRation() );
itemsToSpawn.add( new SmallRation() );
itemsToSpawn.add( new Bomb().random() );
switch (Random.Int(5)){
case 1:
switch (Random.Int(4)){
case 0:
itemsToSpawn.add( new Bomb() );
break;
case 1:
case 2:
itemsToSpawn.add( new Bomb().random() );
itemsToSpawn.add( new Bomb.DoubleBomb() );
break;
case 3:
case 4:
itemsToSpawn.add( new Honeypot() );
break;
}