diff options
Diffstat (limited to 'src/map/magic-expr.h')
-rw-r--r-- | src/map/magic-expr.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/map/magic-expr.h b/src/map/magic-expr.h index 5f58d3c..d8221d0 100644 --- a/src/map/magic-expr.h +++ b/src/map/magic-expr.h @@ -89,4 +89,12 @@ magic_copy_var(val_t *dest, val_t *src); void magic_random_location(location_t *dest, area_t *area); -#endif /* !defined(MAGIC_EXPR_H_) */
\ No newline at end of file +int // ret -1: not a string, ret 1: no such item, ret 0: OK +magic_find_item(val_t *args, int index, struct item *item, int *stackable); + +#define GET_ARG_ITEM(index, dest, stackable) switch(magic_find_item(args, index, &dest, &stackable)) { case -1 : return 1; case 1 : return 0; } + +int +magic_location_in_area(int m, int x, int y, area_t *area); + +#endif /* !defined(MAGIC_EXPR_H_) */ |