Skip to content

Commit

Permalink
* Use newly added function
Browse files Browse the repository at this point in the history
  • Loading branch information
kreuvf committed May 12, 2024
1 parent d104743 commit 54b1af9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Das_Schwarze_Auge_4-1/dev/js/regeneration.js
Original file line number Diff line number Diff line change
Expand Up @@ -503,10 +503,7 @@ on(statAttrs.map(attr => "change:" + attr.toLowerCase()).join(" "),
{
const principalStatValue = eventInfo.newValue;
var attrsToChange = {};
var AEBaseRegenerationRoll = parseInt(principalStatValue) / 3;
AEBaseRegenerationRoll = DSAround(AEBaseRegenerationRoll);
AEBaseRegenerationRoll = AEBaseRegenerationRoll.toString() + "d1";
attrsToChange["reg_sleep_ae_base"] = AEBaseRegenerationRoll;
attrsToChange["reg_sleep_ae_base"] = generateAEBaseMasterlyRegenerationRoll(principalStatValue);

debugLog(func, "attrsToChange", attrsToChange);
safeSetAttrs(attrsToChange);
Expand Down Expand Up @@ -581,8 +578,7 @@ on(astralRegenerationAttrs.map(attr => "change:" + attr.toLowerCase()).join(" ")
attrsToChange["sf_regeneration_i"] = "1";
attrsToChange["sf_regeneration_ii"] = "1";
attrsToChange["sf_meisterliche_regeneration"] = "1";
AEBaseRegenerationRoll = parseInt(mainStat) / 3;
AEBaseRegenerationRoll = DSAround(AEBaseRegenerationRoll).toString() + "d1";
AEBaseRegenerationRoll = generateAEBaseMasterlyRegenerationRoll(mainStat);
break;
}
attrsToChange["reg_sleep_ae_base"] = AEBaseRegenerationRoll;
Expand Down

0 comments on commit 54b1af9

Please sign in to comment.