Move enhance_tip into context and don't show tip if #enhance has been used before
Breaks save and bones compatibility.
This commit is contained in:
@@ -69,17 +69,16 @@ static void
|
||||
give_may_advance_msg(skill)
|
||||
int skill;
|
||||
{
|
||||
static boolean got_enhance_tip = FALSE;
|
||||
You_feel("more confident in your %sskills.",
|
||||
(skill == P_NONE) ? ""
|
||||
: (skill <= P_LAST_WEAPON) ? "weapon "
|
||||
: (skill <= P_LAST_SPELL) ? "spell casting "
|
||||
: "fighting ");
|
||||
|
||||
if (!got_enhance_tip) {
|
||||
if (!g.context.enhance_tip) {
|
||||
g.context.enhance_tip = TRUE;
|
||||
pline("(Use the #enhance command to advance them.)");
|
||||
}
|
||||
got_enhance_tip = TRUE;
|
||||
}
|
||||
|
||||
/* weapon's skill category name for use as generalized description of weapon;
|
||||
@@ -1168,6 +1167,9 @@ enhance_weapon_skill()
|
||||
winid win;
|
||||
boolean speedy = FALSE;
|
||||
|
||||
/* player knows about #enhance, don't show tip anymore */
|
||||
g.context.enhance_tip = TRUE;
|
||||
|
||||
if (wizard && yn("Advance skills without practice?") == 'y')
|
||||
speedy = TRUE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user