How can I increase, in this code, the % of average and skill damage?
Code:
// SKILL BONUS:
int iSkillBonus = MINMAX(-30, (int) (gauss_random(0, 5) + 0.5f), 30);
// HIT BONUS (based on skill bonus)
int iNormalHitBonus = 0;
if (abs(iSkillBonus) <= 20)
iNormalHitBonus = -2 * iSkillBonus + abs(number(-8, 8) + number(-8, 8)) + number(1, 4);
else
iNormalHitBonus = -2 * iSkillBonus + number(1, 5);