Misc. mage tree fixes

also merge abilities
This commit is contained in:
hppeng 2022-07-08 20:47:34 -07:00
parent e58e0fa5fa
commit 335b8681b6
3 changed files with 14 additions and 7 deletions

View file

@ -264,7 +264,10 @@ const atree_merge = new (class extends ComputeNode {
let abils_merged = new Map(); let abils_merged = new Map();
for (const abil of default_abils[build.weapon.statMap.get('type')]) { for (const abil of default_abils[build.weapon.statMap.get('type')]) {
let tmp_abil = deepcopy(abil); let tmp_abil = deepcopy(abil);
if (!Array.isArray(tmp_abil.desc)) { if (!('desc' in tmp_abil)) {
tmp_abil.desc = [];
}
else if (!Array.isArray(tmp_abil.desc)) {
tmp_abil.desc = [tmp_abil.desc]; tmp_abil.desc = [tmp_abil.desc];
} }
tmp_abil.subparts = [abil.id]; tmp_abil.subparts = [abil.id];
@ -429,11 +432,15 @@ const atree_render_active = new (class extends ComputeNode {
} }
} }
const ret_map = new Map(); const ret_map = new Map();
const to_render_id = [999, 998];
for (const node of atree_order) { for (const node of atree_order) {
if (!merged_abils.has(node.ability.id)) { if (!merged_abils.has(node.ability.id)) {
continue; continue;
} }
const abil = merged_abils.get(node.ability.id); to_render_id.push(node.ability.id);
}
for (const id of to_render_id) {
const abil = merged_abils.get(id);
let active_tooltip = document.createElement('div'); let active_tooltip = document.createElement('div');
active_tooltip.classList.add("rounded-bottom", "dark-4", "border", "p-0", "mx-2", "my-4", "dark-shadow"); active_tooltip.classList.add("rounded-bottom", "dark-4", "border", "p-0", "mx-2", "my-4", "dark-shadow");

View file

@ -4380,7 +4380,6 @@ const atrees = {
"desc": "For every 2% or 2 Raw Spell Damage you have from items, gain +1/5s mana regen (Max 5/5s)", "desc": "For every 2% or 2 Raw Spell Damage you have from items, gain +1/5s mana regen (Max 5/5s)",
"archetype": "Arcanist", "archetype": "Arcanist",
"archetype_req": 0, "archetype_req": 0,
"base_abil": 999,
"parents": ["Teleport"], "parents": ["Teleport"],
"dependencies": [], "dependencies": [],
"blockers": ["Wand Proficiency II"], "blockers": ["Wand Proficiency II"],
@ -4501,7 +4500,7 @@ const atrees = {
}, },
{ {
"display_name": "Stronger Meteor", "display_name": "Stronger Meteor",
"desc": "Incrase the damage of Meteor.", "desc": "Increase the damage of Meteor.",
"base_abil": "Meteor", "base_abil": "Meteor",
"archetype": "Arcanist", "archetype": "Arcanist",
"archetype_req": 2, "archetype_req": 2,
@ -4568,7 +4567,6 @@ const atrees = {
"parents": ["Water Mastery"], "parents": ["Water Mastery"],
"dependencies": ["Heal"], "dependencies": ["Heal"],
"blockers": ["Arcane Transfer"], "blockers": ["Arcane Transfer"],
"cost": 2,
"display": { "display": {
"row": 13, "row": 13,
"col": 4, "col": 4,
@ -4719,7 +4717,7 @@ const atrees = {
{ {
"display_name": "Eye Piercer", "display_name": "Eye Piercer",
"desc": "Teleport will blind enemies, confusing them for a short amount of time.", "desc": "Teleport will blind enemies, confusing them for a short amount of time.",
"base_abil": 2, "base_abil": "Heal",
"parents": ["Cheaper Heal"], "parents": ["Cheaper Heal"],
"dependencies": ["Teleport"], "dependencies": ["Teleport"],
"blockers": [], "blockers": [],
@ -4989,6 +4987,7 @@ const atrees = {
"desc": "For every 1% Water Damage Bonus you have, buff Heal's healing power by +0.3%.", "desc": "For every 1% Water Damage Bonus you have, buff Heal's healing power by +0.3%.",
"archetype": "Light Bender", "archetype": "Light Bender",
"archetype_req": 0, "archetype_req": 0,
"base_abil": "Heal",
"parents": ["Healthier Ophanim I", "Transonic Warp"], "parents": ["Healthier Ophanim I", "Transonic Warp"],
"dependencies": [], "dependencies": [],
"blockers": [], "blockers": [],
@ -5142,6 +5141,7 @@ const atrees = {
{ {
"display_name": "Arcane Speed", "display_name": "Arcane Speed",
"desc": "After casting Heal or Arcane Transfer, gain +80% speed for 3s. (8s Cooldown)", "desc": "After casting Heal or Arcane Transfer, gain +80% speed for 3s. (8s Cooldown)",
"base_abil": "Heal",
"parents": ["Lightweaver", "Larger Mana Bank II"], "parents": ["Lightweaver", "Larger Mana Bank II"],
"dependencies": ["Heal"], "dependencies": ["Heal"],
"blockers": [], "blockers": [],

File diff suppressed because one or more lines are too long