Jump to content
  • 0
Sign in to follow this  
Bourbon

Change/Restore Thanatos Effect Formula

Question

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,

Share this post


Link to post
Share on other sites

10 answers to this question

Recommended Posts

  • 0

Well from what I know just replace pre-re db with re db, or edit the renewal.h file in your src and only apply what you dont want or want with RE

Share this post


Link to post
Share on other sites
  • 0

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.

Share this post


Link to post
Share on other sites
  • 0

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

 

 

   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

 

Share this post


Link to post
Share on other sites
  • 0

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?

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites
  • 0

 

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.