diff options
author | Bardur Arantsson <bardur@scientician.net> | 2012-05-28 07:55:57 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2012-05-29 21:43:56 +0200 |
commit | 77fcd7e02c87167002b8294a47c6cc37a0c960b3 (patch) | |
tree | 46d377f3994b514778162060f514d73359a942bb /src/types.h | |
parent | f2b27a7ab74529504da68d418fdcecabd5ee989a (diff) |
Lua: Reintroduce the "obvious" flag from casting
This got accidentally removed when moving the spell functions to C.
Diffstat (limited to 'src/types.h')
-rw-r--r-- | src/types.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/types.h b/src/types.h index 9aa3409c..ed86a4af 100644 --- a/src/types.h +++ b/src/types.h @@ -2520,6 +2520,15 @@ typedef enum { USE_SPELL_POINTS, USE_PIETY } casting_type; /* + * Spell effect function result + */ +typedef enum { + NO_CAST, /* Spell not cast; user aborted */ + CAST_OBVIOUS, /* Cast; caster discovers effect (devices) */ + CAST_HIDDEN /* Cast; caster does NOT discover effect (devices) */ +} casting_result; + +/* * The spell function must provide the desc */ typedef struct spell_type spell_type; @@ -2529,7 +2538,7 @@ struct spell_type byte skill_level; /* Required level (to learn) */ string_list *description; /* List of strings */ - bool_ *(*effect_func)(int o_idx); /* Spell effect function */ + casting_result (*effect_func)(int o_idx); /* Spell effect function */ char* (*info_func)(); /* Information function */ int (*lasting_func)(); /* Lasting effect function */ bool_ (*depend_func)(); /* Check dependencies */ |