diff options
author | Bardur Arantsson <bardur@scientician.net> | 2012-06-09 17:56:15 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2012-06-09 17:57:00 +0200 |
commit | 465063bdf50bdf30b110bb2c37ab114fb68e4662 (patch) | |
tree | 83f08fbcae536b1f602c66a39128c0b48d2921b3 /src/help.c | |
parent | 45f32f85eecbdaca1108542adc9733e9b633d9e5 (diff) |
Lua: Move the "monster asked for help" help to C
Diffstat (limited to 'src/help.c')
-rw-r--r-- | src/help.c | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -14,7 +14,7 @@ #include "angband.h" #define DESC_MAX 14 -#define TRIGGERED_HELP_MAX 18 +#define TRIGGERED_HELP_MAX 19 #define HELP_VOID_JUMPGATE 0 #define HELP_FOUNTAIN 1 @@ -34,6 +34,7 @@ #define HELP_20TH_LEVEL 15 #define HELP_ID_SPELL_ITM 16 #define HELP_MELEE_SKILLS 17 +#define HELP_MON_ASK_HELP 18 /** * Game started? @@ -402,6 +403,10 @@ static bool_ trigger_melee_skills(void *in, void *out) { return (game_started && (get_melee_skills() > 1)); } +static bool_ trigger_always(void *in, void *out) { + return TRUE; +} + /** * Trigger-based help items */ @@ -584,6 +589,14 @@ static triggered_help_type triggered_help[TRIGGERED_HELP_MAX] = "and select the switch melee type option.", NULL } + }, + { HELP_MON_ASK_HELP, + HOOK_MON_ASK_HELP, + trigger_always, + { "Somebody is speaking to you it seems. You can talk back with the Y key.", + "This can lead to quests. You can also give items to 'monsters' with the y key.", + NULL + } } }; |