Hey guys. I wanted to change average bonus hit in items with addon_type = 1.
In item_addon.cpp i found:
int iSkillBonus = MINMAX(-30, (int) (gauss_random(0, 5) + 0.5f), 30);
Which probably say about -30, 30 range about skill damage bonus.
So now - I tried to change rigidly normal hit bonus.
int iSkillBonus = MINMAX(-30, (int) (gauss_random(0, 5) + 0.5f), 30);
int iNormalHitBonus = MINMAX(-20, (int) (gauss_random(0, 5) + 0.5f), 80);
Sometimes when I try to change attributes, i lost my average bonuses. Have you got any solutions?
For example I wanted to do:
-30, 30 range for skill bonus,
-20, 80 range for normal hit bonus.
Best regards.
@edit 23.08.2014 19:50
I guess problem solved. It was because of drawn "0". When you drawn 0 then your attributes change to another.