have a slightly lower pivot point to avoid negative values since most resistibility is set to >=.65
This commit is contained in:
parent
e1a02a3ef7
commit
14b0a118d6
@ -807,7 +807,7 @@ int8 Entity::DetermineHit(Spawn* victim, int8 type, int8 damage_type, float ToHi
|
|||||||
|
|
||||||
if(is_caster_spell && lua_spell) {
|
if(is_caster_spell && lua_spell) {
|
||||||
if(lua_spell->spell->GetSpellData()->resistibility > 0) {
|
if(lua_spell->spell->GetSpellData()->resistibility > 0) {
|
||||||
float pivot = 0.7f; // Central resistibility point (we seem to have .65 - .75 for our resistability usually)
|
float pivot = 0.6f; // Central resistibility point (we seem to have .65 - .75 for our resistability usually)
|
||||||
float scale_factor = 2.0f; // steepness control
|
float scale_factor = 2.0f; // steepness control
|
||||||
|
|
||||||
// Clamps to avoid extreme values
|
// Clamps to avoid extreme values
|
||||||
|
Loading…
x
Reference in New Issue
Block a user