1 | /* |
1 | /* |
2 | * static char *rcsid_shop_c = |
2 | * static char *rcsid_shop_c = |
3 | * "$Id: shop.c,v 1.7 2006/06/25 22:19:42 root Exp $"; |
3 | * "$Id: shop.c,v 1.8 2006/06/26 00:06:43 root Exp $"; |
4 | */ |
4 | */ |
5 | |
5 | |
6 | /* |
6 | /* |
7 | CrossFire, A Multiplayer game for X-windows |
7 | CrossFire, A Multiplayer game for X-windows |
8 | |
8 | |
… | |
… | |
175 | else /* if not identified, presume one charge */ |
175 | else /* if not identified, presume one charge */ |
176 | val/=50; |
176 | val/=50; |
177 | } |
177 | } |
178 | |
178 | |
179 | /* Limit amount of money you can get for really great items. */ |
179 | /* Limit amount of money you can get for really great items. */ |
180 | if (flag==F_TRUE || flag==F_SELL) |
180 | if (flag==F_SELL) |
181 | val=value_limit(val, number, who, shop); |
181 | val=value_limit(val, number, who, shop); |
182 | |
182 | |
183 | // use a nonlinear price adjustment. as my predecessor said, don't change |
183 | // use a nonlinear price adjustment. as my predecessor said, don't change |
184 | // the archetypes, its work required for balancing, and we don't care. |
184 | // the archetypes, its work required for balancing, and we don't care. |
185 | val = pow (val / 128., 1.4) * 128.; |
185 | val = pow (val / 128., 1.4) * 128.; |