From Dark and Darker Wiki
LaTex Formula. Can be pasted into Desmos for quick use of the graph, or another LaTex editor like Overleaf. Expand and Double click to select all.
M_{agicalDamageReduction}(M_{agicResistance})=\left\{-300 \le M_{agicResistance}<-15:-5.95+0.02\left|M_{agicResistance}--300\right|,-15 \le M_{agicResistance}<10:-0.25+0.01\left|M_{agicResistance}--15\right|,10 \le M_{agicResistance}<19:0+0.005\left|M_{agicResistance}-10\right|,19 \le M_{agicResistance}<30:0.045+0.004\left|M_{agicResistance}-19\right|,30 \le M_{agicResistance}<40:0.089+0.003\left|M_{agicResistance}-30\right|,40 \le M_{agicResistance}<50:0.119+0.002\left|M_{agicResistance}-40\right|,50 \le M_{agicResistance}<100:0.139+0.001\left|M_{agicResistance}-50\right|,100 \le M_{agicResistance}<150:0.189+0.002\left|M_{agicResistance}-100\right|,150 \le M_{agicResistance}<250:0.289+0.003\left|M_{agicResistance}-150\right|,250 \le M_{agicResistance}<350:0.589+0.002\left|M_{agicResistance}-250\right|,350 \le M_{agicResistance}<500:0.789+0.001\left|M_{agicResistance}-350\right|\right\}