diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-03-27 18:38:11 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-03-27 18:38:11 +0000 |
commit | c19b8831b8134d9e8f000d8d5ee18ebaa2164fea (patch) | |
tree | 6c882ff6ee1fd988ec1f8fd28abf4fee7a0bcd95 /src/map/battle.c | |
parent | 6b7b26291cbcabf23f5a28a684fdfcb317d7b53a (diff) | |
download | hercules-c19b8831b8134d9e8f000d8d5ee18ebaa2164fea.tar.gz hercules-c19b8831b8134d9e8f000d8d5ee18ebaa2164fea.tar.bz2 hercules-c19b8831b8134d9e8f000d8d5ee18ebaa2164fea.tar.xz hercules-c19b8831b8134d9e8f000d8d5ee18ebaa2164fea.zip |
- Moved coma to skill_additional_effect, added special_state.bonus_coma to prevent doing comma calculations for every player attack.
- Added config "vending_tax" to apply a tax to all vending requests, as it was in kRO Sakray some time ago (requested by Playtester) (items.conf).
- Some cleaning of skill_additional_effect
- Moved the starting of SC_DANCING from skill_initunitgroup to skill_unitsetting
- Moved the checks for player_skill_partner_check and (gm_skilluncond for it) to skill_check_pc_partner
- Negative aspd rate bonuses will be handled as aspd add rate since the default non-stackable bonus is useless on penalty bonuses.
- Added check to prevent the client from using passive skills.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10082 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r-- | src/map/battle.c | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index a6dfba50b..715358142 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -2928,20 +2928,6 @@ int battle_weapon_attack( struct block_list *src,struct block_list *target, battle_delay_damage(tick+wd.amotion, src, target, BF_WEAPON, 0, 0, damage, wd.dmg_lv, wd.dmotion); - if (!status_isdead(target) && damage > 0) { - if (sd) { - int rate = 0; - if (sd->weapon_coma_ele[tstatus->def_ele] > 0) - rate += sd->weapon_coma_ele[tstatus->def_ele]; - if (sd->weapon_coma_race[tstatus->race] > 0) - rate += sd->weapon_coma_race[tstatus->race]; - if (sd->weapon_coma_race[tstatus->mode&MD_BOSS?RC_BOSS:RC_NONBOSS] > 0) - rate += sd->weapon_coma_race[tstatus->mode&MD_BOSS?RC_BOSS:RC_NONBOSS]; - if (rate) - status_change_start(target, SC_COMA, rate, 0, 0, 0, 0, 0, 0); - } - } - if (sc && sc->data[SC_AUTOSPELL].timer != -1 && rand()%100 < sc->data[SC_AUTOSPELL].val4) { int sp = 0; int skillid = sc->data[SC_AUTOSPELL].val2; @@ -3692,6 +3678,7 @@ static const struct battle_data_short { { "hom_rename", &battle_config.hom_rename }, { "homunculus_show_growth", &battle_config.homunculus_show_growth }, //[orn] { "homunculus_friendly_rate", &battle_config.homunculus_friendly_rate }, + { "vending_tax", &battle_config.vending_tax }, }; static const struct battle_data_int { @@ -3955,6 +3942,7 @@ void battle_set_defaults() { battle_config.mob_warp = 0; battle_config.dead_branch_active = 0; battle_config.vending_max_value = 10000000; + battle_config.vending_tax = 0; battle_config.show_steal_in_same_party = 0; battle_config.party_update_interval = 1000; battle_config.party_share_type = 0; @@ -4271,6 +4259,9 @@ void battle_validate_conf() { if (battle_config.vending_max_value > MAX_ZENY || battle_config.vending_max_value==0) battle_config.vending_max_value = MAX_ZENY; + if (battle_config.vending_tax > 10000) + battle_config.vending_tax = 10000; + if (battle_config.min_skill_delay_limit < 10) battle_config.min_skill_delay_limit = 10; // minimum delay of 10ms |