From 5d9d254ef290e9cc8acfdd08af279fdc1a439853 Mon Sep 17 00:00:00 2001 From: skotlex Date: Wed, 7 Jun 2006 18:57:21 +0000 Subject: - Added pc_calcexp to calculate individual exp bonuses acquired from exp's source (race bonus cards, SG Exp skills, pk-mode higher level exp) - pc_gain_exp now also receives the source of the exp, when said source exists, bonuses are applicated as needed. - Added status_kill when capturing a mob, should take care of the mob not respawning after caputed. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7037 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/npc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map/npc.c') diff --git a/src/map/npc.c b/src/map/npc.c index 72b71b8f9..6d950399d 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -1213,7 +1213,7 @@ int npc_buylist(struct map_session_data *sd,int n,unsigned short *item_list) z = z * (double)skill * (double)battle_config.shop_exp/10000.; if (z < 1) z = 1; - pc_gainexp(sd,0,(int)z); + pc_gainexp(sd,NULL,0,(int)z); } } @@ -1288,7 +1288,7 @@ int npc_selllist(struct map_session_data *sd,int n,unsigned short *item_list) z = z * (double)skill * (double)battle_config.shop_exp/10000.; if (z < 1) z = 1; - pc_gainexp(sd,0,(int)z); + pc_gainexp(sd,NULL,0,(int)z); } } -- cgit v1.2.3-70-g09d2