From 7f6c749e5bd29d88153c27b03f485a6b195df81e Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Wed, 2 Apr 2025 17:23:14 -0400 Subject: [PATCH] v3.1.0: snakes no longer give tutorial text if they dodge out of FOV --- .../shatteredpixeldungeon/actors/mobs/Snake.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Snake.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Snake.java index bb39bb715..4fc85d447 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Snake.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Snake.java @@ -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);