-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathData.js
More file actions
42 lines (35 loc) · 890 Bytes
/
Data.js
File metadata and controls
42 lines (35 loc) · 890 Bytes
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
const OWNER = 4751021054623744;
const MERCH_POINT = { x: -176, y: -130, id: "main", map: "main" };
function merchInPosition()
{
if (character.name != "MKMe")
return false;
return simple_distance(character, MERCH_POINT) < 250;
}
// Per-character values
var char_const = {};
char_const["MauranKilom"] = {
move_ratio: 0.13,
hp_pot_thresh: 0.75,
mp_pot_thresh: 0.9,
};
char_const["MKRa"] = {
move_ratio: 0.2,
hp_pot_thresh: 0.75,
mp_pot_thresh: 0.6,
max_targets: 3,
};
char_const["MKWa"] = {
move_ratio: 0.5,
hp_pot_thresh: 0.8,
mp_pot_thresh: 0.6,
max_targets: 8,
};
function c(key, def) {
let char_name = character.name;
if (!(char_name in char_const))
return def;
if (!(key in char_const[char_name]))
return def;
return char_const[char_name][key];
}