| 346 | } |
| 347 | |
| 348 | staticfn void |
| 349 | fix_curse_trouble(struct obj *otmp, const char *what) |
| 350 | { |
| 351 | if (!otmp) { |
| 352 | impossible("fix_curse_trouble: nothing to uncurse."); |
| 353 | return; |
| 354 | } |
| 355 | if (otmp == uarmg && Glib) { |
| 356 | make_glib(0); |
| 357 | Your("%s are no longer slippery.", gloves_simple_name(uarmg)); |
| 358 | if (!otmp->cursed) |
| 359 | return; |
| 360 | } |
| 361 | if (!Blind || (otmp == ublindf && Blindfolded_only)) { |
| 362 | pline("%s %s.", |
| 363 | what ? what : (const char *) Yobjnam2(otmp, "softly glow"), |
| 364 | hcolor(NH_AMBER)); |
| 365 | iflags.last_msg = PLNMSG_OBJ_GLOWS; |
| 366 | otmp->bknown = !Hallucination; /* ok to skip set_bknown() */ |
| 367 | } |
| 368 | uncurse(otmp); |
| 369 | update_inventory(); |
| 370 | } |
| 371 | |
| 372 | staticfn void |
| 373 | fix_worst_trouble(int trouble) |
no test coverage detected