Update slider jsons
and update json updater script
This commit is contained in:
parent
9f2235e889
commit
4a1939b5a1
4 changed files with 36 additions and 41 deletions
10
js/atree.js
10
js/atree.js
|
@ -76,6 +76,10 @@ stat_scaling: {
|
|||
"slider": bool,
|
||||
"slider_name": Optional[str],
|
||||
"slider_step": Optional[float],
|
||||
slider_behavior: Optional[str] // One of: "merge", "modify". default: merge
|
||||
// merge: add if exist, make new part if not exist
|
||||
// modify: change existing part. do nothing if not exist
|
||||
slider_max: Optional[float] // affected by slider_behavior
|
||||
"inputs": Optional[list[scaling_target]],
|
||||
"output": scaling_target | List[scaling_target],
|
||||
"scaling": list[float],
|
||||
|
@ -564,8 +568,8 @@ const atree_collect_spells = new (class extends ComputeNode {
|
|||
* value: int // value for sliders; 0-1 for toggles
|
||||
* }
|
||||
*/
|
||||
const atree_make_actives = new (class extends ComputeNode {
|
||||
constructor() { super('atree-make-sliders'); }
|
||||
const atree_make_interactives = new (class extends ComputeNode {
|
||||
constructor() { super('atree-make-interactives'); }
|
||||
|
||||
compute_func(input_map) {
|
||||
const merged_abils = input_map.get('atree-merged');
|
||||
|
@ -575,6 +579,8 @@ const atree_make_actives = new (class extends ComputeNode {
|
|||
const slider_map = new Map();
|
||||
|
||||
// first, pull out all the sliders.
|
||||
for (const [abil_id, abil] of merged_abils.entries()) {
|
||||
}
|
||||
//add in slider(s)
|
||||
// for (const effect of ability.effects) {
|
||||
// if (effect['type'] === "stat_scaling" && effect['slider'] === true) {
|
||||
|
|
|
@ -1405,7 +1405,7 @@ const atrees = {
|
|||
"type": "raw_stat",
|
||||
"bonuses": [{
|
||||
"type": "stat",
|
||||
"name": "mdCritPct",
|
||||
"name": "critDamPct",
|
||||
"value": 30
|
||||
}]
|
||||
}]
|
||||
|
@ -1691,7 +1691,7 @@ const atrees = {
|
|||
"name": "damMult"
|
||||
},
|
||||
"scaling": [35],
|
||||
"max": 3
|
||||
"slider_max": 3
|
||||
}]
|
||||
},
|
||||
{
|
||||
|
@ -1713,12 +1713,12 @@ const atrees = {
|
|||
"type": "stat_scaling",
|
||||
"slider": true,
|
||||
"slider_name": "Focus",
|
||||
"slider_max": 2,
|
||||
"output": {
|
||||
"type": "stat",
|
||||
"name": "damMult"
|
||||
},
|
||||
"scaling": [30],
|
||||
"max": 5
|
||||
"scaling": [-5]
|
||||
}]
|
||||
},
|
||||
{
|
||||
|
@ -1740,12 +1740,12 @@ const atrees = {
|
|||
"type": "stat_scaling",
|
||||
"slider": true,
|
||||
"slider_name": "Focus",
|
||||
"slider_max": 2,
|
||||
"output": {
|
||||
"type": "stat",
|
||||
"name": "damMult"
|
||||
},
|
||||
"scaling": [25],
|
||||
"max": 7
|
||||
"scaling": [-5]
|
||||
}]
|
||||
},
|
||||
{
|
||||
|
@ -1798,13 +1798,13 @@ const atrees = {
|
|||
"type": "stat_scaling",
|
||||
"slider": true,
|
||||
"slider_name": "Trap Wait Time",
|
||||
"slider_max": 4,
|
||||
"output": {
|
||||
"type": "stat",
|
||||
"name": "damMult:Basaltic Trap"
|
||||
},
|
||||
"slider_step": 1,
|
||||
"scaling": [20],
|
||||
"max": 80
|
||||
"scaling": [20]
|
||||
}]
|
||||
},
|
||||
{
|
||||
|
@ -1828,12 +1828,7 @@ const atrees = {
|
|||
"type": "stat_scaling",
|
||||
"slider": true,
|
||||
"slider_name": "Trap Wait Time",
|
||||
"output": {
|
||||
"type": "stat",
|
||||
"name": "damMult:Basaltic Trap"
|
||||
},
|
||||
"scaling": [20],
|
||||
"max": 80
|
||||
"slider_max": 4
|
||||
},
|
||||
{
|
||||
"type": "raw_stat",
|
||||
|
@ -1966,12 +1961,12 @@ const atrees = {
|
|||
"type": "stat_scaling",
|
||||
"slider": true,
|
||||
"slider_name": "Phantom Ray hits",
|
||||
"slider_max": 5,
|
||||
"output": {
|
||||
"type": "stat",
|
||||
"name": "damMult:Single Arrow"
|
||||
},
|
||||
"scaling": 10,
|
||||
"max": 50
|
||||
"scaling": 10
|
||||
}]
|
||||
}
|
||||
],
|
||||
|
@ -2804,13 +2799,13 @@ const atrees = {
|
|||
"type": "stat_scaling",
|
||||
"slider": true,
|
||||
"slider_name": "Corrupted",
|
||||
"slider_max": 100,
|
||||
"slider_step": 1,
|
||||
"output": {
|
||||
"type": "stat",
|
||||
"name": "damRaw"
|
||||
},
|
||||
"scaling": [4],
|
||||
"slider_step": 1,
|
||||
"max": 120
|
||||
"scaling": [2]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -2984,19 +2979,12 @@ const atrees = {
|
|||
"effects": [
|
||||
{
|
||||
"type": "stat_scaling",
|
||||
"slider": false,
|
||||
"inputs": [
|
||||
{
|
||||
"type": "stat",
|
||||
"name": "hpBonus"
|
||||
}
|
||||
],
|
||||
"slider_name": "Corrupted",
|
||||
"output": {
|
||||
"type": "stat",
|
||||
"name": "damMult"
|
||||
},
|
||||
"scaling": [3],
|
||||
"max": 300
|
||||
"scaling": [3]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -3354,8 +3342,7 @@ const atrees = {
|
|||
"type": "stat",
|
||||
"name": "damRaw"
|
||||
},
|
||||
"scaling": [0.5],
|
||||
"max": 50
|
||||
"scaling": [0.5]
|
||||
},
|
||||
{
|
||||
"type": "raw_stat",
|
||||
|
@ -3753,7 +3740,7 @@ const atrees = {
|
|||
|
||||
{
|
||||
"display_name": "Discombobulate",
|
||||
"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 +3 (Additive, Max +80). This bonus decays -5 every second",
|
||||
"archetype": "Battle Monk",
|
||||
"archetype_req": 11,
|
||||
"parents": ["Cyclone"],
|
||||
|
@ -3772,6 +3759,7 @@ const atrees = {
|
|||
"type": "stat_scaling",
|
||||
"slider": true,
|
||||
"slider_name": "Hits dealt",
|
||||
"slider_max": 27,
|
||||
"output": [
|
||||
{ "type": "stat", "name": "eDamAddMin" }, { "type": "stat", "name": "eDamAddMax" },
|
||||
{ "type": "stat", "name": "tDamAddMin" }, { "type": "stat", "name": "tDamAddMax" },
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -45,13 +45,14 @@ def translate_id(id_data, atree_data):
|
|||
for _input in effect["inputs"]:
|
||||
if "abil" in _input and _input["abil"] in id_data[_class]:
|
||||
_input["abil"] = id_data[_class][_input["abil"]]
|
||||
if isinstance(effect["output"], list):
|
||||
for output in effect["output"]:
|
||||
if "abil" in output and output["abil"] in id_data[_class]:
|
||||
output["abil"] = id_data[_class][output["abil"]]
|
||||
else:
|
||||
if "abil" in effect["output"] and effect["output"]["abil"] in id_data[_class]:
|
||||
effect["output"]["abil"] = id_data[_class][effect["output"]["abil"]]
|
||||
if "output" in effect:
|
||||
if isinstance(effect["output"], list):
|
||||
for output in effect["output"]:
|
||||
if "abil" in output and output["abil"] in id_data[_class]:
|
||||
output["abil"] = id_data[_class][output["abil"]]
|
||||
else:
|
||||
if "abil" in effect["output"] and effect["output"]["abil"] in id_data[_class]:
|
||||
effect["output"]["abil"] = id_data[_class][effect["output"]["abil"]]
|
||||
|
||||
abilDict = {}
|
||||
with open("atree_constants.js") as f:
|
||||
|
|
Loading…
Reference in a new issue