From: nhmall Date: Fri, 21 Jun 2019 02:33:33 +0000 (-0400) Subject: Merge branch 'NetHack-3.6' X-Git-Tag: NetHack-3.7.0_WIP~365 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7698e27eede05e9ad81dfd9f9f0e30ea83c2a6a2;p=nethack Merge branch 'NetHack-3.6' --- 7698e27eede05e9ad81dfd9f9f0e30ea83c2a6a2 diff --cc src/minion.c index de6018a8d,85acbe51c..7619352f4 --- a/src/minion.c +++ b/src/minion.c @@@ -253,19 -257,21 +257,21 @@@ register struct monst *mtmp } newsym(mtmp->mx, mtmp->my); } - if (youmonst.data->mlet == S_DEMON) { /* Won't blackmail their own. */ + if (g.youmonst.data->mlet == S_DEMON) { /* Won't blackmail their own. */ - pline("%s says, \"Good hunting, %s.\"", Amonnam(mtmp), - flags.female ? "Sister" : "Brother"); + if (!Deaf) + pline("%s says, \"Good hunting, %s.\"", Amonnam(mtmp), + flags.female ? "Sister" : "Brother"); + else if (canseemon(mtmp)) + pline("%s says something.", Amonnam(mtmp)); if (!tele_restrict(mtmp)) (void) rloc(mtmp, TRUE); return 1; } - cash = money_cnt(invent); + cash = money_cnt(g.invent); - demand = - (cash * (rnd(80) + 20 * Athome)) - / (100 * (1 + (sgn(u.ualign.type) == sgn(mtmp->data->maligntyp)))); + demand = (cash * (rnd(80) + 20 * Athome)) + / (100 * (1 + (sgn(u.ualign.type) == sgn(mtmp->data->maligntyp)))); - if (!demand || multi < 0) { /* you have no gold or can't move */ + if (!demand || g.multi < 0) { /* you have no gold or can't move */ mtmp->mpeaceful = 0; set_malign(mtmp); return 0; diff --cc src/objnam.c index fc26bdff5,0992fb518..d864368b1 --- a/src/objnam.c +++ b/src/objnam.c @@@ -2812,10 -2818,10 +2812,10 @@@ int xtra_prob; /* to force 0% random ge * probabilities are not very useful because they don't take * the class generation probability into account. [If 10% * of spellbooks were blank and 1% of scrolls were blank, - * "blank" would have 10/11 chance to yield a blook even though + * "blank" would have 10/11 chance to yield a book even though * scrolls are supposed to be much more common than books.] */ - for (i = oclass ? bases[(int) oclass] : STRANGE_OBJECT + 1; + for (i = oclass ? g.bases[(int) oclass] : STRANGE_OBJECT + 1; i < NUM_OBJECTS && (!oclass || objects[i].oc_class == oclass); ++i) { /* don't match extra descriptions (w/o real name) */ diff --cc src/pray.c index 5bc7e6eba,d5958ac52..8604c94ba --- a/src/pray.c +++ b/src/pray.c @@@ -716,8 -721,9 +716,9 @@@ aligntyp resp_god (on_altar() && (a_align(u.ux, u.uy) != resp_god)) ? "scorn" : "call upon"); + /* [why isn't this using verbalize()?] */ pline("\"Then die, %s!\"", - g.youmonst.data->mlet == S_HUMAN ? "mortal" : "creature"); - (youmonst.data->mlet == S_HUMAN) ? "mortal" : "creature"); ++ (g.youmonst.data->mlet == S_HUMAN) ? "mortal" : "creature"); summon_minion(resp_god, FALSE); break;