permanent inventory window updates
Addresses the follwing missing updates: - Quest Artifact identification by Quest Leader. - Rust damage from a rust trap. - Remove curse as a result of prayer (both fixing TROUBLE_CURSED_* and the blessed-remove-curse boon.) - Charging via PYEC
This commit is contained in:
@@ -1166,8 +1166,10 @@ arti_invoke(obj)
|
||||
obj->age = 0;
|
||||
return 0;
|
||||
}
|
||||
b_effect = obj->blessed && (Role_switch == oart->role || !oart->role);
|
||||
b_effect = obj->blessed &&
|
||||
(Role_switch == oart->role || !oart->role);
|
||||
recharge(otmp, b_effect ? 1 : obj->cursed ? -1 : 0);
|
||||
update_inventory();
|
||||
break;
|
||||
}
|
||||
case LEV_TELE:
|
||||
|
||||
@@ -338,6 +338,7 @@ decurse:
|
||||
what ? what :
|
||||
(const char *)aobjnam(otmp, "softly glow"),
|
||||
hcolor(amber));
|
||||
update_inventory();
|
||||
break;
|
||||
case TROUBLE_POISONED:
|
||||
if (Hallucination)
|
||||
@@ -854,6 +855,7 @@ pleased(g_align)
|
||||
break;
|
||||
case 4: {
|
||||
register struct obj *otmp;
|
||||
int any = 0;
|
||||
|
||||
if (Blind)
|
||||
You_feel("the power of %s.", u_gname());
|
||||
@@ -866,9 +868,11 @@ pleased(g_align)
|
||||
Your("%s %s.", aobjnam(otmp, "softly glow"),
|
||||
hcolor(amber));
|
||||
otmp->bknown = TRUE;
|
||||
++any;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (any) update_inventory();
|
||||
break;
|
||||
}
|
||||
case 5: {
|
||||
|
||||
@@ -195,6 +195,7 @@ struct obj *obj; /* quest artifact; possibly null if carrying Amulet */
|
||||
/* behave as if leader imparts sufficient info about the
|
||||
quest artifact */
|
||||
fully_identify_obj(obj);
|
||||
update_inventory();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -734,6 +734,7 @@ glovecheck: (void) rust_dmg(uarmg, "gauntlets", 1, TRUE, &youmonst);
|
||||
(void) rust_dmg(uarmu, "shirt", 1, TRUE, &youmonst);
|
||||
#endif
|
||||
}
|
||||
update_inventory();
|
||||
break;
|
||||
|
||||
case FIRE_TRAP:
|
||||
|
||||
Reference in New Issue
Block a user