Bugfixes (#243)
* Iron lungs and air shout damage fix * Fix updating bug (edit ID output did not update in the correct order... somehow this became a race condition?) * Sadly, reverting double totem display bug for now * Remove prints, add comment for graph jank Co-authored-by: hppeng <hppeng>
This commit is contained in:
parent
0e66c63cda
commit
cc7e5b6818
5 changed files with 21 additions and 7 deletions
File diff suppressed because one or more lines are too long
|
@ -3414,7 +3414,12 @@ const atrees = {
|
|||
"type": "add_spell_prop",
|
||||
"base_spell": 4,
|
||||
"target_part": "War Scream",
|
||||
"cost": 0,
|
||||
"multipliers": [30, 0, 0, 0, 0, 30]
|
||||
},
|
||||
{
|
||||
"type": "add_spell_prop",
|
||||
"base_spell": 4,
|
||||
"target_part": "Air Shout",
|
||||
"multipliers": [30, 0, 0, 0, 0, 30]
|
||||
}
|
||||
]
|
||||
|
@ -3457,6 +3462,14 @@ const atrees = {
|
|||
"base_spell": 4,
|
||||
"target_part": "Air Shout",
|
||||
"multipliers": [40, 0, 0, 0, 0, 10]
|
||||
},
|
||||
{
|
||||
"type": "add_spell_prop",
|
||||
"base_spell": 4,
|
||||
"target_part": "Total Damage",
|
||||
"hits": {
|
||||
"Air Shout": 1
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -550,7 +550,8 @@ function getDefenseStats(stats) {
|
|||
defenseStats.push(totalHpr);
|
||||
//EHPR
|
||||
let ehpr = [totalHpr, totalHpr];
|
||||
ehpr[0] /= (1-def_pct)*(1-agi_pct)*defMult;
|
||||
ehpr[0] = ehpr[0] / (0.1*agi_pct + (1-agi_pct) * (1-def_pct));
|
||||
ehpr[0] /= defMult;
|
||||
ehpr[1] /= (1-def_pct)*defMult;
|
||||
defenseStats.push(ehpr);
|
||||
//skp stats
|
||||
|
@ -952,7 +953,6 @@ class EditableIDSetterNode extends ComputeNode {
|
|||
for (const child of this.notify_nodes) {
|
||||
child.link_to(this);
|
||||
child.fail_cb = true;
|
||||
child.mark_input_clean(this.name, null);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -990,6 +990,7 @@ class SkillPointSetterNode extends ComputeNode {
|
|||
for (const child of this.notify_nodes) {
|
||||
child.link_to(this);
|
||||
child.fail_cb = true;
|
||||
// This is needed because initially there is a value mismatch possibly... due to setting skillpoints manually
|
||||
child.mark_input_clean(this.name, null);
|
||||
}
|
||||
}
|
||||
|
@ -1056,8 +1057,6 @@ function builder_graph_init(save_skp) {
|
|||
|
||||
// "Build" now only refers to equipment and level (no powders). Powders are injected before damage calculation / stat display.
|
||||
build_node = new BuildAssembleNode();
|
||||
for (const input of item_nodes) {
|
||||
}
|
||||
build_node.link_to(level_input);
|
||||
|
||||
let build_encode_node = new BuildEncodeNode();
|
||||
|
|
|
@ -155,6 +155,7 @@ class ValueCheckComputeNode extends ComputeNode {
|
|||
if (this.dirty === 0) {
|
||||
return this;
|
||||
}
|
||||
if (COMPUTE_GRAPH_DEBUG) { node_debug_stack.push(this.name); }
|
||||
|
||||
let calc_inputs = new Map();
|
||||
for (const input of this.inputs) {
|
||||
|
@ -170,6 +171,7 @@ class ValueCheckComputeNode extends ComputeNode {
|
|||
for (const child of this.children) {
|
||||
child.mark_input_clean(this.name, this.value);
|
||||
}
|
||||
if (COMPUTE_GRAPH_DEBUG) { node_debug_stack.pop(this.name); }
|
||||
return this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue