1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
import PogObject from "PogData"
import axios from "../../axios"
import settings from "../settings"
let PogData = new PogObject("Coleweight", {
"api_key": "",
"professional": 0,
"jungle_amulet": true,
"x": 0.5,
"y": 141,
"first_time": true
}, "config/.cw_data.json")
let PowderData = new PogObject("Coleweight", {
"chests": 0,
"gemstonePowder": 0,
"mithrilPowder": 0,
"x": 0,
"y": 0
}, "config/.powdertracker_data.json")
let TimerData = new PogObject("Coleweight", {
"x": 0,
"y": 0,
"timer": 0
}, "config/.timer_data.json")
let DowntimeData = new PogObject("Coleweight", {
"x": 0,
"y": 0
}, "config/.downtime_data.json")
let CollectionData = new PogObject("Coleweight", {
"x": 0,
"y": 0
}, "config/.collection_data.json")
let AbilityData = new PogObject("Coleweight", {
"x": 0,
"y": 0
}, "config/.ability_data.json")
const PREFIX = "&2[CW] "
export default constants = {
PREFIX: PREFIX,
CALCULATEERRORMESSAGE: `${PREFIX}&cInvalid arguments. '/cw calculate help' for more information.`,
INVALIDARGS: `${PREFIX}&cInvalid arguments. '/cw help' for more information.`,
VERSION: (JSON.parse(FileLib.read("Coleweight", "metadata.json"))).version,
CWINFO: undefined,
data: PogData,
powderdata: PowderData,
timerdata: TimerData,
downtimedata: DowntimeData,
collectiondata: CollectionData,
abilitydata: AbilityData,
beta: false,
serverData: {}
}
register("gameLoad", () => {
axios.get(`https://ninjune.dev/api/cwinfo?new=true`)
.then((res) => {
constants.CWINFO = res.data
})
.catch((e) => {
if(settings.debug) console.log(`[CW] Error loading CWINFO: ${e}`)
})
})
|