| version 1.46 | | version 1.47 |
|---|
| | |
| /* | | /* |
| * static char *rcsid_shop_c = | | * static char *rcsid_shop_c = |
| * "$Id: shop.c,v 1.46 2005/10/21 19:03:24 cavesomething Exp $"; | | * "$Id: shop.c,v 1.47 2005/10/28 19:08:53 akirschbaum Exp $"; |
| */ | | */ |
| | | |
| /* | | /* |
| | |
| lev_bargain = find_skill_by_number(who,SK_BARGAINING)->level; | | lev_bargain = find_skill_by_number(who,SK_BARGAINING)->level; |
| } | | } |
| if (tmptype) { | | if (tmptype) { |
| if (idskill1=tmptype->identifyskill) { | | idskill1=tmptype->identifyskill; |
| | | if (idskill1) { |
| idskill2=tmptype->identifyskill2; | | idskill2=tmptype->identifyskill2; |
| if (find_skill_by_number(who,idskill1)) { | | if (find_skill_by_number(who,idskill1)) { |
| lev_identify = find_skill_by_number(who,idskill1)->level; | | lev_identify = find_skill_by_number(who,idskill1)->level; |
| | |
| * we are selling objects - in that case, the person just | | * we are selling objects - in that case, the person just |
| * gets no money. | | * gets no money. |
| */ | | */ |
| if(val<0) | | if((sint64)val<0) |
| val=0; | | val=0; |
| | | |
| /* Unidentified stuff won't sell for more than 60gp */ | | /* Unidentified stuff won't sell for more than 60gp */ |
| | |
| /*shopitems *items=map->shopitems;*/ | | /*shopitems *items=map->shopitems;*/ |
| int pos=0, i; | | int pos=0, i; |
| double opinion=0; | | double opinion=0; |
| char *p, tmp[MAX_BUF]="\0"; | | char tmp[MAX_BUF]="\0"; |
| if (op->type != PLAYER) return 0; | | if (op->type != PLAYER) return 0; |
| | | |
| /*check if there is a shop specified for this map */ | | /*check if there is a shop specified for this map */ |