Merge branch 'atree' of https://github.com/hppeng-wynn/hppeng-wynn.github.io into atree-ui-tweaks
This commit is contained in:
commit
fa719927ee
9 changed files with 79 additions and 71 deletions
File diff suppressed because one or more lines are too long
114
clean.json
114
clean.json
|
@ -76176,8 +76176,8 @@
|
|||
"sdPct": 14,
|
||||
"mdPct": 14,
|
||||
"jh": 1,
|
||||
"mr": -1,
|
||||
"ms": -1
|
||||
"mr": -5,
|
||||
"ms": -5
|
||||
},
|
||||
{
|
||||
"hprRaw": 50,
|
||||
|
@ -76205,19 +76205,19 @@
|
|||
"bonuses": [
|
||||
{},
|
||||
{
|
||||
"ms": 1,
|
||||
"ms": 5,
|
||||
"dex": 2,
|
||||
"sdRaw": 15,
|
||||
"mdRaw": 5
|
||||
},
|
||||
{
|
||||
"ms": 1,
|
||||
"ms": 5,
|
||||
"dex": 6,
|
||||
"sdRaw": 35,
|
||||
"mdRaw": 10
|
||||
},
|
||||
{
|
||||
"ms": 3,
|
||||
"ms": 15,
|
||||
"dex": 20,
|
||||
"sdRaw": 65,
|
||||
"mdRaw": 70
|
||||
|
@ -76277,10 +76277,10 @@
|
|||
{},
|
||||
{},
|
||||
{
|
||||
"mr": 5,
|
||||
"mr": 25,
|
||||
"sdPct": 75,
|
||||
"mdPct": 75,
|
||||
"ms": 5,
|
||||
"ms": 25,
|
||||
"ls": 400,
|
||||
"hprRaw": 600
|
||||
}
|
||||
|
@ -76405,24 +76405,24 @@
|
|||
"bonuses": [
|
||||
{},
|
||||
{
|
||||
"mr": -1,
|
||||
"ms": 2,
|
||||
"mr": -5,
|
||||
"ms": 10,
|
||||
"sdRaw": 40,
|
||||
"wDamPct": 5,
|
||||
"tDamPct": 5,
|
||||
"eDamPct": -34
|
||||
},
|
||||
{
|
||||
"mr": -2,
|
||||
"ms": 4,
|
||||
"mr": -10,
|
||||
"ms": 20,
|
||||
"sdRaw": 115,
|
||||
"wDamPct": 10,
|
||||
"tDamPct": 10,
|
||||
"eDamPct": -67
|
||||
},
|
||||
{
|
||||
"mr": -3,
|
||||
"ms": 6,
|
||||
"mr": -15,
|
||||
"ms": 30,
|
||||
"sdRaw": 230,
|
||||
"wDamPct": 32,
|
||||
"tDamPct": 32,
|
||||
|
@ -76459,7 +76459,7 @@
|
|||
"spRegen": 15
|
||||
},
|
||||
{
|
||||
"mr": 2,
|
||||
"mr": 10,
|
||||
"sdPct": 25,
|
||||
"mdPct": 25,
|
||||
"xpb": 50,
|
||||
|
@ -76545,7 +76545,7 @@
|
|||
"bonuses": [
|
||||
{},
|
||||
{
|
||||
"mr": 2,
|
||||
"mr": 10,
|
||||
"xpb": 40,
|
||||
"def": 25,
|
||||
"fDamPct": 20,
|
||||
|
@ -76689,21 +76689,21 @@
|
|||
{},
|
||||
{
|
||||
"hprPct": -10,
|
||||
"mr": 1,
|
||||
"mr": 5,
|
||||
"sdPct": 6,
|
||||
"ref": 10,
|
||||
"thorns": 8
|
||||
},
|
||||
{
|
||||
"hprPct": -20,
|
||||
"mr": 2,
|
||||
"mr": 10,
|
||||
"sdPct": 14,
|
||||
"ref": 35,
|
||||
"thorns": 24
|
||||
},
|
||||
{
|
||||
"hprPct": -30,
|
||||
"mr": 4,
|
||||
"mr": 20,
|
||||
"sdPct": 30,
|
||||
"ref": 75,
|
||||
"thorns": 70
|
||||
|
@ -76719,9 +76719,9 @@
|
|||
{},
|
||||
{
|
||||
"mdPct": 30,
|
||||
"ms": 2,
|
||||
"ms": 10,
|
||||
"spd": 25,
|
||||
"spPct2": -40
|
||||
"spPct2": -28
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -76743,46 +76743,46 @@
|
|||
"lb": 5
|
||||
},
|
||||
{
|
||||
"mr": 1,
|
||||
"mr": 5,
|
||||
"xpb": 10,
|
||||
"lb": 10,
|
||||
"spRaw2": -1,
|
||||
"spRaw2": -5,
|
||||
"hpBonus": 125
|
||||
},
|
||||
{
|
||||
"mr": 1,
|
||||
"mr": 5,
|
||||
"xpb": 15,
|
||||
"lb": 15,
|
||||
"spRaw2": -1,
|
||||
"spRaw2": -5,
|
||||
"hpBonus": 425
|
||||
},
|
||||
{
|
||||
"mr": 2,
|
||||
"mr": 10,
|
||||
"xpb": 35,
|
||||
"lb": 35,
|
||||
"hpBonus": 1325,
|
||||
"spRaw2": -1,
|
||||
"spRaw4": -1
|
||||
"spRaw2": -5,
|
||||
"spRaw4": -5
|
||||
},
|
||||
{
|
||||
"mr": 2,
|
||||
"mr": 10,
|
||||
"xpb": 55,
|
||||
"lb": 55,
|
||||
"hpBonus": 2575,
|
||||
"spRaw2": -1,
|
||||
"spRaw4": -1
|
||||
"spRaw2": -5,
|
||||
"spRaw4": -5
|
||||
},
|
||||
{
|
||||
"mr": 3,
|
||||
"mr": 15,
|
||||
"xpb": 80,
|
||||
"lb": 80,
|
||||
"hpBonus": 4450,
|
||||
"spRaw1": -1,
|
||||
"spRaw2": -1,
|
||||
"spRaw4": -1
|
||||
"spRaw1": -5,
|
||||
"spRaw2": -5,
|
||||
"spRaw4": -5
|
||||
},
|
||||
{
|
||||
"mr": 4,
|
||||
"mr": 20,
|
||||
"xpb": 100,
|
||||
"lb": 100,
|
||||
"str": 15,
|
||||
|
@ -76791,10 +76791,10 @@
|
|||
"agi": 15,
|
||||
"def": 15,
|
||||
"hpBonus": 8270,
|
||||
"spRaw1": -1,
|
||||
"spRaw2": -1,
|
||||
"spRaw3": -1,
|
||||
"spRaw4": -1
|
||||
"spRaw1": -5,
|
||||
"spRaw2": -5,
|
||||
"spRaw3": -5,
|
||||
"spRaw4": -5
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -76816,8 +76816,8 @@
|
|||
"xpb": 25,
|
||||
"spRegen": 10,
|
||||
"sdPct": 8,
|
||||
"spPct1": -12,
|
||||
"spPct3": -12
|
||||
"spPct1": -8,
|
||||
"spPct3": -8
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -76858,11 +76858,11 @@
|
|||
"bonuses": [
|
||||
{},
|
||||
{
|
||||
"mr": 2,
|
||||
"mr": 10,
|
||||
"sdPct": 15,
|
||||
"mdPct": -15,
|
||||
"sdRaw": 30,
|
||||
"spPct2": -50
|
||||
"spPct2": -35
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -77126,7 +77126,7 @@
|
|||
"bonuses": [
|
||||
{},
|
||||
{
|
||||
"mr": 2,
|
||||
"mr": 10,
|
||||
"mdPct": -24,
|
||||
"int": 5,
|
||||
"wDamPct": 10,
|
||||
|
@ -77134,7 +77134,7 @@
|
|||
"wDefPct": 16
|
||||
},
|
||||
{
|
||||
"mr": 5,
|
||||
"mr": 25,
|
||||
"mdPct": -54,
|
||||
"int": 15,
|
||||
"wDamPct": 20,
|
||||
|
@ -77142,7 +77142,7 @@
|
|||
"wDefPct": 36
|
||||
},
|
||||
{
|
||||
"mr": 8,
|
||||
"mr": 40,
|
||||
"mdPct": -90,
|
||||
"int": 25,
|
||||
"wDamPct": 40,
|
||||
|
@ -77168,7 +77168,7 @@
|
|||
"aDefPct": 20,
|
||||
"tDefPct": 20,
|
||||
"eDefPct": 20,
|
||||
"ms": 1
|
||||
"ms": 5
|
||||
},
|
||||
{
|
||||
"xpb": 50,
|
||||
|
@ -77178,7 +77178,7 @@
|
|||
"aDefPct": 50,
|
||||
"tDefPct": 50,
|
||||
"eDefPct": 50,
|
||||
"ms": 2
|
||||
"ms": 10
|
||||
},
|
||||
{
|
||||
"xpb": 75,
|
||||
|
@ -77189,7 +77189,7 @@
|
|||
"tDefPct": 100,
|
||||
"eDefPct": 100,
|
||||
"sdPct": 40,
|
||||
"ms": 6
|
||||
"ms": 30
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -77203,7 +77203,7 @@
|
|||
"bonuses": [
|
||||
{},
|
||||
{
|
||||
"mr": 1,
|
||||
"mr": 5,
|
||||
"sdPct": -10,
|
||||
"mdPct": -15,
|
||||
"def": 7,
|
||||
|
@ -77212,7 +77212,7 @@
|
|||
"aDamPct": 15
|
||||
},
|
||||
{
|
||||
"mr": 3,
|
||||
"mr": 15,
|
||||
"sdPct": -20,
|
||||
"mdPct": -40,
|
||||
"def": 15,
|
||||
|
@ -77221,7 +77221,7 @@
|
|||
"aDamPct": 40
|
||||
},
|
||||
{
|
||||
"mr": 6,
|
||||
"mr": 30,
|
||||
"sdPct": -40,
|
||||
"mdPct": -85,
|
||||
"def": 40,
|
||||
|
@ -77283,7 +77283,7 @@
|
|||
"sdPct": -33,
|
||||
"mdPct": -33,
|
||||
"ls": 90,
|
||||
"ms": 2,
|
||||
"ms": 10,
|
||||
"sdRaw": 160,
|
||||
"mdRaw": 105,
|
||||
"atkTier": 1
|
||||
|
@ -77304,7 +77304,7 @@
|
|||
"hprRaw": 90
|
||||
},
|
||||
{
|
||||
"mr": 5,
|
||||
"mr": 25,
|
||||
"int": 20,
|
||||
"def": 20,
|
||||
"hpBonus": 1500,
|
||||
|
@ -77324,19 +77324,19 @@
|
|||
"bonuses": [
|
||||
{},
|
||||
{
|
||||
"mr": 1,
|
||||
"mr": 5,
|
||||
"xpb": 5,
|
||||
"lb": 10,
|
||||
"hpBonus": 55
|
||||
},
|
||||
{
|
||||
"mr": 2,
|
||||
"mr": 10,
|
||||
"xpb": 10,
|
||||
"lb": 25,
|
||||
"hpBonus": 170
|
||||
},
|
||||
{
|
||||
"mr": 4,
|
||||
"mr": 20,
|
||||
"xpb": 25,
|
||||
"lb": 50,
|
||||
"int": 20,
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -674,7 +674,7 @@ const atree_make_interactives = new (class extends ComputeNode {
|
|||
}
|
||||
else if (slider_behavior === 'merge') {
|
||||
slider_map.set(slider_name, {
|
||||
label_name: slider_name,
|
||||
label_name: slider_name+' ('+ability.display_name+')',
|
||||
max: slider_max,
|
||||
step: slider_step,
|
||||
id: "ability-slider"+ability.id,
|
||||
|
|
|
@ -823,8 +823,6 @@ const atrees = {
|
|||
{
|
||||
"display_name": "Escape Artist",
|
||||
"desc": "When casting Escape, release 120 arrows towards the ground.",
|
||||
"archetype": "Boltslinger",
|
||||
"archetype_req": 0,
|
||||
"base_abil": "Escape",
|
||||
"parents": [
|
||||
"Better Guardian Angels",
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1386,10 +1386,9 @@ function getSpellCost(stats, spell) {
|
|||
}
|
||||
|
||||
function getBaseSpellCost(stats, spell) {
|
||||
// old intelligence:
|
||||
let cost = Math.ceil(spell.cost * (1 - skillPointsToPercentage(stats.get('int')) * skillpoint_final_mult[2]));
|
||||
let cost = spell.cost * (1 - skillPointsToPercentage(stats.get('int')) * skillpoint_final_mult[2]);
|
||||
cost += stats.get("spRaw"+spell.base_spell);
|
||||
return Math.floor(cost * (1 + stats.get("spPct"+spell.base_spell) / 100));
|
||||
return cost * (1 + stats.get("spPct"+spell.base_spell) / 100);
|
||||
}
|
||||
|
||||
|
||||
|
@ -1408,7 +1407,7 @@ function displaySpellDamage(parent_elem, overallparent_elem, stats, spell, spell
|
|||
title_elem.appendChild(first.cloneNode(true)); //cloneNode is needed here.
|
||||
title_elemavg.appendChild(first);
|
||||
|
||||
let second = make_elem("span", ["Mana"], { textContent: getSpellCost(stats, spell) });
|
||||
let second = make_elem("span", ["Mana"], { textContent: getSpellCost(stats, spell).toFixed(2) });
|
||||
title_elem.appendChild(second.cloneNode(true));
|
||||
title_elemavg.appendChild(second);
|
||||
|
||||
|
@ -1425,7 +1424,6 @@ function displaySpellDamage(parent_elem, overallparent_elem, stats, spell, spell
|
|||
overallparent_elem.append(title_elemavg);
|
||||
|
||||
// if ('cost' in spell) {
|
||||
// :( ...... ?
|
||||
// overallparent_elem.append(displayNextCosts(stats, spell, spellIdx));
|
||||
// }
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const DB_VERSION = 99;
|
||||
const DB_VERSION = 100;
|
||||
// @See https://github.com/mdn/learning-area/blob/master/javascript/apis/client-side-storage/indexeddb/video-store/index.jsA
|
||||
|
||||
let db;
|
||||
|
|
|
@ -83,6 +83,18 @@ for item in old_items:
|
|||
#print(f'Unknown old item: {item["name"]}!!!')
|
||||
#old_items_map[item["name"]] = item
|
||||
|
||||
for set_name, set_info in old_data['sets'].items():
|
||||
for bonus in set_info['bonuses']:
|
||||
for k, v in mul_keys.items():
|
||||
if k in bonus:
|
||||
# SUPER JANKY ROUNDING
|
||||
tentimes = round(bonus[k] * v)
|
||||
rem = tentimes % 10
|
||||
val = math.floor(round_near(tentimes / 10))
|
||||
if rem >= 5:
|
||||
val += 1
|
||||
bonus[k] = val
|
||||
|
||||
for item in items:
|
||||
for key in delete_keys:
|
||||
if key in item:
|
||||
|
|
Loading…
Reference in a new issue