Return the price sold to the hero of a given artifact or unique item */
| 2306 | |
| 2307 | /* Return the price sold to the hero of a given artifact or unique item */ |
| 2308 | long |
| 2309 | arti_cost(struct obj *otmp) |
| 2310 | { |
| 2311 | if (!otmp->oartifact) |
| 2312 | return (long) objects[otmp->otyp].oc_cost; |
| 2313 | else if (artilist[(int) otmp->oartifact].cost) |
| 2314 | return artilist[(int) otmp->oartifact].cost; |
| 2315 | else |
| 2316 | return (100L * (long) objects[otmp->otyp].oc_cost); |
| 2317 | } |
| 2318 | |
| 2319 | staticfn uchar |
| 2320 | abil_to_adtyp(long *abil) |
no outgoing calls
no test coverage detected