summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
authorai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-12-03 09:15:29 +0000
committerai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-12-03 09:15:29 +0000
commit9d3984c630ddb7a3f9aa29e456e05d8e82f617c5 (patch)
tree88f120493529133c48b541dadf85303c125662e9 /src/map/npc.c
parent8858572dd6887a2c41f9b4d64df3e1491dd3c452 (diff)
downloadhercules-9d3984c630ddb7a3f9aa29e456e05d8e82f617c5.tar.gz
hercules-9d3984c630ddb7a3f9aa29e456e05d8e82f617c5.tar.bz2
hercules-9d3984c630ddb7a3f9aa29e456e05d8e82f617c5.tar.xz
hercules-9d3984c630ddb7a3f9aa29e456e05d8e82f617c5.zip
* 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
Diffstat (limited to 'src/map/npc.c')
-rw-r--r--src/map/npc.c8
1 files changed, 2 insertions, 6 deletions
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)