v1.3.2: made it clearer that defeating enemies weakens ascension curse
This commit is contained in:
@@ -78,6 +78,7 @@ actors.buffs.ascensionchallenge.beckon=The amulet begins calling out to distant
|
||||
actors.buffs.ascensionchallenge.haste=The amulet begins hastening distant enemies!
|
||||
actors.buffs.ascensionchallenge.slow=The amulet starts to feel like a lead weight in your inventory!
|
||||
actors.buffs.ascensionchallenge.damage=The amulet begins radiating dark energy. It burns!
|
||||
actors.buffs.ascensionchallenge.weaken_info=You must defeat enemies to weaken the amulet's curse!
|
||||
actors.buffs.ascensionchallenge.weaken=You can feel the amulet's curse weaken slightly.
|
||||
actors.buffs.ascensionchallenge.break=You take a moment to catch your breath and feel your wounds begin to close!
|
||||
actors.buffs.ascensionchallenge.almost=You feel Yog's grip on the amulet begin to weaken, you're almost there!
|
||||
|
||||
@@ -1709,7 +1709,7 @@ items.amulet.desc=The Amulet of Yendor is the most powerful artifact known to hu
|
||||
items.amulet.desc_origins=The origins of the amulet are unknown. History says that the King of Dwarves boasted that he had discovered the artifact shortly before the Dwarven civilization cut off all contact. How did he find it? How did Yog-Dzewa take it from him? Questions for another time perhaps, all that matters now is the amulet is yours!
|
||||
items.amulet.desc_ascent=The origins of the amulet are unknown, but clearly it has been heavily influenced by Yog-Dzewa's power. The dungeon seems to be bending to Yog's will as you move through it, making enemies much more plentiful and powerful! You're also no longer able to activate or discard the amulet, almost as if it is cursed.
|
||||
items.amulet.ascent_title=Ascension
|
||||
items.amulet.ascent_desc=You begin to feel Yog-Dzewa's great and terrible power radiating from the amulet. Ascending back through the dungeon as a mortal might be more difficult than you thought!\n\nIf you continue ascending with the amulet the dungeon will become more dangerous, teleports between floors will be disabled, and you will only be able to win the game by ascending through the dungeon!\n\nYou can leave the amulet here for now if you want to ascend without starting this challenge, or activate the amulet before ascending to end the game normally.
|
||||
items.amulet.ascent_desc=You begin to feel Yog-Dzewa's great and terrible power radiating from the amulet. Ascending back through the dungeon as a mortal might be more difficult than you thought!\n\nIf you continue ascending with the amulet the dungeon will become more dangerous, teleports between floors will be disabled, and you will only be able to win the game by defeating enemies as you ascend through the dungeon!\n\nYou can leave the amulet here for now if you want to ascend without starting this challenge, or activate the amulet before ascending to end the game normally.
|
||||
items.amulet.ascent_yes=Continue!
|
||||
items.amulet.ascent_no=Stop for Now
|
||||
|
||||
|
||||
@@ -28,6 +28,7 @@ import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.abilities.Ratmogrify;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.*;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.Amulet;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.messages.Languages;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.messages.Messages;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.ui.BuffIndicator;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.utils.GLog;
|
||||
@@ -191,22 +192,9 @@ public class AscensionChallenge extends Buff {
|
||||
if (Dungeon.bossLevel()){
|
||||
Dungeon.hero.buff(Hunger.class).satisfy(Hunger.STARVING);
|
||||
Buff.affect(Dungeon.hero, Healing.class).setHeal(Dungeon.hero.HT, 0, 20);
|
||||
toSay = Messages.get(this, "break");
|
||||
} else {
|
||||
stacks += 2.5f;
|
||||
|
||||
if (Dungeon.depth == 1){
|
||||
toSay = Messages.get(this, "almost");
|
||||
} else if (stacks >= 10f){
|
||||
toSay = Messages.get(this, "damage");
|
||||
} else if (stacks >= 7.5f){
|
||||
toSay = Messages.get(this, "slow");
|
||||
} else if (stacks >= 5f){
|
||||
toSay = Messages.get(this, "haste");
|
||||
} else if (stacks >= 2.5f){
|
||||
toSay = Messages.get(this, "beckon");
|
||||
}
|
||||
|
||||
//clears any existing mobs from the level and adds one initial one
|
||||
//this helps balance difficulty between levels with lots of mobs left, and ones with few
|
||||
for (Mob mob : Dungeon.level.mobs.toArray( new Mob[0] )) {
|
||||
@@ -220,16 +208,27 @@ public class AscensionChallenge extends Buff {
|
||||
}
|
||||
}
|
||||
|
||||
private String toSay;
|
||||
|
||||
public void saySwitch(){
|
||||
if (toSay != null){
|
||||
if (Dungeon.bossLevel() || Dungeon.depth == 1){
|
||||
GLog.p(toSay);
|
||||
} else {
|
||||
GLog.n(toSay);
|
||||
if (Dungeon.bossLevel() || Dungeon.depth == 1){
|
||||
GLog.p(Messages.get(this, "break"));
|
||||
} else {
|
||||
if (Dungeon.depth == 1){
|
||||
GLog.n(Messages.get(this, "almost"));
|
||||
} else if (stacks >= 10f){
|
||||
GLog.n(Messages.get(this, "damage"));
|
||||
} else if (stacks >= 7.5f){
|
||||
GLog.n(Messages.get(this, "slow"));
|
||||
} else if (stacks >= 5f){
|
||||
GLog.n(Messages.get(this, "haste"));
|
||||
} else if (stacks >= 2.5f){
|
||||
GLog.n(Messages.get(this, "beckon"));
|
||||
}
|
||||
if (stacks > 10 || stacks > 5 && Dungeon.depth > 20){
|
||||
//english only until the next update
|
||||
if (Messages.lang() == Languages.ENGLISH) {
|
||||
GLog.h(Messages.get(this, "weaken_info"));
|
||||
}
|
||||
}
|
||||
toSay = null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -562,7 +562,8 @@ public class GameScene extends PixelScene {
|
||||
}
|
||||
}
|
||||
|
||||
if (Dungeon.hero.buff(AscensionChallenge.class) != null){
|
||||
if (Dungeon.hero.buff(AscensionChallenge.class) != null
|
||||
&& Dungeon.depth == Statistics.highestAscent){
|
||||
Dungeon.hero.buff(AscensionChallenge.class).saySwitch();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user