diff options
author | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-03-18 10:04:41 +0000 |
---|---|---|
committer | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-03-18 10:04:41 +0000 |
commit | a625c96cd44bc95bdc1d8bc9e2143372fb28c56e (patch) | |
tree | 05a59ba3c1d92b5daac7aa25e9bd2fd5ad1f63d4 /src/map/npc.c | |
parent | 712ea2e956dbaae6f23229e0c7634cd95a14fe9d (diff) | |
download | hercules-a625c96cd44bc95bdc1d8bc9e2143372fb28c56e.tar.gz hercules-a625c96cd44bc95bdc1d8bc9e2143372fb28c56e.tar.bz2 hercules-a625c96cd44bc95bdc1d8bc9e2143372fb28c56e.tar.xz hercules-a625c96cd44bc95bdc1d8bc9e2143372fb28c56e.zip |
* Don't log SQL char actions if log_char is not enabled in char_athena.conf
* Updated shop_exp's calculation to give more exp
* Some item and mob DB updates
* Added Einbech/Einbroch warps
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1249 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/npc.c')
-rw-r--r-- | src/map/npc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/npc.c b/src/map/npc.c index 409695996..018ceae01 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -1106,7 +1106,7 @@ int npc_buylist(struct map_session_data *sd,int n,unsigned short *item_list) if (sd->status.skill[MC_DISCOUNT].flag != 0) skill = sd->status.skill[MC_DISCOUNT].flag - 2; if (skill > 0) { - z = (log(z * (double)skill) * (double)battle_config.shop_exp/100.); + z = z * (double)skill * (double)battle_config.shop_exp/100.; if (z < 1) z = 1; pc_gainexp(sd,0,(int)z); @@ -1166,7 +1166,7 @@ int npc_selllist(struct map_session_data *sd,int n,unsigned short *item_list) if (sd->status.skill[MC_OVERCHARGE].flag != 0) skill = sd->status.skill[MC_OVERCHARGE].flag - 2; if (skill > 0) { - z = (log(z * (double)skill) * (double)battle_config.shop_exp/100.); + z = z * (double)skill * (double)battle_config.shop_exp/100.; if (z < 1) z = 1; pc_gainexp(sd,0,(int)z); |