picking up gold

> > On Saturday, 6 Jul 2002, <Someone> wrote:
> > What's the rationale behind using "money" for what used to be
> > "gold" (as in "The hill orc picks up some money" or "You notice
> > you have no money!")? Has the zorkmid been devalued?
[...]
> At least let *leprechauns* pick up gold. Unlike orcs, they're not the
> kind to pick up just "money".
This commit is contained in:
nethack.allison
2002-07-07 19:10:17 +00:00
parent 1359896784
commit 5802922a3d
+5 -5
View File
@@ -774,21 +774,21 @@ mpickgold(mtmp)
register struct monst *mtmp; register struct monst *mtmp;
{ {
register struct obj *gold; register struct obj *gold;
int mat_idx;
if ((gold = g_at(mtmp->mx, mtmp->my)) != 0) { if ((gold = g_at(mtmp->mx, mtmp->my)) != 0) {
mat_idx = objects[gold->otyp].oc_material;
#ifndef GOLDOBJ #ifndef GOLDOBJ
mtmp->mgold += gold->quan; mtmp->mgold += gold->quan;
delobj(gold); delobj(gold);
if (cansee(mtmp->mx, mtmp->my) ) {
if (flags.verbose && !mtmp->isgd)
pline("%s picks up some gold.", Monnam(mtmp));
#else #else
obj_extract_self(gold); obj_extract_self(gold);
add_to_minv(mtmp, gold); add_to_minv(mtmp, gold);
#endif
if (cansee(mtmp->mx, mtmp->my) ) { if (cansee(mtmp->mx, mtmp->my) ) {
if (flags.verbose && !mtmp->isgd) if (flags.verbose && !mtmp->isgd)
pline("%s picks up some money.", Monnam(mtmp)); pline("%s picks up some %s.", Monnam(mtmp),
#endif mat_idx == GOLD ? "gold" : "money");
newsym(mtmp->mx, mtmp->my); newsym(mtmp->mx, mtmp->my);
} }
} }