v2.4.0: slightly reduced free energy spawns
This commit is contained in:
@@ -28,7 +28,6 @@ import com.shatteredpixel.shatteredpixeldungeon.effects.FloatingText;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.scenes.GameScene;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.sprites.ItemSpriteSheet;
|
||||
import com.watabou.noosa.audio.Sample;
|
||||
import com.watabou.utils.Random;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
@@ -79,10 +78,4 @@ public class EnergyCrystal extends Item {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Item random() {
|
||||
quantity = Random.IntRange( 4, 6 );
|
||||
return this;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -78,12 +78,12 @@ public class SecretLaboratoryRoom extends SecretRoom {
|
||||
do {
|
||||
pos = level.pointToCell(random());
|
||||
} while (level.map[pos] != Terrain.EMPTY_SP || level.heaps.get( pos ) != null);
|
||||
level.drop( new EnergyCrystal().random(), pos );
|
||||
level.drop( new EnergyCrystal().quantity(Random.IntRange(3, 5)), pos );
|
||||
|
||||
do {
|
||||
pos = level.pointToCell(random());
|
||||
} while (level.map[pos] != Terrain.EMPTY_SP || level.heaps.get( pos ) != null);
|
||||
level.drop( new EnergyCrystal().random(), pos );
|
||||
level.drop( new EnergyCrystal().quantity(Random.IntRange(3, 5)), pos );
|
||||
|
||||
int n = Random.IntRange( 2, 3 );
|
||||
HashMap<Class<? extends Potion>, Float> chances = new HashMap<>(potionChances);
|
||||
|
||||
@@ -70,7 +70,7 @@ public class LaboratoryRoom extends SpecialRoom {
|
||||
} while (
|
||||
level.map[pos] != Terrain.EMPTY_SP ||
|
||||
level.heaps.get( pos ) != null);
|
||||
level.drop( new EnergyCrystal().random(), pos );
|
||||
level.drop( new EnergyCrystal().quantity(5), pos );
|
||||
|
||||
int n = Random.NormalIntRange( 1, 2 );
|
||||
for (int i=0; i < n; i++) {
|
||||
|
||||
Reference in New Issue
Block a user