summaryrefslogtreecommitdiff
path: root/src/map/vending.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-03-27 18:38:11 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-03-27 18:38:11 +0000
commitc19b8831b8134d9e8f000d8d5ee18ebaa2164fea (patch)
tree6c882ff6ee1fd988ec1f8fd28abf4fee7a0bcd95 /src/map/vending.c
parent6b7b26291cbcabf23f5a28a684fdfcb317d7b53a (diff)
downloadhercules-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/vending.c')
-rw-r--r--src/map/vending.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/vending.c b/src/map/vending.c
index c12948de0..63551272c 100644
--- a/src/map/vending.c
+++ b/src/map/vending.c
@@ -158,6 +158,8 @@ void vending_purchasereq(struct map_session_data *sd,int len,int id,unsigned cha
//Logs
pc_payzeny(sd, (int)z);
+ if (battle_config.vending_tax)
+ z = z*battle_config.vending_tax/10000;
pc_getzeny(vsd, (int)z);
for(i = 0; 8 + 4 * i < len; i++) {