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": bool,
|
||||||
"slider_name": Optional[str],
|
"slider_name": Optional[str],
|
||||||
"slider_step": Optional[float],
|
"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]],
|
"inputs": Optional[list[scaling_target]],
|
||||||
"output": scaling_target | List[scaling_target],
|
"output": scaling_target | List[scaling_target],
|
||||||
"scaling": list[float],
|
"scaling": list[float],
|
||||||
|
@ -564,8 +568,8 @@ const atree_collect_spells = new (class extends ComputeNode {
|
||||||
* value: int // value for sliders; 0-1 for toggles
|
* value: int // value for sliders; 0-1 for toggles
|
||||||
* }
|
* }
|
||||||
*/
|
*/
|
||||||
const atree_make_actives = new (class extends ComputeNode {
|
const atree_make_interactives = new (class extends ComputeNode {
|
||||||
constructor() { super('atree-make-sliders'); }
|
constructor() { super('atree-make-interactives'); }
|
||||||
|
|
||||||
compute_func(input_map) {
|
compute_func(input_map) {
|
||||||
const merged_abils = input_map.get('atree-merged');
|
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();
|
const slider_map = new Map();
|
||||||
|
|
||||||
// first, pull out all the sliders.
|
// first, pull out all the sliders.
|
||||||
|
for (const [abil_id, abil] of merged_abils.entries()) {
|
||||||
|
}
|
||||||
//add in slider(s)
|
//add in slider(s)
|
||||||
// for (const effect of ability.effects) {
|
// for (const effect of ability.effects) {
|
||||||
// if (effect['type'] === "stat_scaling" && effect['slider'] === true) {
|
// if (effect['type'] === "stat_scaling" && effect['slider'] === true) {
|
||||||
|
|
|
@ -1405,7 +1405,7 @@ const atrees = {
|
||||||
"type": "raw_stat",
|
"type": "raw_stat",
|
||||||
"bonuses": [{
|
"bonuses": [{
|
||||||
"type": "stat",
|
"type": "stat",
|
||||||
"name": "mdCritPct",
|
"name": "critDamPct",
|
||||||
"value": 30
|
"value": 30
|
||||||
}]
|
}]
|
||||||
}]
|
}]
|
||||||
|
@ -1691,7 +1691,7 @@ const atrees = {
|
||||||
"name": "damMult"
|
"name": "damMult"
|
||||||
},
|
},
|
||||||
"scaling": [35],
|
"scaling": [35],
|
||||||
"max": 3
|
"slider_max": 3
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -1713,12 +1713,12 @@ const atrees = {
|
||||||
"type": "stat_scaling",
|
"type": "stat_scaling",
|
||||||
"slider": true,
|
"slider": true,
|
||||||
"slider_name": "Focus",
|
"slider_name": "Focus",
|
||||||
|
"slider_max": 2,
|
||||||
"output": {
|
"output": {
|
||||||
"type": "stat",
|
"type": "stat",
|
||||||
"name": "damMult"
|
"name": "damMult"
|
||||||
},
|
},
|
||||||
"scaling": [30],
|
"scaling": [-5]
|
||||||
"max": 5
|
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -1740,12 +1740,12 @@ const atrees = {
|
||||||
"type": "stat_scaling",
|
"type": "stat_scaling",
|
||||||
"slider": true,
|
"slider": true,
|
||||||
"slider_name": "Focus",
|
"slider_name": "Focus",
|
||||||
|
"slider_max": 2,
|
||||||
"output": {
|
"output": {
|
||||||
"type": "stat",
|
"type": "stat",
|
||||||
"name": "damMult"
|
"name": "damMult"
|
||||||
},
|
},
|
||||||
"scaling": [25],
|
"scaling": [-5]
|
||||||
"max": 7
|
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -1798,13 +1798,13 @@ const atrees = {
|
||||||
"type": "stat_scaling",
|
"type": "stat_scaling",
|
||||||
"slider": true,
|
"slider": true,
|
||||||
"slider_name": "Trap Wait Time",
|
"slider_name": "Trap Wait Time",
|
||||||
|
"slider_max": 4,
|
||||||
"output": {
|
"output": {
|
||||||
"type": "stat",
|
"type": "stat",
|
||||||
"name": "damMult:Basaltic Trap"
|
"name": "damMult:Basaltic Trap"
|
||||||
},
|
},
|
||||||
"slider_step": 1,
|
"slider_step": 1,
|
||||||
"scaling": [20],
|
"scaling": [20]
|
||||||
"max": 80
|
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -1828,12 +1828,7 @@ const atrees = {
|
||||||
"type": "stat_scaling",
|
"type": "stat_scaling",
|
||||||
"slider": true,
|
"slider": true,
|
||||||
"slider_name": "Trap Wait Time",
|
"slider_name": "Trap Wait Time",
|
||||||
"output": {
|
"slider_max": 4
|
||||||
"type": "stat",
|
|
||||||
"name": "damMult:Basaltic Trap"
|
|
||||||
},
|
|
||||||
"scaling": [20],
|
|
||||||
"max": 80
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "raw_stat",
|
"type": "raw_stat",
|
||||||
|
@ -1966,12 +1961,12 @@ const atrees = {
|
||||||
"type": "stat_scaling",
|
"type": "stat_scaling",
|
||||||
"slider": true,
|
"slider": true,
|
||||||
"slider_name": "Phantom Ray hits",
|
"slider_name": "Phantom Ray hits",
|
||||||
|
"slider_max": 5,
|
||||||
"output": {
|
"output": {
|
||||||
"type": "stat",
|
"type": "stat",
|
||||||
"name": "damMult:Single Arrow"
|
"name": "damMult:Single Arrow"
|
||||||
},
|
},
|
||||||
"scaling": 10,
|
"scaling": 10
|
||||||
"max": 50
|
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@ -2804,13 +2799,13 @@ const atrees = {
|
||||||
"type": "stat_scaling",
|
"type": "stat_scaling",
|
||||||
"slider": true,
|
"slider": true,
|
||||||
"slider_name": "Corrupted",
|
"slider_name": "Corrupted",
|
||||||
|
"slider_max": 100,
|
||||||
|
"slider_step": 1,
|
||||||
"output": {
|
"output": {
|
||||||
"type": "stat",
|
"type": "stat",
|
||||||
"name": "damRaw"
|
"name": "damRaw"
|
||||||
},
|
},
|
||||||
"scaling": [4],
|
"scaling": [2]
|
||||||
"slider_step": 1,
|
|
||||||
"max": 120
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -2984,19 +2979,12 @@ const atrees = {
|
||||||
"effects": [
|
"effects": [
|
||||||
{
|
{
|
||||||
"type": "stat_scaling",
|
"type": "stat_scaling",
|
||||||
"slider": false,
|
"slider_name": "Corrupted",
|
||||||
"inputs": [
|
|
||||||
{
|
|
||||||
"type": "stat",
|
|
||||||
"name": "hpBonus"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"output": {
|
"output": {
|
||||||
"type": "stat",
|
"type": "stat",
|
||||||
"name": "damMult"
|
"name": "damMult"
|
||||||
},
|
},
|
||||||
"scaling": [3],
|
"scaling": [3]
|
||||||
"max": 300
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -3354,8 +3342,7 @@ const atrees = {
|
||||||
"type": "stat",
|
"type": "stat",
|
||||||
"name": "damRaw"
|
"name": "damRaw"
|
||||||
},
|
},
|
||||||
"scaling": [0.5],
|
"scaling": [0.5]
|
||||||
"max": 50
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "raw_stat",
|
"type": "raw_stat",
|
||||||
|
@ -3753,7 +3740,7 @@ const atrees = {
|
||||||
|
|
||||||
{
|
{
|
||||||
"display_name": "Discombobulate",
|
"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": "Battle Monk",
|
||||||
"archetype_req": 11,
|
"archetype_req": 11,
|
||||||
"parents": ["Cyclone"],
|
"parents": ["Cyclone"],
|
||||||
|
@ -3772,6 +3759,7 @@ const atrees = {
|
||||||
"type": "stat_scaling",
|
"type": "stat_scaling",
|
||||||
"slider": true,
|
"slider": true,
|
||||||
"slider_name": "Hits dealt",
|
"slider_name": "Hits dealt",
|
||||||
|
"slider_max": 27,
|
||||||
"output": [
|
"output": [
|
||||||
{ "type": "stat", "name": "eDamAddMin" }, { "type": "stat", "name": "eDamAddMax" },
|
{ "type": "stat", "name": "eDamAddMin" }, { "type": "stat", "name": "eDamAddMax" },
|
||||||
{ "type": "stat", "name": "tDamAddMin" }, { "type": "stat", "name": "tDamAddMax" },
|
{ "type": "stat", "name": "tDamAddMin" }, { "type": "stat", "name": "tDamAddMax" },
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -45,6 +45,7 @@ def translate_id(id_data, atree_data):
|
||||||
for _input in effect["inputs"]:
|
for _input in effect["inputs"]:
|
||||||
if "abil" in _input and _input["abil"] in id_data[_class]:
|
if "abil" in _input and _input["abil"] in id_data[_class]:
|
||||||
_input["abil"] = id_data[_class][_input["abil"]]
|
_input["abil"] = id_data[_class][_input["abil"]]
|
||||||
|
if "output" in effect:
|
||||||
if isinstance(effect["output"], list):
|
if isinstance(effect["output"], list):
|
||||||
for output in effect["output"]:
|
for output in effect["output"]:
|
||||||
if "abil" in output and output["abil"] in id_data[_class]:
|
if "abil" in output and output["abil"] in id_data[_class]:
|
||||||
|
|
Loading…
Reference in a new issue