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

Function stripspe

src/read.c:651–664  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

649RESTORE_WARNING_FORMAT_NONLITERAL
650
651staticfn void
652stripspe(struct obj *obj)
653{
654 if (obj->blessed || obj->spe <= 0) {
655 pline1(nothing_happens);
656 } else {
657 /* order matters: message, shop handling, actual transformation */
658 pline("%s briefly.", Yobjnam2(obj, "vibrate"));
659 costly_alteration(obj, COST_UNCHRG);
660 obj->spe = 0;
661 if (obj->otyp == OIL_LAMP || obj->otyp == BRASS_LANTERN)
662 obj->age = 0;
663 }
664}
665
666staticfn void
667p_glow1(struct obj *otmp)

Callers 1

rechargeFunction · 0.85

Calls 3

Yobjnam2Function · 0.85
costly_alterationFunction · 0.85
plineFunction · 0.70

Tested by

no test coverage detected