Helliot1
Owner of Empire Online
- Joined
- Jul 26, 2017
- Messages
- 315
- Solutions
- 1
- Reaction score
- 58
Hello, in my server, the equipments and shields, have a defense like example: "arm: 172" "arm: 202", and I'm trying to reduce the defense and armor values for 10. To the real value be with a comma Like "arm: 17,2" "arm: 20,2"
I'm not trying to put a comma, But I'm trying to reduce the armor and shield values for 10!!
I'm having a lot of difficulty on it. I make these changes but it don't help in nothing. I'm using OTX3
Player.Cpp
I'm not trying to put a comma, But I'm trying to reduce the armor and shield values for 10!!
I'm having a lot of difficulty on it. I make these changes but it don't help in nothing. I'm using OTX3
Player.Cpp
C++:
defenseValue = static_cast<int32_t>(defenseValue * vocation->defenseMultiplier);
//return static_cast<int32_t>(std::ceil((static_cast<float>(defenseSkill * (defenseValue * 0.015)) + (defenseValue * 0.1)) * defenseFactor));
return static_cast<int32_t>(std::ceil((static_cast<float>(defenseSkill * ((defenseValue * 0.015) / 10)) + ((defenseValue * 0.1) / 10)) * defenseFactor));