bundle the display-related hints, that tell bot() and others

that an update is required, into a struct. Remove it from
context since there is no reason to save those.
This commit is contained in:
nhmall
2024-01-04 23:16:27 -05:00
parent 9bcff7b896
commit 22e52ee905
46 changed files with 246 additions and 238 deletions

View File

@@ -1232,7 +1232,7 @@ Mb_hit(struct monst *magr, /* attacker */
u.uenmax--;
if (u.uen > 0)
u.uen--;
gc.context.botl = TRUE;
display.botl = TRUE;
You("lose magical energy!");
}
} else {
@@ -1247,7 +1247,7 @@ Mb_hit(struct monst *magr, /* attacker */
if (u.uenmax > u.uenpeak)
u.uenpeak = u.uenmax;
u.uen++;
gc.context.botl = TRUE;
display.botl = TRUE;
You("absorb magical energy!");
}
}
@@ -1731,7 +1731,7 @@ arti_invoke(struct obj *obj)
make_slimed(0L, (char *) 0);
if (BlindedTimeout > creamed)
make_blinded(creamed, FALSE);
gc.context.botl = TRUE;
display.botl = TRUE;
break;
}
case ENERGY_BOOST: {
@@ -1743,7 +1743,7 @@ arti_invoke(struct obj *obj)
epboost = u.uenmax - u.uen;
if (epboost) {
u.uen += epboost;
gc.context.botl = TRUE;
display.botl = TRUE;
You_feel("re-energized.");
} else
goto nothing_special;