v3.1.0: snakes no longer give tutorial text if they dodge out of FOV

This commit is contained in:
Evan Debenham
2025-04-02 17:23:14 -04:00
parent e2e05a4170
commit 7f6c749e5b

View File

@@ -22,6 +22,7 @@
package com.shatteredpixel.shatteredpixeldungeon.actors.mobs;
import com.shatteredpixel.shatteredpixeldungeon.Badges;
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
import com.shatteredpixel.shatteredpixeldungeon.items.Generator;
import com.shatteredpixel.shatteredpixeldungeon.journal.Document;
@@ -58,7 +59,9 @@ public class Snake extends Mob {
@Override
public String defenseVerb() {
dodges++;
if (Dungeon.level.heroFOV[pos]) {
dodges++;
}
if ((dodges >= 2 && !Document.ADVENTURERS_GUIDE.isPageRead(Document.GUIDE_SURPRISE_ATKS))
|| (dodges >= 4 && !Badges.isUnlocked(Badges.Badge.BOSS_SLAIN_1))){
GameScene.flashForDocument(Document.ADVENTURERS_GUIDE, Document.GUIDE_SURPRISE_ATKS);