Merge branch 'NetHack-3.6.2'
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 allmain.c $NHDT-Date: 1539804859 2018/10/17 19:34:19 $ $NHDT-Branch: keni-makedefsm $:$NHDT-Revision: 1.89 $ */
|
||||
/* NetHack 3.6 allmain.c $NHDT-Date: 1553363414 2019/03/23 17:50:14 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.95 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/*-Copyright (c) Robert Patrick Rankin, 2012. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -183,7 +183,7 @@ boolean resuming;
|
||||
if (u.ublesscnt)
|
||||
u.ublesscnt--;
|
||||
if (flags.time && !g.context.run)
|
||||
g.context.botl = 1;
|
||||
g.context.botl = TRUE;
|
||||
|
||||
/* One possible result of prayer is healing. Whether or
|
||||
* not you get healed depends on your current hit points.
|
||||
@@ -228,7 +228,7 @@ boolean resuming;
|
||||
(int) (ACURR(A_WIS) + ACURR(A_INT)) / 15 + 1, 1);
|
||||
if (u.uen > u.uenmax)
|
||||
u.uen = u.uenmax;
|
||||
g.context.botl = 1;
|
||||
g.context.botl = TRUE;
|
||||
if (u.uen == u.uenmax)
|
||||
interrupt_multi("You feel full of energy.");
|
||||
}
|
||||
@@ -410,7 +410,7 @@ boolean resuming;
|
||||
/* lookaround may clear multi */
|
||||
g.context.move = 0;
|
||||
if (flags.time)
|
||||
g.context.botl = 1;
|
||||
g.context.botl = TRUE;
|
||||
continue;
|
||||
}
|
||||
if (g.context.mv) {
|
||||
@@ -432,7 +432,7 @@ boolean resuming;
|
||||
deferred_goto(); /* after rhack() */
|
||||
/* !g.context.move here: multiple movement command stopped */
|
||||
else if (flags.time && (!g.context.move || !g.context.mv))
|
||||
g.context.botl = 1;
|
||||
g.context.botl = TRUE;
|
||||
|
||||
if (g.vision_full_recalc)
|
||||
vision_recalc(0); /* vision! */
|
||||
@@ -440,7 +440,8 @@ boolean resuming;
|
||||
if ((!g.context.run || flags.runmode == RUN_TPORT)
|
||||
&& (g.multi && (!g.context.travel ? !(g.multi % 7) : !(g.moves % 7L)))) {
|
||||
if (flags.time && g.context.run)
|
||||
g.context.botl = 1;
|
||||
g.ontext.botl = TRUE;
|
||||
/* [should this be flush_screen() instead?] */
|
||||
display_nhwindow(WIN_MAP, FALSE);
|
||||
}
|
||||
}
|
||||
@@ -470,7 +471,7 @@ int wtcap;
|
||||
heal = 1;
|
||||
}
|
||||
if (heal) {
|
||||
g.context.botl = 1;
|
||||
g.context.botl = TRUE;
|
||||
u.mh += heal;
|
||||
reached_full = (u.mh == u.mhmax);
|
||||
}
|
||||
@@ -502,7 +503,7 @@ int wtcap;
|
||||
heal = 1;
|
||||
|
||||
if (heal) {
|
||||
g.context.botl = 1;
|
||||
g.context.botl = TRUE;
|
||||
u.uhp += heal;
|
||||
if (u.uhp > u.uhpmax)
|
||||
u.uhp = u.uhpmax;
|
||||
@@ -523,7 +524,7 @@ stop_occupation()
|
||||
if (!maybe_finished_meal(TRUE))
|
||||
You("stop %s.", g.occtxt);
|
||||
g.occupation = 0;
|
||||
g.context.botl = 1; /* in case u.uhs changed */
|
||||
g.context.botl = TRUE; /* in case u.uhs changed */
|
||||
nomul(0);
|
||||
pushch(0);
|
||||
} else if (g.multi >= 0) {
|
||||
@@ -576,7 +577,7 @@ newgame()
|
||||
gameDiskPrompt();
|
||||
#endif
|
||||
|
||||
g.context.botlx = 1;
|
||||
g.context.botlx = TRUE;
|
||||
g.context.ident = 1;
|
||||
g.context.stethoscope_move = -1L;
|
||||
g.context.warnlevel = 1;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 apply.c $NHDT-Date: 1544442708 2018/12/10 11:51:48 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.269 $ */
|
||||
/* NetHack 3.6 apply.c $NHDT-Date: 1553363415 2019/03/23 17:50:15 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.272 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/*-Copyright (c) Robert Patrick Rankin, 2012. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -1918,7 +1918,6 @@ struct obj *obj;
|
||||
if (Deaf) /* make_deaf() won't give feedback when already deaf */
|
||||
pline("Nothing seems to happen.");
|
||||
make_deaf((HDeaf & TIMEOUT) + lcount, TRUE);
|
||||
g.context.botl = TRUE;
|
||||
break;
|
||||
}
|
||||
return;
|
||||
@@ -2045,6 +2044,8 @@ struct obj *obj;
|
||||
}
|
||||
}
|
||||
|
||||
if (did_attr || did_prop)
|
||||
context.botl = TRUE;
|
||||
if (did_attr)
|
||||
pline("This makes you feel %s!",
|
||||
(did_prop + did_attr) == (trouble_count + unfixable_trbl)
|
||||
@@ -2053,7 +2054,6 @@ struct obj *obj;
|
||||
else if (!did_prop)
|
||||
pline("Nothing seems to happen.");
|
||||
|
||||
g.context.botl = (did_attr || did_prop);
|
||||
#undef PROP_COUNT
|
||||
#undef ATTR_COUNT
|
||||
#undef prop2trbl
|
||||
@@ -2677,7 +2677,6 @@ struct obj *obj;
|
||||
You("hit your %s with your bullwhip.", body_part(FOOT));
|
||||
Sprintf(buf, "killed %sself with %s bullwhip", uhim(), uhis());
|
||||
losehp(Maybe_Half_Phys(dam), buf, NO_KILLER_PREFIX);
|
||||
g.context.botl = 1;
|
||||
return 1;
|
||||
|
||||
} else if ((Fumbling || Glib) && !rn2(5)) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 artifact.c $NHDT-Date: 1545597414 2018/12/23 20:36:54 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.128 $ */
|
||||
/* NetHack 3.6 artifact.c $NHDT-Date: 1553363416 2019/03/23 17:50:16 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.129 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/*-Copyright (c) Robert Patrick Rankin, 2013. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -1029,20 +1029,20 @@ char *hittee; /* target's name: "you" or mon_nam(mdef) */
|
||||
if (g.youmonst.data != old_uasmon)
|
||||
*dmgptr = 0; /* rehumanized, so no more damage */
|
||||
if (u.uenmax > 0) {
|
||||
You("lose magical energy!");
|
||||
u.uenmax--;
|
||||
if (u.uen > 0)
|
||||
u.uen--;
|
||||
g.context.botl = 1;
|
||||
g.context.botl = TRUE;
|
||||
You("lose magical energy!");
|
||||
}
|
||||
} else {
|
||||
if (mdef->data == &mons[PM_CLAY_GOLEM])
|
||||
mdef->mhp = 1; /* cancelled clay golems will die */
|
||||
if (youattack && attacktype(mdef->data, AT_MAGC)) {
|
||||
You("absorb magical energy!");
|
||||
u.uenmax++;
|
||||
u.uen++;
|
||||
g.context.botl = 1;
|
||||
g.context.botl = TRUE;
|
||||
You("absorb magical energy!");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1464,7 +1464,7 @@ struct obj *obj;
|
||||
make_slimed(0L, (char *) 0);
|
||||
if (Blinded > creamed)
|
||||
make_blinded(creamed, FALSE);
|
||||
g.context.botl = 1;
|
||||
g.context.botl = TRUE;
|
||||
break;
|
||||
}
|
||||
case ENERGY_BOOST: {
|
||||
@@ -1475,9 +1475,9 @@ struct obj *obj;
|
||||
else if (epboost < 12)
|
||||
epboost = u.uenmax - u.uen;
|
||||
if (epboost) {
|
||||
You_feel("re-energized.");
|
||||
u.uen += epboost;
|
||||
g.context.botl = 1;
|
||||
g.context.botl = TRUE;
|
||||
You_feel("re-energized.");
|
||||
} else
|
||||
goto nothing_special;
|
||||
break;
|
||||
|
||||
15
src/attrib.c
15
src/attrib.c
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 attrib.c $NHDT-Date: 1547086687 2019/01/10 02:18:07 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.64 $ */
|
||||
/* NetHack 3.6 attrib.c $NHDT-Date: 1553363417 2019/03/23 17:50:17 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.65 $ */
|
||||
/* Copyright 1988, 1989, 1990, 1992, M. Stephenson */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -185,8 +185,8 @@ int msgflg; /* positive => no message, zero => message, and */
|
||||
|
||||
if (msgflg <= 0)
|
||||
You_feel("%s%s!", (incr > 1 || incr < -1) ? "very " : "", attrstr);
|
||||
g.context.botl = 1;
|
||||
if (g.moves > 1 && (ndx == A_STR || ndx == A_CON))
|
||||
g.context.botl = TRUE;
|
||||
if (g.program_state.in_moveloop && (ndx == A_STR || ndx == A_CON))
|
||||
(void) encumber_msg();
|
||||
return TRUE;
|
||||
}
|
||||
@@ -397,7 +397,7 @@ restore_attrib()
|
||||
if (ATEMP(i) != equilibrium && ATIME(i) != 0) {
|
||||
if (!(--(ATIME(i)))) { /* countdown for change */
|
||||
ATEMP(i) += (ATEMP(i) > 0) ? -1 : 1;
|
||||
g.context.botl = 1;
|
||||
g.context.botl = TRUE;
|
||||
if (ATEMP(i)) /* reset timer */
|
||||
ATIME(i) = 100 / ACURR(A_CON);
|
||||
}
|
||||
@@ -1141,8 +1141,10 @@ int reason; /* 0==conversion, 1==helm-of-OA on, 2==helm-of-OA off */
|
||||
{
|
||||
aligntyp oldalign = u.ualign.type;
|
||||
|
||||
u.ublessed = 0; /* lose divine protection */
|
||||
g.context.botl = 1; /* status line needs updating */
|
||||
u.ublessed = 0; /* lose divine protection */
|
||||
/* You/Your/pline message with call flush_screen(), triggering bot(),
|
||||
so the actual data change needs to come before the message */
|
||||
g.context.botl = TRUE; /* status line needs updating */
|
||||
if (reason == 0) {
|
||||
/* conversion via altar */
|
||||
u.ualignbase[A_CURRENT] = (aligntyp) newalign;
|
||||
@@ -1161,7 +1163,6 @@ int reason; /* 0==conversion, 1==helm-of-OA on, 2==helm-of-OA off */
|
||||
? "much of a muchness"
|
||||
: "back in sync with your body");
|
||||
}
|
||||
|
||||
if (u.ualign.type != oldalign) {
|
||||
u.ualign.record = 0; /* slate is wiped clean */
|
||||
retouch_equipment(0);
|
||||
|
||||
Reference in New Issue
Block a user