From a1ebb9363e31ad449377a5794f1bf93d84e25bc8 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Sun, 4 Mar 2012 15:53:46 +0100 Subject: Import Theme repository into main repository --- lib/mods/theme/core/monsters.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 lib/mods/theme/core/monsters.lua (limited to 'lib/mods/theme/core/monsters.lua') diff --git a/lib/mods/theme/core/monsters.lua b/lib/mods/theme/core/monsters.lua new file mode 100644 index 00000000..ca2851a0 --- /dev/null +++ b/lib/mods/theme/core/monsters.lua @@ -0,0 +1,16 @@ +-- SYSTEM FILE +-- +-- Monster stuff, do not touch +-- + +function summon_monster(y, x, lev, friend, typ) + if type(typ) == "number" then + if friend == TRUE then + return summon_specific_friendly(y, x, lev, typ, FALSE) + else + return summon_specific(y, x, lev, typ) + end + else + return summon_monster_aux(y, x, lev, friend, typ) + end +end -- cgit v1.2.3