summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_spells.cc
blob: 8e5c2feffa67367fdc26b78c968dd745151b99a4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * File:     l_spells.cc
 * Summary:  Boolean feat-related functions lua library "feat".
 */

#include "AppHdr.h"

#include "clua.h"
#include "cluautil.h"
#include "l_libs.h"

#include "coord.h"
#include "dungeon.h"
#include "env.h"
#include "spells1.h"
#include "spells2.h"
#include "spells3.h"
#include "spells4.h"
#include "terrain.h"

LUAWRAP(_refrigeration, cast_refrigeration(luaL_checkint(ls, 1), true))
LUAWRAP(_toxic_radiance, cast_toxic_radiance(true))

const struct luaL_reg spells_dlib[] =
{
{ "refrigeration", _refrigeration },
{ "toxic_radiance", _toxic_radiance },
{ NULL, NULL }
};