Hello
Currently I´m trying to implement a level system but I can´t increase any stats only life and mana.
Every time I call my function in my class, that interihance ModPlayer, I want to increase the maximum life and melee damage multiplier.
The function is called every time I enter a chat command like:
/skill str
Code:
player.statLife += 20;
player.statLifeMax += 20;
player.statLifeMax2 += 20;
player.meleeDamage *= 1.2f;
The problem is that he increases the maximum hp but the melee damage remains unaffected.
I also tried with many other [player.*] properties but only the following properties are working:
Code:
player.statLife += 20;
player.statLifeMax += 20;
player.statLifeMax2 += 20;
player.statMana += 10;
player.statManaMax += 10;
player.statManaMax2 += 10;
Other properties do nothing like:
Code:
player.rangedDamage += 0.1f;
player.magicDamage += 0.1f;
player.meleeSpeed += 0.1f;
player.meleeDamage += 0.1f;