From 46498dfaab2cb0698822397b43039e3ecf605a1e Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Thu, 5 Apr 2012 21:03:18 +0200 Subject: Lua: Move geomancy spell effects to C --- src/spells1.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/spells1.c') diff --git a/src/spells1.c b/src/spells1.c index e99bbc23..8350a4ff 100644 --- a/src/spells1.c +++ b/src/spells1.c @@ -3834,15 +3834,14 @@ static bool_ project_f(int who, int r, int y, int x, int dam, int typ) case GF_ELEMENTAL_WALL: { if ((p_ptr->py != y) || (p_ptr->px != x)) { - exec_lua(format("geomancy_random_wall(%d,%d);", y, x)); + geomancy_random_wall(y, x); } - break; } case GF_ELEMENTAL_GROWTH: { - exec_lua(format("geomancy_random_floor(%d, %d)", y, x)); + geomancy_random_floor(y, x, FALSE); break; } } -- cgit v1.2.3