MCPcopy Create free account
hub / github.com/NetHack/NetHack / adj_abon

Function adj_abon

src/do_wear.c:3318–3336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3316}
3317
3318void
3319adj_abon(struct obj *otmp, schar delta)
3320{
3321 if (uarmg && uarmg == otmp && otmp->otyp == GAUNTLETS_OF_DEXTERITY) {
3322 if (delta) {
3323 makeknown(uarmg->otyp);
3324 ABON(A_DEX) += (delta);
3325 }
3326 disp.botl = TRUE;
3327 }
3328 if (uarmh && uarmh == otmp && otmp->otyp == HELM_OF_BRILLIANCE) {
3329 if (delta) {
3330 makeknown(uarmh->otyp);
3331 ABON(A_INT) += (delta);
3332 ABON(A_WIS) += (delta);
3333 }
3334 disp.botl = TRUE;
3335 }
3336}
3337
3338/* decide whether a worn item is covered up by some other worn item,
3339 used for dipping into liquid and applying grease and takeoff_ok();

Callers 6

Helmet_onFunction · 0.85
Helmet_offFunction · 0.85
Gloves_onFunction · 0.85
Gloves_offFunction · 0.85
seffect_enchant_armorFunction · 0.85
seffect_destroy_armorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected