From 9d3984c630ddb7a3f9aa29e456e05d8e82f617c5 Mon Sep 17 00:00:00 2001 From: ai4rei Date: Fri, 3 Dec 2010 09:15:29 +0000 Subject: * Removed leftovers of the item_value_db.txt feature (bugreport:2031, since athena-dev-2.1.1-mod377, followup to pre-svn 2004/05/29). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14553 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/npc.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/map/npc.c') diff --git a/src/map/npc.c b/src/map/npc.c index 92425f585..0b16aa6f9 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -1300,8 +1300,7 @@ int npc_buylist(struct map_session_data* sd, int n, unsigned short* item_list) return 2; } - if( !itemdb_value_notdc(nameid) ) - value = pc_modifybuyvalue(sd,value); + value = pc_modifybuyvalue(sd,value); z += (double)value * amount; w += itemdb_weight(nameid) * amount; @@ -1386,10 +1385,7 @@ int npc_selllist(struct map_session_data* sd, int n, unsigned short* item_list) sd->status.inventory[idx].amount < qty) break; - if (sd->inventory_data[idx]->flag.value_notoc) - z+=(double)qty*sd->inventory_data[idx]->value_sell; - else - z+=(double)qty*pc_modifysellvalue(sd,sd->inventory_data[idx]->value_sell); + z+=(double)qty*pc_modifysellvalue(sd,sd->inventory_data[idx]->value_sell); if(sd->inventory_data[idx]->type == IT_PETEGG && sd->status.inventory[idx].card[0] == CARD0_PET) -- cgit v1.2.3-60-g2f50