2010-11-15, 11:33 PM
Fiel Wrote:Good luck figuring out variable names:
get_combo_damage_param
This code does answer one of the questions but I don't know enough to answer the other.
viz:
Pseudocode version of this:
Code:
get_combo_damage(job, attack, orbs) {
if (orbs < 1 | level_of_combo = 0) return 0;
v20 = get_combo_damage_per_orb;
if (level_of_adv_combo > 0) {
v20 += get_adv_combo_damage_per_orb;
v16 = advcomboid;
}
else
v16 = comboid;
v10 = getmaxorbs(v16); // uses skill id to decide which one to look up
if (orbs > v10)
orbs = v10
if (attack = 1111005 || attack = 1111003 || attack == something || attack == somethingelse) {
v13 = getlevel(job, attack, &attack);
if (v13 == 0)
return 0;
v20 += get_attack_damage_per_orb;
}
return orbs*v20 + 100;
}Or, in simpler terms,
Code:
get combo's bonus per orb
get adv. combo's bonus per orb
get skill specific bonus per orb
multiply by number of orbs
return total + 100I don't know what skills 1111005, 1111003, ((char *)_L269840 + 2, loc_A98A5B refer to, but they should all have a damage bonus in the data similar to how the orb bonus is listed.
Anyway, conclusion:
Advanced Combo does do 10% for every orb, for a total of 200% with 10 orbs.

