Commit 91a5571
Fix calculation when using Unexciting Runegraft (#9251)
I implemented the Unexciting mod incorrectly in the past making it negate any lucky or unlucky mod instead of applying the correct formula
Unexciting rolls three times and keeps the median result -> 3p^2 - 2p^3
This affects Block Chance, Suppress chance and crit chance
Also changed the sidebar for Block and Suppress chance to use 3 and 2 significant figures as when using azadi's crest for double lucky the block chance values can easily get to 99 and require more precision
Made sure so add a new handler that trims off 0 after the decimal so regular block builds don't show 75.000% block
Co-authored-by: LocalIdentity <[email protected]>1 parent 12da634 commit 91a5571
File tree
5 files changed
+37
-24
lines changed- src/Modules
5 files changed
+37
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1535 | 1535 | | |
1536 | 1536 | | |
1537 | 1537 | | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
| 1541 | + | |
1538 | 1542 | | |
1539 | 1543 | | |
1540 | 1544 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
163 | | - | |
| 162 | + | |
| 163 | + | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
720 | 720 | | |
721 | 721 | | |
722 | 722 | | |
723 | | - | |
724 | | - | |
725 | | - | |
726 | 723 | | |
727 | 724 | | |
728 | 725 | | |
729 | 726 | | |
730 | 727 | | |
731 | 728 | | |
732 | | - | |
733 | | - | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
734 | 735 | | |
735 | | - | |
| 736 | + | |
736 | 737 | | |
737 | 738 | | |
738 | 739 | | |
| |||
1096 | 1097 | | |
1097 | 1098 | | |
1098 | 1099 | | |
1099 | | - | |
1100 | | - | |
1101 | | - | |
1102 | 1100 | | |
1103 | 1101 | | |
1104 | 1102 | | |
1105 | 1103 | | |
1106 | 1104 | | |
1107 | 1105 | | |
1108 | | - | |
1109 | | - | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
1110 | 1112 | | |
1111 | | - | |
| 1113 | + | |
1112 | 1114 | | |
1113 | 1115 | | |
1114 | 1116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2882 | 2882 | | |
2883 | 2883 | | |
2884 | 2884 | | |
2885 | | - | |
2886 | | - | |
2887 | | - | |
2888 | 2885 | | |
2889 | | - | |
| 2886 | + | |
| 2887 | + | |
| 2888 | + | |
| 2889 | + | |
| 2890 | + | |
| 2891 | + | |
2890 | 2892 | | |
2891 | 2893 | | |
2892 | 2894 | | |
| |||
2921 | 2923 | | |
2922 | 2924 | | |
2923 | 2925 | | |
2924 | | - | |
2925 | | - | |
| 2926 | + | |
| 2927 | + | |
| 2928 | + | |
| 2929 | + | |
| 2930 | + | |
| 2931 | + | |
| 2932 | + | |
2926 | 2933 | | |
2927 | 2934 | | |
2928 | 2935 | | |
| |||
3154 | 3161 | | |
3155 | 3162 | | |
3156 | 3163 | | |
3157 | | - | |
| 3164 | + | |
3158 | 3165 | | |
3159 | 3166 | | |
3160 | 3167 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1600 | 1600 | | |
1601 | 1601 | | |
1602 | 1602 | | |
1603 | | - | |
| 1603 | + | |
1604 | 1604 | | |
1605 | 1605 | | |
1606 | 1606 | | |
| |||
1629 | 1629 | | |
1630 | 1630 | | |
1631 | 1631 | | |
1632 | | - | |
| 1632 | + | |
1633 | 1633 | | |
1634 | 1634 | | |
1635 | 1635 | | |
| |||
0 commit comments