Artifact prices

Each artifact has its own individual price, rather than being solely
based on the cost of its base item.
This commit is contained in:
kmhugo
2002-02-02 19:21:33 +00:00
parent 8f1ad60a0e
commit 532242f07f
7 changed files with 72 additions and 48 deletions

View File

@@ -2800,6 +2800,10 @@ boolean shk_buying;
{
register long tmp = (long) objects[obj->otyp].oc_cost;
if (obj->oartifact) {
tmp = arti_cost(obj);
if (shk_buying) tmp /= 4;
}
switch(obj->oclass) {
case FOOD_CLASS:
/* simpler hunger check, (2-4)*cost */
@@ -2823,7 +2827,6 @@ boolean shk_buying;
tmp /= 2L;
break;
}
if (obj->oartifact) tmp *= 25L;
return tmp;
}