Change/Restore Thanatos Effect Formula

Bourbon

New member
Messages
20
Points
0
Emulator
Hello, I need help on editing the thanatos effect formula in Renewal.

I would like to stay in renewal mode, but keep the old formula from pre-renewal.

Any pointers on where this is located and how to go about changing it?

Thank you,

 
the renewal file does not have any line that changes specifically the thanatos effect.

I am looking for the exact location of the formula that defines the atk/def ratio script that is applied in the DB.

I feel like it is most likely in src, but do not know where.

 
As you replied to the other post you know that these settings are housed in src/map/battle.c lines 1381- 1414

Code:
   1381                         if (battle_config.weapon_defense_type) {   1382                                 vit_def += def1*battle_config.weapon_defense_type;   1383                                 def1 = 0;   1384                         }   1385                 #ifdef RENEWAL   1386                         /**   1387                         * RE DEF Reduction   1388                         * Pierce defense gains 1 atk per def/2   1389                         **/   1390   1391                         if( def1 < -399 ) // it stops at -399   1392                                 def1 = 399; // in aegis it set to 1 but in our case it may lead to exploitation so limit it to 399   1393                                 //return 1;   1394   1395                         if( flag&2 )   1396                                 damage += def1 >> 1;   1397   1398                         if( !(flag&1) && !(flag&2) ) {   1399                                 if( flag&4 )   1400                                         damage -= (def1 + vit_def);   1401                                 else   1402                                         damage = (int)((100.0f - def1 / (def1 + 400.0f) * 90.0f) / 100.0f * damage - vit_def);   1403                         }   1404                 #else   1405                                 if( def1 > 100 ) def1 = 100;   1406                                 if( !(flag&1) ){   1407                                         if( flag&2 )   1408                                                 damage = damage * pdef * (def1+vit_def) / 100;   1409                                         else   1410                                                 damage = damage * (100-def1) / 100;   1411                                 }   1412                                 if( !(flag&1 || flag&2) )   1413                                         damage -= vit_def;   1414                 #endif
 
You are welcome
default_smile.png


 
I've tried the fix above and it worked wonders as far as restoring the thanatos effect on auto attacks.

However, it seems that it doesn't affect skills like Soul Breaker, as it should and used to pre-renewal.

Is there a location to configure that?

 
Perhaps a location that specifies which skills are affected by thanatos or not.

 
Perhaps a location that specifies which skills are affected by thanatos or not.
Thanatos effect is calculated in the defense reduction function (calc_defense).

I think many (if not all) misc type skills like Soul Breaker ignore defense, and won't call that function

So thanatos has no effect to these skills

 
I've tried the fix above and it worked wonders as far as restoring the thanatos effect on auto attacks.

However, it seems that it doesn't affect skills like Soul Breaker, as it should and used to pre-renewal.

Is there a location to configure that?
Are your thanatos card and ice pick working?

Could you please do some tests with the card?

My thanatos card is not working, i'm using the lastest vers. of herc =/

thanks

 
Perhaps a location that specifies which skills are affected by thanatos or not.
Thanatos effect is calculated in the defense reduction function (calc_defense).

I think many (if not all) misc type skills like Soul Breaker ignore defense, and won't call that function

So thanatos has no effect to these skills

you're half right, as half of the skill completely ignores defense. the physical component of soul breaker should be able to scale with thanatos card in pre-re. in re, you have to make changes to battle.c and skill.c to match the pre-re stuff if you want it to be like that.

 
Back
Top