* 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:
hppeng-wynn 2022-12-24 10:12:14 +00:00 committed by GitHub
parent 0e66c63cda
commit cc7e5b6818
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 21 additions and 7 deletions

File diff suppressed because one or more lines are too long

View file

@ -3414,7 +3414,12 @@ const atrees = {
"type": "add_spell_prop", "type": "add_spell_prop",
"base_spell": 4, "base_spell": 4,
"target_part": "War Scream", "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] "multipliers": [30, 0, 0, 0, 0, 30]
} }
] ]
@ -3457,6 +3462,14 @@ const atrees = {
"base_spell": 4, "base_spell": 4,
"target_part": "Air Shout", "target_part": "Air Shout",
"multipliers": [40, 0, 0, 0, 0, 10] "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

View file

@ -550,7 +550,8 @@ function getDefenseStats(stats) {
defenseStats.push(totalHpr); defenseStats.push(totalHpr);
//EHPR //EHPR
let ehpr = [totalHpr, totalHpr]; 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; ehpr[1] /= (1-def_pct)*defMult;
defenseStats.push(ehpr); defenseStats.push(ehpr);
//skp stats //skp stats
@ -952,7 +953,6 @@ class EditableIDSetterNode extends ComputeNode {
for (const child of this.notify_nodes) { for (const child of this.notify_nodes) {
child.link_to(this); child.link_to(this);
child.fail_cb = true; 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) { for (const child of this.notify_nodes) {
child.link_to(this); child.link_to(this);
child.fail_cb = true; 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); 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" now only refers to equipment and level (no powders). Powders are injected before damage calculation / stat display.
build_node = new BuildAssembleNode(); build_node = new BuildAssembleNode();
for (const input of item_nodes) {
}
build_node.link_to(level_input); build_node.link_to(level_input);
let build_encode_node = new BuildEncodeNode(); let build_encode_node = new BuildEncodeNode();

View file

@ -155,6 +155,7 @@ class ValueCheckComputeNode extends ComputeNode {
if (this.dirty === 0) { if (this.dirty === 0) {
return this; return this;
} }
if (COMPUTE_GRAPH_DEBUG) { node_debug_stack.push(this.name); }
let calc_inputs = new Map(); let calc_inputs = new Map();
for (const input of this.inputs) { for (const input of this.inputs) {
@ -170,6 +171,7 @@ class ValueCheckComputeNode extends ComputeNode {
for (const child of this.children) { for (const child of this.children) {
child.mark_input_clean(this.name, this.value); child.mark_input_clean(this.name, this.value);
} }
if (COMPUTE_GRAPH_DEBUG) { node_debug_stack.pop(this.name); }
return this; return this;
} }