From e673349395f41aeb0ba18711d23f1cc7636ab52c Mon Sep 17 00:00:00 2001 From: Jared Adams <jaxad0127@gmail.com> Date: Sat, 28 Feb 2009 08:47:36 -0700 Subject: Simplify the negative shop price system Now it just takes the DB price and multiplies it by the absolute value of the sell price (if it's negative). --- src/map/npc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/map/npc.c b/src/map/npc.c index 2cdcf00..cc0880a 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -1245,9 +1245,8 @@ static int npc_parse_shop(char *w1,char *w2,char *w3,char *w4) if (value < 0) { int temp = abs(value); if (id == NULL) id = itemdb_search(nameid); - value = id->value_buy; - if (temp % 2) value = value / ((temp + 1) / 2); - else value = value * (temp / 2); + value = id->value_buy; * temp + } nd->u.shop_item[pos].value = value; pos++; -- cgit v1.2.3-70-g09d2