v0.7.0: adjusted droprates. Bombs down, runestones slightly up
This commit is contained in:
parent
e49d387553
commit
30826c49f0
|
@ -23,6 +23,7 @@ package com.shatteredpixel.shatteredpixeldungeon.items.bombs;
|
||||||
|
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.Assets;
|
import com.shatteredpixel.shatteredpixeldungeon.Assets;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
||||||
|
import com.shatteredpixel.shatteredpixeldungeon.SPDSettings;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon;
|
import com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.Actor;
|
import com.shatteredpixel.shatteredpixeldungeon.actors.Actor;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
|
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.ScrollOfRecharging;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.items.scrolls.ScrollOfRemoveCurse;
|
import com.shatteredpixel.shatteredpixeldungeon.items.scrolls.ScrollOfRemoveCurse;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.items.stones.Runestone;
|
import com.shatteredpixel.shatteredpixeldungeon.items.stones.Runestone;
|
||||||
|
import com.shatteredpixel.shatteredpixeldungeon.messages.Languages;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
|
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.plants.Plant;
|
import com.shatteredpixel.shatteredpixeldungeon.plants.Plant;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.scenes.GameScene;
|
import com.shatteredpixel.shatteredpixeldungeon.scenes.GameScene;
|
||||||
|
@ -187,12 +189,11 @@ public class Bomb extends Item {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Item random() {
|
public Item random() {
|
||||||
switch(Random.Int( 2 )){
|
switch(Random.Int( 4 )){
|
||||||
case 0:
|
case 0:
|
||||||
|
return new DoubleBomb();
|
||||||
default:
|
default:
|
||||||
return this;
|
return this;
|
||||||
case 1:
|
|
||||||
return new DoubleBomb();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -288,7 +289,7 @@ public class Bomb extends Item {
|
||||||
bomb.quantity(2);
|
bomb.quantity(2);
|
||||||
if (bomb.doPickUp(hero)) {
|
if (bomb.doPickUp(hero)) {
|
||||||
//isaaaaac.... (don't bother doing this when not in english)
|
//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!");
|
hero.sprite.showStatus(CharSprite.NEUTRAL, "1+1 free!");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,6 @@ import com.shatteredpixel.shatteredpixeldungeon.levels.Level;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.levels.Terrain;
|
import com.shatteredpixel.shatteredpixeldungeon.levels.Terrain;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.levels.painters.Painter;
|
import com.shatteredpixel.shatteredpixeldungeon.levels.painters.Painter;
|
||||||
import com.watabou.utils.Point;
|
import com.watabou.utils.Point;
|
||||||
import com.watabou.utils.Random;
|
|
||||||
|
|
||||||
public class SecretHoneypotRoom extends SecretRoom {
|
public class SecretHoneypotRoom extends SecretRoom {
|
||||||
|
|
||||||
|
@ -58,11 +57,7 @@ public class SecretHoneypotRoom extends SecretRoom {
|
||||||
|
|
||||||
placeItem(new Honeypot(), level);
|
placeItem(new Honeypot(), level);
|
||||||
|
|
||||||
placeItem( Random.Int(3) == 0 ? new Bomb.DoubleBomb() : new Bomb(), level);
|
placeItem( new Bomb().random(), level);
|
||||||
|
|
||||||
if (Random.Int(2) == 0){
|
|
||||||
placeItem( new Bomb(), level);
|
|
||||||
}
|
|
||||||
|
|
||||||
entrance().set(Door.Type.HIDDEN);
|
entrance().set(Door.Type.HIDDEN);
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,7 +65,7 @@ public class LaboratoryRoom extends SpecialRoom {
|
||||||
alchemy.seed( level, pot.x + level.width() * pot.y, chapter*10 + Random.IntRange(0, 20) );
|
alchemy.seed( level, pot.x + level.width() * pot.y, chapter*10 + Random.IntRange(0, 20) );
|
||||||
level.blobs.put( Alchemy.class, alchemy );
|
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++) {
|
for (int i=0; i < n; i++) {
|
||||||
int pos;
|
int pos;
|
||||||
do {
|
do {
|
||||||
|
|
|
@ -42,7 +42,7 @@ public class RunestoneRoom extends SpecialRoom {
|
||||||
Painter.drawInside( level, this, entrance(), 2, Terrain.EMPTY_SP);
|
Painter.drawInside( level, this, entrance(), 2, Terrain.EMPTY_SP);
|
||||||
Painter.fill( level, this, 2, Terrain.EMPTY );
|
Painter.fill( level, this, 2, Terrain.EMPTY );
|
||||||
|
|
||||||
int n = Random.NormalIntRange(2, 3);
|
int n = Random.NormalIntRange(2, 4);
|
||||||
int dropPos;
|
int dropPos;
|
||||||
for (int i = 0; i < n; i++) {
|
for (int i = 0; i < n; i++) {
|
||||||
do {
|
do {
|
||||||
|
|
|
@ -229,17 +229,16 @@ public class ShopRoom extends SpecialRoom {
|
||||||
|
|
||||||
itemsToSpawn.add( new SmallRation() );
|
itemsToSpawn.add( new SmallRation() );
|
||||||
itemsToSpawn.add( new SmallRation() );
|
itemsToSpawn.add( new SmallRation() );
|
||||||
|
|
||||||
itemsToSpawn.add( new Bomb().random() );
|
switch (Random.Int(4)){
|
||||||
switch (Random.Int(5)){
|
case 0:
|
||||||
case 1:
|
|
||||||
itemsToSpawn.add( new Bomb() );
|
itemsToSpawn.add( new Bomb() );
|
||||||
break;
|
break;
|
||||||
|
case 1:
|
||||||
case 2:
|
case 2:
|
||||||
itemsToSpawn.add( new Bomb().random() );
|
itemsToSpawn.add( new Bomb.DoubleBomb() );
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
case 4:
|
|
||||||
itemsToSpawn.add( new Honeypot() );
|
itemsToSpawn.add( new Honeypot() );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user