Enkel Posted August 8, 2024 Posted August 8, 2024 Is there any chance we modify our damage output while doing Double Attack? Quote
0 Playtester Posted August 20, 2024 Posted August 20, 2024 In battle.cpp this is where the multi attack from TF_DOUBLE is triggered: if( rnd()%100 < max_rate ) { wd->div_ = skill_get_num(TF_DOUBLE,skill_lv?skill_lv:1); wd->type = DMG_MULTI_HIT; } But at this point the damage is not calculated yet. So I'm not fully sure how to best go about this. You could remember in a variable that this was applied and then add damage later on based on that. The code for renewal and pre-renewal is pretty different so the solution is also different in both cases. In renewal I think damage just get added on top, so you could actually just put the bonus damage in the damage variable here directly. But in pre-renewal, the calculation is reset when calling "battle_calc_skill_base_damage", so you'd need to add the damage after that. Quote
Question
Enkel
Is there any chance we modify our damage output while doing Double Attack?
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.