- LvlDiff = ((Stats->Level - Enemy->Stats->Level) * .25);
100*0.25 = 25%
100/4 = 25%
its just a reversed formula
and 25% was used cos it was the most fitting number i would guess lol
Moderators: osRose dev team, ospRose dev team, osiRose dev team, Moderators
Planetary_Myth wrote:Thanks PurpleYouko you are saving me time from writing code that already exists.
I will see if I can find the code in question and add it to dev rev 2.
Fixed a mistake in battle.cpp code that would not let it compile.
code before
- LvlDiff = ((Stats->Level - Enemy->Stats->Level) * .25);
code now (replaced in first post as well)
- LvlDiff = (Stats->Level - Enemy->Stats->Level) / 4;
attack = Stats->Attack_Power - (Enemy->Stats->Magic_Defense / 2);
@ PurpleYouko
It was giving me a converting to int from double error which would be the .25
I guess I could use double but just dont want to use float.
Tryin to keep the math simple for speed.
Sousie wrote:Yes I know players do less damage now too, but its better than being killed by a gray monster while having 5500 def. Also i edited both magic and normal attack def. So far the damage with the / 2 instead of the / 15 is working much better. With the / 15 def meant nothing at all almost.
PurpleYouko wrote:Do you have the CONFIG values for player and monster damage set up in your server?
if you do then just edit the values in the database to give players a small boost.
Use something like 120 (X 1.2) instead of the default 100 (* 1.0)
Users browsing this forum: No registered users and 1 guest