version 1.44 | | version 1.45 |
---|
| | |
/* | | /* |
* static char *rcsid_shop_c = | | * static char *rcsid_shop_c = |
* "$Id: shop.c,v 1.44 2005/10/06 13:18:54 cavesomething Exp $"; | | * "$Id: shop.c,v 1.45 2005/10/06 21:25:43 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
*/ | | */ |
static uint64 value_limit(uint64 val, int quantity, object *who, int isshop) { | | static uint64 value_limit(uint64 val, int quantity, object *who, int isshop) { |
uint64 newval, unit_price; | | uint64 newval, unit_price; |
| | mapstruct *map; |
unit_price=val/quantity; | | unit_price=val/quantity; |
newval=unit_price; | | newval=unit_price; |
mapstruct *map; | | |
if (!isshop || !who) { | | if (!isshop || !who) { |
newval=8000+isqrt(unit_price)*20; | | newval=8000+isqrt(unit_price)*20; |
} | | } |