This commit is contained in:
reschan 2022-06-24 19:05:05 +07:00
commit 6ba3b6de49
20 changed files with 173 additions and 110 deletions

View file

@ -2028,7 +2028,8 @@ const atrees =
"cost": 1, "cost": 1,
"display": { "display": {
"row": 0, "row": 0,
"col": 4 "col": 4,
"icon": "node_4"
}, },
"properties": { "properties": {
"aoe": 4, "aoe": 4,
@ -2072,7 +2073,8 @@ const atrees =
"cost": 1, "cost": 1,
"display": { "display": {
"row": 2, "row": 2,
"col": 4 "col": 4,
"icon": "node_0"
}, },
"properties": { "properties": {
"melee_range": 1 "melee_range": 1
@ -2102,7 +2104,8 @@ const atrees =
"cost": 1, "cost": 1,
"display": { "display": {
"row": 2, "row": 2,
"col": 2 "col": 2,
"icon": "node_0"
}, },
"properties": { "properties": {
@ -2126,7 +2129,8 @@ const atrees =
"cost": 1, "cost": 1,
"display": { "display": {
"row": 4, "row": 4,
"col": 4 "col": 4,
"icon": "node_1"
}, },
"properties": { "properties": {
"range": 3 "range": 3
@ -2163,7 +2167,8 @@ const atrees =
"cost": 1, "cost": 1,
"display": { "display": {
"row": 6, "row": 6,
"col": 4 "col": 4,
"icon": "node_4"
}, },
"properties": { "properties": {
}, },
@ -2206,7 +2211,8 @@ const atrees =
"cost": 1, "cost": 1,
"display": { "display": {
"row": 9, "row": 9,
"col": 1 "col": 1,
"icon": "node_1"
}, },
"properties": { "properties": {
"aoe": 4 "aoe": 4
@ -2233,7 +2239,8 @@ const atrees =
"cost": 1, "cost": 1,
"display": { "display": {
"row": 6, "row": 6,
"col": 2 "col": 2,
"icon": "node_0"
}, },
"properties": { "properties": {
}, },
@ -2272,7 +2279,8 @@ const atrees =
"cost": 1, "cost": 1,
"display": { "display": {
"row": 6, "row": 6,
"col": 6 "col": 6,
"icon": "node_0"
}, },
"properties": { "properties": {
}, },
@ -2321,7 +2329,8 @@ const atrees =
"cost": 1, "cost": 1,
"display": { "display": {
"row": 8, "row": 8,
"col": 2 "col": 2,
"icon": "node_4"
}, },
"properties": { "properties": {
"aoe": 3, "aoe": 3,
@ -2366,7 +2375,8 @@ const atrees =
"cost": 1, "cost": 1,
"display": { "display": {
"row": 8, "row": 8,
"col": 4 "col": 4,
"icon": "node_0"
}, },
"properties": { "properties": {
}, },
@ -2390,7 +2400,8 @@ const atrees =
"cost": 1, "cost": 1,
"display": { "display": {
"row": 8, "row": 8,
"col": 6 "col": 6,
"icon": "node_4"
}, },
"properties": { "properties": {
"duration": 30, "duration": 30,
@ -2429,7 +2440,8 @@ const atrees =
"cost": 1, "cost": 1,
"display": { "display": {
"row": 10, "row": 10,
"col": 0 "col": 0,
"icon": "node_0"
}, },
"properties": { "properties": {
}, },
@ -2463,7 +2475,8 @@ const atrees =
"cost": 1, "cost": 1,
"display": { "display": {
"row": 10, "row": 10,
"col": 2 "col": 2,
"icon": "node_0"
}, },
"properties": { "properties": {
}, },
@ -2497,7 +2510,8 @@ const atrees =
"cost": 1, "cost": 1,
"display": { "display": {
"row": 11, "row": 11,
"col": 4 "col": 4,
"icon": "node_0"
}, },
"properties": { "properties": {
}, },
@ -2531,7 +2545,8 @@ const atrees =
"cost": 1, "cost": 1,
"display": { "display": {
"row": 10, "row": 10,
"col": 6 "col": 6,
"icon": "node_0"
}, },
"properties": { "properties": {
}, },
@ -2565,7 +2580,8 @@ const atrees =
"cost": 1, "cost": 1,
"display": { "display": {
"row": 10, "row": 10,
"col": 8 "col": 8,
"icon": "node_0"
}, },
"properties": { "properties": {
}, },
@ -2599,7 +2615,8 @@ const atrees =
"cost": 2, "cost": 2,
"display": { "display": {
"row": 12, "row": 12,
"col": 0 "col": 0,
"icon": "node_1"
}, },
"properties": { "properties": {
"range": 6 "range": 6
@ -2635,7 +2652,8 @@ const atrees =
"cost": 2, "cost": 2,
"display": { "display": {
"row": 12, "row": 12,
"col": 2 "col": 2,
"icon": "node_1"
}, },
"properties": { "properties": {
}, },
@ -2670,7 +2688,8 @@ const atrees =
"cost": 2, "cost": 2,
"display": { "display": {
"row": 13, "row": 13,
"col": 4 "col": 4,
"icon": "node_1"
}, },
"properties": { "properties": {
"range": 4 "range": 4
@ -2702,7 +2721,8 @@ const atrees =
"cost": 2, "cost": 2,
"display": { "display": {
"row": 12, "row": 12,
"col": 6 "col": 6,
"icon": "node_1"
}, },
"properties": { "properties": {
"aoe": 2 "aoe": 2
@ -2729,7 +2749,8 @@ const atrees =
"cost": 2, "cost": 2,
"display": { "display": {
"row": 12, "row": 12,
"col": 8 "col": 8,
"icon": "node_1"
}, },
"properties": { "properties": {
"duration": 3, "duration": 3,
@ -2775,7 +2796,8 @@ const atrees =
"cost": 1, "cost": 1,
"display": { "display": {
"row": 13, "row": 13,
"col": 7 "col": 7,
"icon": "node_0"
}, },
"properties": { "properties": {
}, },
@ -2801,7 +2823,8 @@ const atrees =
"cost": 2, "cost": 2,
"display": { "display": {
"row": 15, "row": 15,
"col": 2 "col": 2,
"icon": "node_3"
}, },
"properties": { "properties": {
}, },
@ -2821,7 +2844,8 @@ const atrees =
"cost": 2, "cost": 2,
"display": { "display": {
"row": 15, "row": 15,
"col": 4 "col": 4,
"icon": "node_1"
}, },
"properties": { "properties": {
"chance": 30 "chance": 30
@ -2848,7 +2872,8 @@ const atrees =
"cost": 2, "cost": 2,
"display": { "display": {
"row": 15, "row": 15,
"col": 7 "col": 7,
"icon": "node_3"
}, },
"properties": { "properties": {
"mantle_charge": 3 "mantle_charge": 3
@ -2869,7 +2894,8 @@ const atrees =
"cost": 2, "cost": 2,
"display": { "display": {
"row": 16, "row": 16,
"col": 1 "col": 1,
"icon": "node_3"
}, },
"properties": { "properties": {
"cooldown": 15 "cooldown": 15
@ -2901,7 +2927,8 @@ const atrees =
"cost": 1, "cost": 1,
"display": { "display": {
"row": 17, "row": 17,
"col": 0 "col": 0,
"icon": "node_0"
}, },
"properties": { "properties": {
"melee_range": 1 "melee_range": 1
@ -2931,7 +2958,8 @@ const atrees =
"cost": 1, "cost": 1,
"display": { "display": {
"row": 17, "row": 17,
"col": 3 "col": 3,
"icon": "node_0"
}, },
"properties": { "properties": {
}, },
@ -2955,7 +2983,8 @@ const atrees =
"cost": 2, "cost": 2,
"display": { "display": {
"row": 17, "row": 17,
"col": 5 "col": 5,
"icon": "node_1"
}, },
"properties": { "properties": {
}, },
@ -2975,7 +3004,8 @@ const atrees =
"cost": 1, "cost": 1,
"display": { "display": {
"row": 17, "row": 17,
"col": 7 "col": 7,
"icon": "node_1"
}, },
"properties": { "properties": {
}, },
@ -2999,7 +3029,8 @@ const atrees =
"cost": 1, "cost": 1,
"display": { "display": {
"row": 18, "row": 18,
"col": 2 "col": 2,
"icon": "node_0"
}, },
"properties": { "properties": {
}, },
@ -3028,7 +3059,8 @@ const atrees =
"cost": 2, "cost": 2,
"display": { "display": {
"row": 18, "row": 18,
"col": 6 "col": 6,
"icon": "node_1"
}, },
"properties": { "properties": {
@ -3055,7 +3087,8 @@ const atrees =
"cost": 2, "cost": 2,
"display": { "display": {
"row": 20, "row": 20,
"col": 0 "col": 0,
"icon": "node_2"
}, },
"properties": { "properties": {
}, },
@ -3090,7 +3123,8 @@ const atrees =
"cost": 2, "cost": 2,
"display": { "display": {
"row": 20, "row": 20,
"col": 3 "col": 3,
"icon": "node_1"
}, },
"properties": { "properties": {
}, },
@ -3111,12 +3145,13 @@ const atrees =
"archetype": "Paladin", "archetype": "Paladin",
"archetype_req": 0, "archetype_req": 0,
"parents": ["Manachism", "Flying Kick"], "parents": ["Manachism", "Flying Kick"],
"dependencies": [], "dependencies": ["Mantle of the Bovemists"],
"blockers": [], "blockers": [],
"cost": 1, "cost": 1,
"display": { "display": {
"row": 20, "row": 20,
"col": 6 "col": 6,
"icon": "node_0"
}, },
"properties": { "properties": {
"mantle_charge": 2 "mantle_charge": 2
@ -3137,7 +3172,8 @@ const atrees =
"cost": 2, "cost": 2,
"display": { "display": {
"row": 20, "row": 20,
"col": 8 "col": 8,
"icon": "node_2"
}, },
"properties": { "properties": {
"cooldown": 1 "cooldown": 1
@ -3158,7 +3194,8 @@ const atrees =
"cost": 2, "cost": 2,
"display": { "display": {
"row": 22, "row": 22,
"col": 0 "col": 0,
"icon": "node_1"
}, },
"properties": { "properties": {
}, },
@ -3184,7 +3221,8 @@ const atrees =
"cost": 2, "cost": 2,
"display": { "display": {
"row": 22, "row": 22,
"col": 2 "col": 2,
"icon": "node_2"
}, },
"properties": { "properties": {
"damage_bonus": 30, "damage_bonus": 30,
@ -3210,7 +3248,8 @@ const atrees =
"cost": 1, "cost": 1,
"display": { "display": {
"row": 22, "row": 22,
"col": 4 "col": 4,
"icon": "node_0"
}, },
"properties": { "properties": {
"chance": 30 "chance": 30
@ -3231,7 +3270,8 @@ const atrees =
"cost": 1, "cost": 1,
"display": { "display": {
"row": 22, "row": 22,
"col": 6 "col": 6,
"icon": "node_0"
}, },
"properties": { "properties": {
}, },
@ -3267,7 +3307,8 @@ const atrees =
"cost": 1, "cost": 1,
"display": { "display": {
"row": 22, "row": 22,
"col": 8 "col": 8,
"icon": "node_0"
}, },
"properties": { "properties": {
}, },
@ -3293,7 +3334,8 @@ const atrees =
"cost": 2, "cost": 2,
"display": { "display": {
"row": 23, "row": 23,
"col": 1 "col": 1,
"icon": "node_1"
}, },
"properties": { "properties": {
}, },
@ -3313,7 +3355,8 @@ const atrees =
"cost": 2, "cost": 2,
"display": { "display": {
"row": 24, "row": 24,
"col": 2 "col": 2,
"icon": "node_1"
}, },
"properties": { "properties": {
}, },
@ -3348,7 +3391,8 @@ const atrees =
"cost": 2, "cost": 2,
"display": { "display": {
"row": 23, "row": 23,
"col": 5 "col": 5,
"icon": "node_1"
}, },
"properties": { "properties": {
"aoe": 4 "aoe": 4
@ -3375,7 +3419,8 @@ const atrees =
"cost": 2, "cost": 2,
"display": { "display": {
"row": 23, "row": 23,
"col": 7 "col": 7,
"icon": "node_3"
}, },
"properties": { "properties": {
}, },
@ -3395,7 +3440,8 @@ const atrees =
"cost": 1, "cost": 1,
"display": { "display": {
"row": 26, "row": 26,
"col": 0 "col": 0,
"icon": "node_0"
}, },
"properties": { "properties": {
"cooldown": -5 "cooldown": -5
@ -3427,7 +3473,8 @@ const atrees =
"cost": 1, "cost": 1,
"display": { "display": {
"row": 26, "row": 26,
"col": 2 "col": 2,
"icon": "node_0"
}, },
"properties": { "properties": {
}, },
@ -3462,7 +3509,8 @@ const atrees =
"cost": 2, "cost": 2,
"display": { "display": {
"row": 26, "row": 26,
"col": 4 "col": 4,
"icon": "node_1"
}, },
"properties": { "properties": {
"range": 2 "range": 2
@ -3489,7 +3537,8 @@ const atrees =
"cost": 2, "cost": 2,
"display": { "display": {
"row": 26, "row": 26,
"col": 7 "col": 7,
"icon": "node_1"
}, },
"properties": { "properties": {
}, },
@ -3518,7 +3567,8 @@ const atrees =
"cost": 2, "cost": 2,
"display": { "display": {
"row": 27, "row": 27,
"col": 1 "col": 1,
"icon": "node_2"
}, },
"properties": { "properties": {
"duration": 5 "duration": 5
@ -3539,7 +3589,8 @@ const atrees =
"cost": 2, "cost": 2,
"display": { "display": {
"row": 27, "row": 27,
"col": 6 "col": 6,
"icon": "node_1"
}, },
"properties": { "properties": {
}, },
@ -3565,7 +3616,8 @@ const atrees =
"cost": 2, "cost": 2,
"display": { "display": {
"row": 27, "row": 27,
"col": 8 "col": 8,
"icon": "node_2"
}, },
"properties": { "properties": {
"aoe": 6 "aoe": 6
@ -3592,7 +3644,8 @@ const atrees =
"cost": 2, "cost": 2,
"display": { "display": {
"row": 28, "row": 28,
"col": 0 "col": 0,
"icon": "node_2"
}, },
"properties": { "properties": {
}, },
@ -3623,7 +3676,8 @@ const atrees =
"cost": 2, "cost": 2,
"display": { "display": {
"row": 28, "row": 28,
"col": 2 "col": 2,
"icon": "node_1"
}, },
"properties": { "properties": {
"aoe": 16 "aoe": 16
@ -3668,7 +3722,8 @@ const atrees =
"cost": 1, "cost": 1,
"display": { "display": {
"row": 28, "row": 28,
"col": 4 "col": 4,
"icon": "node_0"
}, },
"properties": { "properties": {
}, },
@ -3702,7 +3757,8 @@ const atrees =
"cost": 2, "cost": 2,
"display": { "display": {
"row": 29, "row": 29,
"col": 1 "col": 1,
"icon": "node_1"
}, },
"properties": { "properties": {
}, },
@ -3722,7 +3778,8 @@ const atrees =
"cost": 1, "cost": 1,
"display": { "display": {
"row": 29, "row": 29,
"col": 3 "col": 3,
"icon": "node_0"
}, },
"properties": { "properties": {
}, },
@ -3748,7 +3805,8 @@ const atrees =
"cost": 2, "cost": 2,
"display": { "display": {
"row": 29, "row": 29,
"col": 5 "col": 5,
"icon": "node_2"
}, },
"properties": { "properties": {
"cooldown": 15 "cooldown": 15
@ -3769,7 +3827,8 @@ const atrees =
"cost": 1, "cost": 1,
"display": { "display": {
"row": 29, "row": 29,
"col": 7 "col": 7,
"icon": "node_0"
}, },
"properties": { "properties": {
}, },
@ -3793,7 +3852,8 @@ const atrees =
"cost": 1, "cost": 1,
"display": { "display": {
"row": 31, "row": 31,
"col": 0 "col": 0,
"icon": "node_0"
}, },
"properties": { "properties": {
}, },
@ -3811,13 +3871,14 @@ const atrees =
"desc": "Every time you hit an enemy, briefly increase your elemental damage dealt to them by +2 (Additive, Max +50). This bonus decays -5 every second", "desc": "Every time you hit an enemy, briefly increase your elemental damage dealt to them by +2 (Additive, Max +50). This bonus decays -5 every second",
"archetype": "Battle Monk", "archetype": "Battle Monk",
"archetype_req": 12, "archetype_req": 12,
"parents": ["Thunderclap"], "parents": ["Cyclone"],
"dependencies": [], "dependencies": [],
"blockers": [], "blockers": [],
"cost": 2, "cost": 2,
"display": { "display": {
"row": 31, "row": 31,
"col": 2 "col": 2,
"icon": "node_3"
}, },
"properties": { "properties": {
}, },
@ -3841,22 +3902,30 @@ const atrees =
"desc": "Bash will cast at the player's position and gain additional AoE.\n\n All elemental conversions become Thunder", "desc": "Bash will cast at the player's position and gain additional AoE.\n\n All elemental conversions become Thunder",
"archetype": "Battle Monk", "archetype": "Battle Monk",
"archetype_req": 8, "archetype_req": 8,
"parents": ["Spirit of the Rabbit"], "parents": ["Cyclone"],
"dependencies": [], "dependencies": [],
"blockers": [], "blockers": [],
"cost": 2, "cost": 2,
"display": { "display": {
"row": 31, "row": 32,
"col": 4 "col": 5,
}, "icon": "node_1"
"properties": {
"aoe": 2
}, },
"properties": {},
"effects": [ "effects": [
{ {
"type": "convert_spell_conv", "type": "convert_spell_conv",
"target_part": "all", "target_part": "all",
"conversion": "thunder" "conversion": "thunder"
},
{
"type": "raw_stat",
"bonuses": [{
"type": "prop",
"abil_name": "Bash",
"name": "aoe",
"value": 3
}]
} }
] ]
}, },
@ -3866,13 +3935,14 @@ const atrees =
"desc": "After casting War Scream, envelop yourself with a vortex that damages nearby enemies every 0.5s", "desc": "After casting War Scream, envelop yourself with a vortex that damages nearby enemies every 0.5s",
"archetype": "Battle Monk", "archetype": "Battle Monk",
"archetype_req": 0, "archetype_req": 0,
"parents": ["Thunderclap"], "parents": ["Spirit of the Rabbit"],
"dependencies": [], "dependencies": [],
"blockers": [], "blockers": [],
"cost": 1, "cost": 1,
"display": { "display": {
"row": 32, "row": 31,
"col": 5 "col": 4,
"icon": "node_1"
}, },
"properties": { "properties": {
"aoe": 4, "aoe": 4,
@ -3910,13 +3980,11 @@ const atrees =
"cost": 2, "cost": 2,
"display": { "display": {
"row": 32, "row": 32,
"col": 7 "col": 7,
"icon": "node_3"
}, },
"properties": { "properties": {},
}, "effects": []
"effects": [
]
}, },
{ {
@ -3930,13 +3998,11 @@ const atrees =
"cost": 2, "cost": 2,
"display": { "display": {
"row": 34, "row": 34,
"col": 1 "col": 1,
"icon": "node_3"
}, },
"properties": { "properties": {},
}, "effects": []
"effects": [
]
}, },
{ {
@ -3950,13 +4016,11 @@ const atrees =
"cost": 1, "cost": 1,
"display": { "display": {
"row": 35, "row": 35,
"col": 2 "col": 2,
"icon": "node_1"
}, },
"properties": { "properties": {},
}, "effects": []
"effects": [
]
}, },
{ {
@ -3970,13 +4034,11 @@ const atrees =
"cost": 2, "cost": 2,
"display": { "display": {
"row": 35, "row": 35,
"col": 4 "col": 4,
"icon": "node_2"
}, },
"properties": { "properties": {},
}, "effects": []
"effects": [
]
}, },
{ {
@ -3990,10 +4052,10 @@ const atrees =
"cost": 1, "cost": 1,
"display": { "display": {
"row": 35, "row": 35,
"col": 6 "col": 6,
}, "icon": "node_0"
"properties": {
}, },
"properties": {},
"effects": [ "effects": [
{ {
"type": "add_spell_prop", "type": "add_spell_prop",
@ -4014,15 +4076,14 @@ const atrees =
"cost": 2, "cost": 2,
"display": { "display": {
"row": 35, "row": 35,
"col": 8 "col": 8,
"icon": "node_1"
}, },
"properties": { "properties": {
"duration": 3, "duration": 3,
"aoe": 12 "aoe": 12
}, },
"effects": [ "effects": []
]
} }
], ],
} }

File diff suppressed because one or more lines are too long

View file

@ -178,6 +178,7 @@ class ItemInputNode extends InputNode {
} }
compute_func(input_map) { compute_func(input_map) {
console.log("Item update...." + Date.now());
const powdering = input_map.get('powdering'); const powdering = input_map.get('powdering');
// built on the assumption of no one will type in CI/CR letter by letter // built on the assumption of no one will type in CI/CR letter by letter
@ -337,7 +338,6 @@ class WeaponInputDisplayNode extends ComputeNode {
toggle_tab('atree-dropdown'); toggle_tab('atree-dropdown');
toggleButton('toggle-atree'); toggleButton('toggle-atree');
} }
console.log(document.getElementById("toggle-atree").classList.contains("toggleOn"));
} }
} }

View file

@ -139,8 +139,8 @@ class InputNode extends ComputeNode {
constructor(name, input_field) { constructor(name, input_field) {
super(name); super(name);
this.input_field = input_field; this.input_field = input_field;
this.input_field.addEventListener("input", () => calcSchedule(this, 5000)); this.input_field.addEventListener("input", () => calcSchedule(this, 500));
this.input_field.addEventListener("change", () => calcSchedule(this, 500)); this.input_field.addEventListener("change", () => calcSchedule(this, 5));
//calcSchedule(this); Manually fire first update for better control //calcSchedule(this); Manually fire first update for better control
} }

View file

@ -36,7 +36,6 @@ function construct_AT(elem, tree) {
row.classList.add("row"); row.classList.add("row");
row.id = "atree-row-" + j; row.id = "atree-row-" + j;
//was causing atree rows to be 0 height //was causing atree rows to be 0 height
console.log(elem.scrollWidth / 9);
row.style.minHeight = elem.scrollWidth / 9 + "px"; row.style.minHeight = elem.scrollWidth / 9 + "px";
//row.style.minHeight = elem.getBoundingClientRect().width / 9 + "px"; //row.style.minHeight = elem.getBoundingClientRect().width / 9 + "px";
@ -101,7 +100,11 @@ function construct_AT(elem, tree) {
// create node // create node
let node_elem = document.createElement('div') let node_elem = document.createElement('div')
node_elem.style = "background-image: url('../media/atree/node.png'); background-size: cover; width: 100%; height: 100%;"; let icon = node.display.icon;
if (icon === undefined) {
icon = "node";
}
node_elem.style = "background-image: url('../media/atree/"+icon+".png'); background-size: cover; width: 100%; height: 100%;";
// add tooltip // add tooltip
node_elem.addEventListener('mouseover', function(e) { node_elem.addEventListener('mouseover', function(e) {

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

BIN
media/atree/highlight_c.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 974 B

BIN
media/atree/highlight_t.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 632 B

BIN
media/atree/node_0.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5 KiB

BIN
media/atree/node_1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

BIN
media/atree/node_2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5 KiB

BIN
media/atree/node_3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

BIN
media/atree/node_4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB