diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/constants.js | 6 | ||||
-rw-r--r-- | util/waypoints.js | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/util/constants.js b/util/constants.js index 16cd037..51345fe 100644 --- a/util/constants.js +++ b/util/constants.js @@ -22,6 +22,11 @@ let TimerData = new PogObject("Coleweight", { "timer": 0 }, "config/.timer_data.json") +let DowntimeData = new PogObject("Coleweight", { + "x": 0, + "y": 0 +}, "config/.downtime_data.json") + export default { PREFIX: "&2[CW] ", @@ -29,6 +34,7 @@ export default data: PogData, powderdata: PowderData, timerdata: TimerData, + downtimedata: DowntimeData, cwValues: [], calcCwPerHr: false, upTimeTrack: false, diff --git a/util/waypoints.js b/util/waypoints.js new file mode 100644 index 0000000..eb7dad8 --- /dev/null +++ b/util/waypoints.js @@ -0,0 +1,7 @@ +export function waypointRender(waypoints) +{ + if(waypoints.length < 1) return + waypoints.forEach((waypoint) => { + Tessellator.drawString(Math.floor((Math.abs(parseInt(Player.getX()) - waypoint[0]) + Math.abs(parseInt(Player.getY()) - waypoint[1]) + Math.abs(parseInt(Player.getZ()) - waypoint[2]))/3) + "m", waypoint[0], waypoint[1], waypoint[2]) + }) +}
\ No newline at end of file |