Untitled

 avatar
unknown
plain_text
2 years ago
261 B
2
Indexable
def reduction(dmg, flat, percent, steps):
    for s in range(steps):
        percentage_left = 1 - (1-((100 - percent/steps)/100))*s

        dmg = np.clip(dmg * (100-percent/steps/percentage_left)/100 - flat/steps, 0, np.inf)
    return np.around(dmg, 10)
Editor is loading...