bias a monster's preferences towards armor that has special benefits. */
| 1336 | |
| 1337 | /* bias a monster's preferences towards armor that has special benefits. */ |
| 1338 | staticfn int |
| 1339 | extra_pref(struct monst *mon, struct obj *obj) |
| 1340 | { |
| 1341 | /* currently only does speed boots, but might be expanded if monsters |
| 1342 | * get to use more armor abilities |
| 1343 | */ |
| 1344 | if (obj) { |
| 1345 | if (obj->otyp == SPEED_BOOTS && mon->permspeed != MFAST) |
| 1346 | return 20; |
| 1347 | } |
| 1348 | return 0; |
| 1349 | } |
| 1350 | |
| 1351 | /* |
| 1352 | * Exceptions to things based on race. |