diff options
author | Bardur Arantsson <bardur@scientician.net> | 2012-06-08 18:40:12 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2012-06-08 18:40:12 +0200 |
commit | 5867e77c9fd84033ec54c565e0d0759860c2a2c1 (patch) | |
tree | 9ef077df70e57f3b208eceba3f8ec0de4a9bf6f6 /src/help.c | |
parent | c1e4d667aaa5b99f87a99dc32131b8e941cebd35 (diff) |
Lua: Move wilderness help to C
Diffstat (limited to 'src/help.c')
-rw-r--r-- | src/help.c | 19 |
1 files changed, 18 insertions, 1 deletions
@@ -14,7 +14,7 @@ #include "angband.h" #define DESC_MAX 10 -#define TRIGGERED_HELP_MAX 11 +#define TRIGGERED_HELP_MAX 12 #define HELP_VOID_JUMPGATE 0 #define HELP_FOUNTAIN 1 @@ -27,6 +27,7 @@ #define HELP_GET_ROD_TIP 8 #define HELP_GET_TRAP_KIT 9 #define HELP_GET_DEVICE 10 +#define HELP_WILDERNESS 11 /** * Struct for help triggered by a boolean condition @@ -105,6 +106,12 @@ static bool_ trigger_get_magic_device(void *in, void *out) { (g->o_ptr->tval == TV_STAFF)); } +static bool_ trigger_end_turn_wilderness(void *in, void *out) { + return (((p_ptr->wilderness_x != 34) || + (p_ptr->wilderness_y != 21)) && + (!p_ptr->astral)); +} + /** * Trigger-based help items */ @@ -203,6 +210,16 @@ static triggered_help_type triggered_help[TRIGGERED_HELP_MAX] = "it and 'I'nspect it. Check the help file on Magic for more about these.", NULL } + }, + { HELP_WILDERNESS, + HOOK_END_TURN, + trigger_end_turn_wilderness, + { "Ahh wilderness travel... The overview mode will allow you to travel", + "fast, but that comes to the cost of GREATLY increased food consumption.", + "So you should bring lots of food and really watch your hunger status.", + "To enter the overview mode, press < while in the wilderness.", + NULL + } } }; |