Skip to content

Commit

Permalink
Merge pull request dmdorman#786 from aeauseth/main
Browse files Browse the repository at this point in the history
5e STR updates lift notes for STR values under 5.  dmdorman#709
  • Loading branch information
aeauseth authored Mar 2, 2024
2 parents da949e9 + e5ae71c commit 3932303
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- Fixes for TELEKINESIS (TK punch/strike). [#780](https://github.com/dmdorman/hero6e-foundryvtt/issues/780)
- Effective STR specified as part of the attack is no longer ignored. Allows for attacks at less than full power, thus conserving END.
- Fixes for ENDURANCERESERVE. [#783](https://github.com/dmdorman/hero6e-foundryvtt/issues/783)
- 5e STR updates lift notes for STR values under 5. [#709](https://github.com/dmdorman/hero6e-foundryvtt/issues/709)

## Version 3.0.59

Expand Down
52 changes: 52 additions & 0 deletions module/actor/actor.js
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,58 @@ export class HeroSystem6eActor extends Actor {
}

if (this.system.is5e) {
if (value < -25) {
strLiftText = "0";
strRunningThrow = 0;
}
if (value >= -25 && value < -23) {
strLiftText = "0.8kg";
strRunningThrow = 1;
}
if (value >= -23 && value < -20) {
strLiftText = "1kg";
strRunningThrow = 1;
}
if (value >= -20 && value < -18) {
strLiftText = "1.6kg";
strRunningThrow = 1;
}
if (value >= -18 && value < -15) {
strLiftText = "2kg";
strRunningThrow = 1;
}
if (value >= -15 && value < -13) {
strLiftText = "3.2kg";
strRunningThrow = 1;
}
if (value >= -13 && value < -10) {
strLiftText = "4kg";
strRunningThrow = 1;
}
if (value >= -10 && value < -8) {
strLiftText = "6.4kg";
strRunningThrow = 1;
}
if (value >= -8 && value < -5) {
strLiftText = "8kg";
strRunningThrow = 2;
}
if (value >= -5 && value < -3) {
strLiftText = "12.5kg";
strRunningThrow = 2;
}
if (value >= -3 && value < 0) {
strLiftText = "16kg";
strRunningThrow = 3;
}
if (value >= 0 && value < 3) {
strLiftText = "25kg";
strRunningThrow = 4;
}
if (value >= 3 && value < 5) {
strLiftText = "37kg";
strRunningThrow = 6;
}
strRunningThrow /= 2;
}

Expand Down

0 comments on commit 3932303

Please sign in to comment.