diff options
author | Bardur Arantsson <bardur@scientician.net> | 2012-06-08 17:39:28 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2012-06-08 17:39:59 +0200 |
commit | e0e4d2216c5763e318e4b321aef63cf67924f8d0 (patch) | |
tree | c1d82108d6f46bf1a36778a0705e1f64176ebbfe /src | |
parent | 0ade661fe361dae2f733587f1934e078fd4559fb (diff) |
Lua: Move "pick up rod" help to C
Diffstat (limited to 'src')
-rw-r--r-- | src/help.c | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -14,7 +14,7 @@ #include "angband.h" #define DESC_MAX 10 -#define TRIGGERED_HELP_MAX 7 +#define TRIGGERED_HELP_MAX 8 #define HELP_VOID_JUMPGATE 0 #define HELP_FOUNTAIN 1 @@ -23,6 +23,7 @@ #define HELP_FOUND_STAIR 4 #define HELP_GET_ESSENCE 5 #define HELP_GET_RUNE 6 +#define HELP_GET_ROD 7 /** * Struct for help triggered by a boolean condition @@ -80,6 +81,11 @@ static bool_ trigger_get_rune(void *in, void *out) { (g->o_ptr->tval == TV_RUNE2)); } +static bool_ trigger_get_rod(void *in, void *out) { + hook_get_in *g = (hook_get_in *) in; + return (g->o_ptr->tval == TV_ROD_MAIN); +} + /** * Trigger-based help items */ @@ -139,6 +145,15 @@ static triggered_help_type triggered_help[TRIGGERED_HELP_MAX] = "create spells on your own.", NULL } + }, + { HELP_GET_ROD, + HOOK_GET, + trigger_get_rod, + { "This is a rod. You will need to attach a rod tip to it before you", + "can use it. This main part of the rod may give the rod bonuses", + "like quicker charging time, or a larger capacity for charges.", + NULL + } } }; |