v0.9.1: adjusted secret room spawn rates, removed rogue passive

This commit is contained in:
Evan Debenham
2020-11-18 18:04:33 -05:00
parent 3b0aaa7d29
commit 7982804508
2 changed files with 2 additions and 10 deletions

View File

@@ -389,7 +389,7 @@ actors.hero.heroclass.mage_desc_subclasses=A subclass can be chosen after defeat
actors.hero.heroclass.rogue=rogue
actors.hero.heroclass.rogue_unlock=The Rogue can control the flow of battle and strike from invisibility using his _unique cloak of shadows._\n\nTo unlock him _perform 10 surprise attacks in one run._
actors.hero.heroclass.rogue_desc_innate=The Rogue starts with a unique artifact: the _Cloak of Shadows,_ which he can use to become invisible at will. Like all artifacts, the cloak cannot be directly upgraded. Instead it becomes more powerful as it is used.\n\nThe Rogue detects secrets and traps from a greater distance.\n\nThe Rogue is able to find more secrets hidden in the dungeon.\n\nThe Rogue automatically identifies:\n- Scrolls of Identify\n- Potions of Invisibility\n- Scrolls of Magic Mapping
actors.hero.heroclass.rogue_desc_innate=The Rogue starts with a unique artifact: the _Cloak of Shadows,_ which he can use to become invisible at will. Like all artifacts, the cloak cannot be directly upgraded. Instead it becomes more powerful as it is used.\n\nThe Rogue detects secrets and traps from a greater distance.\n\nThe Rogue automatically identifies:\n- Scrolls of Identify\n- Potions of Invisibility\n- Scrolls of Magic Mapping
actors.hero.heroclass.rogue_desc_loadout=The Rogue starts with a _dagger,_ which deals more damage when surprising enemies.\n\nThe Rogue starts with _three throwing knives,_ which offer some ranged damage and deal more damage to surprised enemies.\n\nThe Rogue starts with a _velvet pouch,_ which can store small items like seeds and runestones.
actors.hero.heroclass.rogue_desc_subclasses=A subclass can be chosen after defeating the second boss. The Rogue has two subclasses:

View File

@@ -21,9 +21,7 @@
package com.shatteredpixel.shatteredpixeldungeon.levels.rooms.secret;
import com.shatteredpixel.shatteredpixeldungeon.GamesInProgress;
import com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon;
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.HeroClass;
import com.shatteredpixel.shatteredpixeldungeon.levels.rooms.special.SpecialRoom;
import com.watabou.utils.Bundle;
import com.watabou.utils.Random;
@@ -46,19 +44,13 @@ public abstract class SecretRoom extends SpecialRoom {
//this is the number of secret rooms per region (whole value),
// plus the chance for an extra secret room (fractional value)
private static float[] baseRegionSecrets = new float[]{1.4f, 1.8f, 2.2f, 2.6f, 3.0f};
private static float[] baseRegionSecrets = new float[]{2f, 2.25f, 2.5f, 2.75f, 3.0f};
private static int[] regionSecretsThisRun = new int[5];
public static void initForRun(){
float[] regionChances = baseRegionSecrets.clone();
if (GamesInProgress.selectedClass == HeroClass.ROGUE){
for (int i = 0; i < regionChances.length; i++){
regionChances[i] += 0.6f;
}
}
for (int i = 0; i < regionSecretsThisRun.length; i++){
regionSecretsThisRun[i] = (int)regionChances[i];
if (Random.Float() < regionChances[i] % 1f){