forked from MagicBane/Server
Variable hidden elevated to abschar.
This commit is contained in:
@@ -119,6 +119,9 @@ public abstract class AbstractCharacter extends AbstractWorldObject {
|
||||
private long takeOffTime = 0;
|
||||
private long lastHateUpdate = 0;
|
||||
private byte aoecntr = 0;
|
||||
|
||||
public int hidden = 0; // current rank of hide/sneak/invis
|
||||
|
||||
public final ConcurrentHashMap<Mob, Integer> siegeMinionMap = new ConcurrentHashMap<>(MBServerStatics.CHM_INIT_CAP, MBServerStatics.CHM_LOAD, MBServerStatics.CHM_THREAD_LOW);
|
||||
|
||||
public AbstractCharacter() {
|
||||
|
||||
@@ -1679,8 +1679,8 @@ public class Mob extends AbstractIntelligenceAgent {
|
||||
return new ConcurrentHashMap<>(MBServerStatics.CHM_INIT_CAP, MBServerStatics.CHM_LOAD, MBServerStatics.CHM_THREAD_LOW);
|
||||
}
|
||||
|
||||
public boolean canSee(PlayerCharacter target) {
|
||||
return this.mobBase.getSeeInvis() >= target.getHidden();
|
||||
public boolean canSee(AbstractCharacter target) {
|
||||
return this.mobBase.getSeeInvis() >= target.hidden;
|
||||
}
|
||||
|
||||
public int getBuildingID() {
|
||||
|
||||
@@ -135,7 +135,6 @@ public class PlayerCharacter extends AbstractCharacter {
|
||||
private Vector3fImmutable lastStaticLoc = new Vector3fImmutable(0.0f, 0.0f, 0.0f);
|
||||
private GameObjectType lastTargetType;
|
||||
private int lastTargetID;
|
||||
private int hidden = 0; // current rank of hide/sneak/invis
|
||||
private int seeInvis = 0; // current rank of see invis
|
||||
private float speedMod;
|
||||
private boolean teleportMode = false; // Teleport on MoveToPoint
|
||||
@@ -2774,10 +2773,6 @@ public class PlayerCharacter extends AbstractCharacter {
|
||||
this.lastStaticLoc = value;
|
||||
}
|
||||
|
||||
public int getHidden() {
|
||||
return this.hidden;
|
||||
}
|
||||
|
||||
public void setHidden(int value) {
|
||||
this.hidden = value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user