diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-06-14 20:10:36 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-06-14 20:10:36 +0000 |
commit | 848708ccba75077e519c745cf036f5ddb594ad50 (patch) | |
tree | 4b5bcfda86a688b29f6bdddb7c8c5f1be9bbbf63 /src/map/battle.c | |
parent | 1f9da81c0d78cebcc74a189c97b2350ae01bf621 (diff) | |
download | hercules-848708ccba75077e519c745cf036f5ddb594ad50.tar.gz hercules-848708ccba75077e519c745cf036f5ddb594ad50.tar.bz2 hercules-848708ccba75077e519c745cf036f5ddb594ad50.tar.xz hercules-848708ccba75077e519c745cf036f5ddb594ad50.zip |
- Modified how luk reduces status changes by reducing the gap. Eg: resist = vit; resist += (max - resist)*luk/300;
- Added battle settings pc_max_sc_luk/mob_max_sc_luk to handle which is the luk threshold at which you gain inmunity (defaults to 300).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7168 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r-- | src/map/battle.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index c9245e7fa..7ca35dc6e 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -3560,6 +3560,8 @@ static const struct battle_data_short { { "status_cast_cancel", &battle_config.sc_castcancel }, { "pc_status_def_rate", &battle_config.pc_sc_def_rate }, { "mob_status_def_rate", &battle_config.mob_sc_def_rate }, + { "pc_luk_status_def", &battle_config.pc_luk_sc_def }, + { "mob_luk_status_def", &battle_config.mob_luk_sc_def }, { "pc_max_status_def", &battle_config.pc_max_sc_def }, { "mob_max_status_def", &battle_config.mob_max_sc_def }, { "sg_miracle_skill_ratio", &battle_config.sg_miracle_skill_ratio }, @@ -3978,6 +3980,8 @@ void battle_set_defaults() { battle_config.sc_castcancel = 0; battle_config.pc_sc_def_rate = 100; battle_config.mob_sc_def_rate = 100; + battle_config.pc_luk_sc_def = 300; + battle_config.mob_luk_sc_def = 300; battle_config.pc_max_sc_def = 10000; battle_config.mob_max_sc_def = 5000; battle_config.sg_miracle_skill_ratio=1; @@ -4176,10 +4180,11 @@ void battle_validate_conf() { if (battle_config.mobs_level_up_exp_rate < 1) // [Valaris] battle_config.mobs_level_up_exp_rate = 1; - if (battle_config.pc_max_sc_def > 10000) - battle_config.pc_max_sc_def = 10000; - if (battle_config.mob_max_sc_def > 10000) - battle_config.mob_max_sc_def = 10000; + if (battle_config.pc_luk_sc_def < 1) + battle_config.pc_luk_sc_def = 1; + if (battle_config.mob_luk_sc_def < 1) + battle_config.mob_luk_sc_def = 1; + if (battle_config.sg_miracle_skill_ratio > 10000) battle_config.sg_miracle_skill_ratio = 10000; |