Tips and option to disable them
Adds a more general way to handle gameplay tips, and adds a boolean option "tips", which can be used to disable all tips. Adds a helpful longer message when the game goes into the "farlook" mode. Also adds a lua binding to easily show multi-line text in a menu window. Breaks save compat.
This commit is contained in:
@@ -77,11 +77,7 @@ give_may_advance_msg(int skill)
|
||||
: (skill <= P_LAST_WEAPON) ? "weapon "
|
||||
: (skill <= P_LAST_SPELL) ? "spell casting "
|
||||
: "fighting ");
|
||||
|
||||
if (!gc.context.enhance_tip) {
|
||||
gc.context.enhance_tip = TRUE;
|
||||
pline("(Use the #enhance command to advance them.)");
|
||||
}
|
||||
handle_tip(TIP_ENHANCE);
|
||||
}
|
||||
|
||||
/* weapon's skill category name for use as generalized description of weapon;
|
||||
@@ -1170,7 +1166,7 @@ enhance_weapon_skill(void)
|
||||
int clr = 0;
|
||||
|
||||
/* player knows about #enhance, don't show tip anymore */
|
||||
gc.context.enhance_tip = TRUE;
|
||||
gc.context.tips[TIP_ENHANCE] = TRUE;
|
||||
|
||||
if (wizard && y_n("Advance skills without practice?") == 'y')
|
||||
speedy = TRUE;
|
||||
|
||||
Reference in New Issue
Block a user