v0.9.3: fixed CharAwareness unnecessarily checking depth
This commit is contained in:
parent
a491980067
commit
158fd1c730
core/src/main/java/com/shatteredpixel/shatteredpixeldungeon
|
@ -753,7 +753,6 @@ public class Dungeon {
|
|||
}
|
||||
|
||||
for (TalismanOfForesight.CharAwareness c : hero.buffs(TalismanOfForesight.CharAwareness.class)){
|
||||
if (Dungeon.depth != c.depth) continue;
|
||||
Char ch = (Char) Actor.findById(c.charID);
|
||||
if (ch == null) continue;
|
||||
BArray.or( level.visited, level.heroFOV, ch.pos - 1 - level.width(), 3, level.visited );
|
||||
|
|
|
@ -349,7 +349,6 @@ public class TalismanOfForesight extends Artifact {
|
|||
public static class CharAwareness extends FlavourBuff {
|
||||
|
||||
public int charID;
|
||||
public int depth = Dungeon.depth;
|
||||
|
||||
private static final String CHAR_ID = "char_id";
|
||||
|
||||
|
|
|
@ -1167,10 +1167,8 @@ public abstract class Level implements Bundlable {
|
|||
}
|
||||
|
||||
for (TalismanOfForesight.CharAwareness a : c.buffs(TalismanOfForesight.CharAwareness.class)){
|
||||
if (Dungeon.depth != a.depth) continue;
|
||||
Char ch = (Char) Actor.findById(a.charID);
|
||||
if (ch == null) {
|
||||
a.detach();
|
||||
continue;
|
||||
}
|
||||
int p = ch.pos;
|
||||
|
|
Loading…
Reference in New Issue
Block a user