v2.4.0: slightly reduced free energy spawns

This commit is contained in:
Evan Debenham
2024-03-10 14:21:54 -04:00
parent bf0b95aa96
commit 21804614eb
3 changed files with 3 additions and 10 deletions

View File

@@ -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;
}
}

View File

@@ -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);

View File

@@ -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++) {