Bourbon 0 Posted August 18, 2015 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, Quote Share this post Link to post Share on other sites
0 Aeromesi 180 Posted August 19, 2015 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 Quote Share this post Link to post Share on other sites
0 Bourbon 0 Posted August 19, 2015 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. Quote Share this post Link to post Share on other sites
0 Noil 1 Posted August 19, 2015 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 1 Bourbon reacted to this Quote Share this post Link to post Share on other sites
0 Bourbon 0 Posted August 20, 2015 Thank you sir. Quote Share this post Link to post Share on other sites
0 Noil 1 Posted August 20, 2015 You are welcome Quote Share this post Link to post Share on other sites
0 Bourbon 0 Posted August 26, 2015 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? Quote Share this post Link to post Share on other sites
0 Bourbon 0 Posted August 27, 2015 Perhaps a location that specifies which skills are affected by thanatos or not. Quote Share this post Link to post Share on other sites
0 thor1009 9 Posted August 28, 2015 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 Quote Share this post Link to post Share on other sites
0 danielps 3 Posted December 8, 2016 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 Quote Share this post Link to post Share on other sites
0 Blinzer 6 Posted December 12, 2016 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. Quote Share this post Link to post Share on other sites
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