Hi,
I want do that skill "SM_BASH" has damage x2 only when target have Vit = multiples by 5.
Then every 5,10,15,20,25,30,35,40,45,50,etc. Bash will deal damage x2.
My problem is how do that always read multiples, and not putting an infinity of numbers.
I don't want the following:
case MS_BASH: skillratio += 30 * skill_lv; if (tstatus->vit == 5||10||15||20||25||30||35||40||45||50||55||) //And infinity numbers... skillratio *= 2; break;
This metod is too tedious.
Any know how simplify this?
Regards ~ and sorry for my bad english
I want do that skill "SM_BASH" has damage x2 only when target have Vit = multiples by 5.
Then every 5,10,15,20,25,30,35,40,45,50,etc. Bash will deal damage x2.
My problem is how do that always read multiples, and not putting an infinity of numbers.
I don't want the following:
case MS_BASH: skillratio += 30 * skill_lv; if (tstatus->vit == 5||10||15||20||25||30||35||40||45||50||55||) //And infinity numbers... skillratio *= 2; break;
This metod is too tedious.
Any know how simplify this?
Regards ~ and sorry for my bad english