Fix raw stat bonus applying

This commit is contained in:
hppeng 2022-07-05 23:55:47 -07:00
parent e4d7a42a50
commit d59cdfc611

View file

@ -561,7 +561,7 @@ const atree_stats = new (class extends ComputeNode {
case 'raw_stat': case 'raw_stat':
// TODO: toggles... // TODO: toggles...
for (const bonus of effect.bonuses) { for (const bonus of effect.bonuses) {
const { type, name, abil = "", value } = effect; const { type, name, abil = "", value } = bonus;
// TODO: prop // TODO: prop
if (type === "stat") { if (type === "stat") {
if (ret_effects.has(name)) { ret_effects.set(name, ret_effects.get(name) + value); } if (ret_effects.has(name)) { ret_effects.set(name, ret_effects.get(name) + value); }