Changeset 3d64884 in lost-haven for main/Creature.java
- Timestamp:
- Feb 23, 2021, 1:58:57 AM (4 years ago)
- Branches:
- master
- Children:
- 8e945fc
- Parents:
- 4d8825f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/Creature.java
r4d8825f r3d64884 149 149 if (this.lastMoved == 0L) { 150 150 dist = 0.0D; 151 this.lastMoved = System.currentTimeMillis(); 152 } else if (dist != 0.0D) { 153 this.lastMoved = System.currentTimeMillis(); 151 154 } 152 155 if (this.enemyTarget != null) { 153 156 this.target = this.enemyTarget.loc; 154 157 } 155 this.lastMoved = System.currentTimeMillis();156 158 if (Point.dist(this.loc, this.target) <= dist) { 157 159 newLoc = this.target;
Note:
See TracChangeset
for help on using the changeset viewer.