the #puton command */
| 2451 | |
| 2452 | /* the #puton command */ |
| 2453 | int |
| 2454 | doputon(void) |
| 2455 | { |
| 2456 | struct obj *otmp; |
| 2457 | |
| 2458 | if (uleft && uright && uamul && ublindf |
| 2459 | && uarm && uarmu && uarmc && uarmh && uarms && uarmg && uarmf) { |
| 2460 | /* 'P' message doesn't mention armor */ |
| 2461 | Your("%s%s are full, and you're already wearing an amulet and %s.", |
| 2462 | humanoid(gy.youmonst.data) ? "ring-" : "", |
| 2463 | fingers_or_gloves(FALSE), |
| 2464 | (ublindf->otyp == LENSES) ? "some lenses" : "a blindfold"); |
| 2465 | return ECMD_OK; |
| 2466 | } |
| 2467 | otmp = getobj("put on", puton_ok, GETOBJ_NOFLAGS); |
| 2468 | return otmp ? accessory_or_armor_on(otmp) : ECMD_CANCEL; |
| 2469 | } |
| 2470 | |
| 2471 | /* calculate current armor class */ |
| 2472 | void |
nothing calls this directly
no test coverage detected