Math Question- Balancing when self-damage is involved

So I have a general math question, for anyone that likes that stuff. Normally, when balancing powers out, if an attack does half damage, you would double something else to make it balanced to other moves (like doubling its accuracy). But right now, I'm building a move that has a chance to hurt the user the lower their stat is. So let's say we have a giant hammer, and it's big enough for anyone to pick up, but the lower a person's strength, the more the hammer falls on them and injures them. How would you balance a move like this with a standard that always does the same damage? Let's play with some random numbers:

Normal Move:

100 damage, 100% accuracy all the time.

Giant Hammer:

100 damage +bonus damage (to be determined), 100% accuracy when attacking, but if strength is lower than 100 points, every strength point that is missing from 100 adds 1% chance for a person to hit themselves with the attack instead of the enemy.

If Giant hammer had 100 norm + 300 bonus damage per attack, someone with 50 strength would have a 50% chance to hit themselves for 400 damage.


My biggest dilemma is that for someone who min-maxes, a move like this would always hit hard, but for an average player, some of the time they are taking damage, and there may be times where the move is not worth it all. Since all players taking the move might suffer a little while they get their strength stat up, I'm trying to find a mathematical model that might show the balance of the move overall compared to other moves. Obviously, at 100 strength, it far outshines the normal move, but that doesn't account for all the time that a player isn't at 100 strength.

Do y'all think I would just have to come up with a number for how long the average player isn't at 100 strength? I know that won't account for non-min-max players, but perhaps it would be something?

(Note: Those numbers aren't my actual numbers, just an example.)
When you're involving a chance, you're also asking for a psychological question. I recall an article in another game (in which the game relies on luck). If the player is 50% lucky/unlucky, they feel that would be unfair. They found that if the player is lucky 80% of the time, they feel like it is fair. So we can try to get that number.

So let's answer the problem. I will present you with a wonderful formula for that. We are going to twist the easings formula (found here: https://easings.net/ ) to solve that problem.

Known:
Strength to full accuracy = 100
This means str 0 for zero accuracies and 100 to have the full accuracy, which is simple enough for our case. We are trying to get what number in between.

Let's get to work. Look at the easing functions. Look for easeOutSOMETHING.
If you want a very sharp increase at a lower value, for example, you can use easeOutExpo.

The formula given in the site is this
Code:
function easeOutExpo(x: number): number {
   return x === 1 ? 1 : 1 - pow(2, -10 * x);
}
If we convert it to javascript, it is going to be like this
JavaScript:
function easeOutExpo(x) {
   return x === 1 ? 1 : 1 - Math.pow(2, -10 * x);
}

Then let's test it in the browser console.
JavaScript:
function easeOutExpo(x) {
   return x === 1 ? 1 : 1 - Math.pow(2, -10 * x);
}
for(let i = 1; i <= 100; i++)
  console.log(`STR = ${i} | accuracy = ${(easeOutExpo(i/100)) * 100}`)

Then it would print something like
Spoiler
Code:
VM651:2 STR = 1 | accuracy = 6.696700846319259
VM651:2 STR = 2 | accuracy = 12.944943670387588
VM651:2 STR = 3 | accuracy = 18.77476036437644
VM651:2 STR = 4 | accuracy = 24.2141716744801
VM651:2 STR = 5 | accuracy = 29.289321881345252
VM651:2 STR = 6 | accuracy = 34.02460446135529
VM651:2 STR = 7 | accuracy = 38.442779332754185
VM651:2 STR = 8 | accuracy = 42.56508225014826
VM651:2 STR = 9 | accuracy = 46.411326873185345
VM651:2 STR = 10 | accuracy = 50
VM651:2 STR = 11 | accuracy = 53.34835042315963
VM651:2 STR = 12 | accuracy = 56.472471835193794
VM651:2 STR = 13 | accuracy = 59.38738018218823
VM651:2 STR = 14 | accuracy = 62.10708583724005
VM651:2 STR = 15 | accuracy = 64.64466094067262
VM651:2 STR = 16 | accuracy = 67.01230223067765
VM651:2 STR = 17 | accuracy = 69.22138966637709
VM651:2 STR = 18 | accuracy = 71.28254112507413
VM651:2 STR = 19 | accuracy = 73.20566343659267
VM651:2 STR = 20 | accuracy = 75
VM651:2 STR = 21 | accuracy = 76.67417521157982
VM651:2 STR = 22 | accuracy = 78.2362359175969
VM651:2 STR = 23 | accuracy = 79.69369009109411
VM651:2 STR = 24 | accuracy = 81.05354291862002
VM651:2 STR = 25 | accuracy = 82.32233047033631
VM651:2 STR = 26 | accuracy = 83.50615111533882
VM651:2 STR = 27 | accuracy = 84.61069483318855
VM651:2 STR = 28 | accuracy = 85.64127056253706
VM651:2 STR = 29 | accuracy = 86.60283171829633
VM651:2 STR = 30 | accuracy = 87.5
VM651:2 STR = 31 | accuracy = 88.3370876057899
VM651:2 STR = 32 | accuracy = 89.11811795879845
VM651:2 STR = 33 | accuracy = 89.84684504554706
VM651:2 STR = 34 | accuracy = 90.52677145931001
VM651:2 STR = 35 | accuracy = 91.16116523516816
VM651:2 STR = 36 | accuracy = 91.7530755576694
VM651:2 STR = 37 | accuracy = 92.30534741659427
VM651:2 STR = 38 | accuracy = 92.82063528126852
VM651:2 STR = 39 | accuracy = 93.30141585914818
VM651:2 STR = 40 | accuracy = 93.75
VM651:2 STR = 41 | accuracy = 94.16854380289496
VM651:2 STR = 42 | accuracy = 94.55905897939923
VM651:2 STR = 43 | accuracy = 94.92342252277352
VM651:2 STR = 44 | accuracy = 95.263385729655
VM651:2 STR = 45 | accuracy = 95.58058261758407
VM651:2 STR = 46 | accuracy = 95.8765377788347
VM651:2 STR = 47 | accuracy = 96.15267370829713
VM651:2 STR = 48 | accuracy = 96.41031764063428
VM651:2 STR = 49 | accuracy = 96.65070792957408
VM651:2 STR = 50 | accuracy = 96.875
VM651:2 STR = 51 | accuracy = 97.08427190144747
VM651:2 STR = 52 | accuracy = 97.27952948969961
VM651:2 STR = 53 | accuracy = 97.46171126138677
VM651:2 STR = 54 | accuracy = 97.6316928648275
VM651:2 STR = 55 | accuracy = 97.79029130879205
VM651:2 STR = 56 | accuracy = 97.93826888941736
VM651:2 STR = 57 | accuracy = 98.07633685414856
VM651:2 STR = 58 | accuracy = 98.20515882031712
VM651:2 STR = 59 | accuracy = 98.32535396478704
VM651:2 STR = 60 | accuracy = 98.4375
VM651:2 STR = 61 | accuracy = 98.54213595072375
VM651:2 STR = 62 | accuracy = 98.63976474484981
VM651:2 STR = 63 | accuracy = 98.73085563069338
VM651:2 STR = 64 | accuracy = 98.81584643241375
VM651:2 STR = 65 | accuracy = 98.89514565439602
VM651:2 STR = 66 | accuracy = 98.96913444470867
VM651:2 STR = 67 | accuracy = 99.03816842707428
VM651:2 STR = 68 | accuracy = 99.10257941015857
VM651:2 STR = 69 | accuracy = 99.16267698239352
VM651:2 STR = 70 | accuracy = 99.21875
VM651:2 STR = 71 | accuracy = 99.27106797536187
VM651:2 STR = 72 | accuracy = 99.3198823724249
VM651:2 STR = 73 | accuracy = 99.36542781534669
VM651:2 STR = 74 | accuracy = 99.40792321620687
VM651:2 STR = 75 | accuracy = 99.447572827198
VM651:2 STR = 76 | accuracy = 99.48456722235434
VM651:2 STR = 77 | accuracy = 99.51908421353714
VM651:2 STR = 78 | accuracy = 99.55128970507928
VM651:2 STR = 79 | accuracy = 99.58133849119676
VM651:2 STR = 80 | accuracy = 99.609375
VM651:2 STR = 81 | accuracy = 99.63553398768093
VM651:2 STR = 82 | accuracy = 99.65994118621245
VM651:2 STR = 83 | accuracy = 99.68271390767335
VM651:2 STR = 84 | accuracy = 99.70396160810344
VM651:2 STR = 85 | accuracy = 99.723786413599
VM651:2 STR = 86 | accuracy = 99.74228361117717
VM651:2 STR = 87 | accuracy = 99.75954210676858
VM651:2 STR = 88 | accuracy = 99.77564485253964
VM651:2 STR = 89 | accuracy = 99.79066924559838
VM651:2 STR = 90 | accuracy = 99.8046875
VM651:2 STR = 91 | accuracy = 99.81776699384046
VM651:2 STR = 92 | accuracy = 99.82997059310622
VM651:2 STR = 93 | accuracy = 99.84135695383667
VM651:2 STR = 94 | accuracy = 99.85198080405172
VM651:2 STR = 95 | accuracy = 99.86189320679951
VM651:2 STR = 96 | accuracy = 99.87114180558858
VM651:2 STR = 97 | accuracy = 99.87977105338427
VM651:2 STR = 98 | accuracy = 99.88782242626982
VM651:2 STR = 99 | accuracy = 99.8953346227992
VM651:2 STR = 100 | accuracy = 100
So, even at STR stat 50, it has 96 accuracy!

Original thread: https://forums.rpgmakerweb.com/threads/math-question-balancing-when-self-damage-is-involved.143485/