bribe fix for GOLDOBJ
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
/* SCCS Id: @(#)minion.c 3.3 2000/09/14 */
|
/* SCCS Id: @(#)minion.c 3.3 2002/01/23 */
|
||||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||||
/* NetHack may be freely redistributed. See license for details. */
|
/* NetHack may be freely redistributed. See license for details. */
|
||||||
|
|
||||||
@@ -178,9 +178,10 @@ struct monst *mtmp;
|
|||||||
if (offer < 0L) {
|
if (offer < 0L) {
|
||||||
You("try to shortchange %s, but fumble.",
|
You("try to shortchange %s, but fumble.",
|
||||||
mon_nam(mtmp));
|
mon_nam(mtmp));
|
||||||
offer = 0L;
|
return 0L;
|
||||||
} else if (offer == 0L) {
|
} else if (offer == 0L) {
|
||||||
You("refuse.");
|
You("refuse.");
|
||||||
|
return 0L;
|
||||||
#ifndef GOLDOBJ
|
#ifndef GOLDOBJ
|
||||||
} else if (offer >= u.ugold) {
|
} else if (offer >= u.ugold) {
|
||||||
You("give %s all your gold.", mon_nam(mtmp));
|
You("give %s all your gold.", mon_nam(mtmp));
|
||||||
@@ -197,7 +198,7 @@ struct monst *mtmp;
|
|||||||
} else You("give %s %ld %s.", mon_nam(mtmp), offer,
|
} else You("give %s %ld %s.", mon_nam(mtmp), offer,
|
||||||
currency(offer));
|
currency(offer));
|
||||||
|
|
||||||
money2mon(mtmp, offer);
|
money2mon(mtmp, offer);
|
||||||
#endif
|
#endif
|
||||||
flags.botl = 1;
|
flags.botl = 1;
|
||||||
return(offer);
|
return(offer);
|
||||||
|
|||||||
Reference in New Issue
Block a user