diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-02-23 16:31:16 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-02-23 16:31:16 +0000 |
commit | 07e03074151d0361be665c05e140eca8e89295ca (patch) | |
tree | 27f45515a8e87d04a470ae4773e3d49279e38f5e /src/map/battle.c | |
parent | be36c563041ad7131b1b5dc86771d167b355a619 (diff) | |
download | hercules-07e03074151d0361be665c05e140eca8e89295ca.tar.gz hercules-07e03074151d0361be665c05e140eca8e89295ca.tar.bz2 hercules-07e03074151d0361be665c05e140eca8e89295ca.tar.xz hercules-07e03074151d0361be665c05e140eca8e89295ca.zip |
- Modified the way autospells stack to mimic official servers. Cards of the same ID cannot stack, but different cards with the same skill can each trigger indepedently of each other.
- Added battle_config autospell_stacking to enable stacking of cards of same ID.
- Moved card-specific battle options to items.conf
- Autospells triggered when hit will check the range to the target.
- Some cleaning up of status_calc_pc
- In status_change_start capped the passed success chance to 100%
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5377 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r-- | src/map/battle.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index c578167d7..6913c0294 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -3821,6 +3821,7 @@ static const struct battle_data_short { { "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 },
+ { "autospell_stacking", &battle_config.autospell_stacking },
};
static const struct battle_data_int {
@@ -4220,6 +4221,7 @@ void battle_set_defaults() { battle_config.mob_max_sc_def = 5000;
battle_config.sg_miracle_skill_ratio=1;
battle_config.sg_miracle_skill_duration=600000;
+ battle_config.autospell_stacking = 0;
}
void battle_validate_conf() {
|