Quantcast
Channel: Анал со зрелой
Viewing all articles
Browse latest Browse all 47

Path of Exile – Righteous Fire Calculator in Lua

$
0
0

Lately I’ve been playing Path of Exile and created a Righteous Fire character. Since it’s important to make sure you have enough life regeneration and fire resistance to play with Righteous Fire I wrote a stats calculator in Lua. Input a few values at the top paragraph (change values as necessary for your character), and then run the code here:

base_resist = 0.75
shield_resist = 0.08
tree_resist = 0.01
purity_of_fire_resist = 0.03
vitality_regen = 0.015
energy_shield = 500
life_total = 3754
life_regen_per_second = 430.8

resists = shield_resist + base_resist + tree_resist + purity_of_fire_resist
regen_needed = (0.9 * (1 - resists) + 0.7 * (1 - resists) * (energy_shield / life_total)) * 100
current_regen = (life_regen_per_second / life_total + vitality_regen) * 100

print( "Needed regen " .. regen_needed .. "%" )
print( "Current regen " .. current_regen .. "%" )
print( "Difference is " .. regen_needed - current_regen .. "%" )

if ( regen_needed - current_regen < 0 ) then
    print( "You can run Righteous Fire!" )
end

The trickier part is that Energy Shield contributes to the life degeneration of the player when running Righteous Fire.

TwitterRedditFacebookShare


Viewing all articles
Browse latest Browse all 47

Trending Articles