version 1.2 | | version 1.3 |
---|
| | |
/* | | /* |
* static char *rcsid_shop_c = | | * static char *rcsid_shop_c = |
* "$Id: shop.c,v 1.2 1999/07/13 06:03:04 cvs Exp $"; | | * "$Id: shop.c,v 1.3 1999/07/30 05:01:38 cvs Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
val=(4.0*(float)val*(1.0-diff)); | | val=(4.0*(float)val*(1.0-diff)); |
else val *=4; | | else val *=4; |
} | | } |
if(val<0) | | |
| | /* I don't understand this code...., I'm changing it to |
| | use 0 instead of 1000000 if we're selling*/ |
| | if(val<0) { |
| | if(flag==F_SELL) |
| | val=0; |
| | else |
val=1000000; | | val=1000000; |
| | } |
| | |
| | /* Unidentified stuff won't sell for more than 60gp */ |
| | if(flag==F_SELL && !QUERY_FLAG(tmp, FLAG_IDENTIFIED) && need_identify(tmp)) { |
| | val = (val > 600)? 600:val; |
| | } |
return (int)val; | | return (int)val; |
} | | } |
| | |