summaryrefslogtreecommitdiffstats
path: root/data/scripts/libs/libtmw-constants.lua
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2008-11-02 20:55:37 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2008-11-02 20:55:37 +0000
commitde6575cd162c41e3ced8cff7c7d3e34041da0d56 (patch)
treeecde4d152acc352056475bcffe279e011c2d28b5 /data/scripts/libs/libtmw-constants.lua
parentb714a1ff7e3616233b7232ef05f585e8806b3254 (diff)
Moved the long list of constants at the beginning of libtmw to an additional lua source file.
Diffstat (limited to 'data/scripts/libs/libtmw-constants.lua')
-rw-r--r--data/scripts/libs/libtmw-constants.lua66
1 files changed, 66 insertions, 0 deletions
diff --git a/data/scripts/libs/libtmw-constants.lua b/data/scripts/libs/libtmw-constants.lua
new file mode 100644
index 0000000..cdc711d
--- /dev/null
+++ b/data/scripts/libs/libtmw-constants.lua
@@ -0,0 +1,66 @@
+-------------------------------------------------------------
+-- TMW Support Library Constants --
+-- --
+-- Some useful numeric values for use by other scripts. --
+-- --
+----------------------------------------------------------------------------------
+-- Copyright 2008 The Mana World Development Team --
+-- --
+-- This file is part of The Mana World. --
+-- --
+-- The Mana World is free software; you can redistribute it and/or modify it --
+-- under the terms of the GNU General Public License as published by the Free --
+-- Software Foundation; either version 2 of the License, or any later version. --
+----------------------------------------------------------------------------------
+
+DAMAGE_PHYSICAL = 0
+DAMAGE_MAGICAL = 1
+DAMAGE_OTHER = 2
+
+ELEMENT_NEUTRAL = 0
+ELEMENT_FIRE = 1
+ELEMENT_WATER = 2
+ELEMENT_EARTH = 3
+ELEMENT_AIR = 4
+ELEMENT_LIGHTNING = 5
+ELEMENT_METAL = 6
+ELEMENT_WOOD = 7
+ELEMENT_ICE = 8
+
+ATTR_PHY_ATK_MIN = 0
+ATTR_PHY_ATK_DELTA = 1
+ATTR_MAG_ATK = 2
+ATTR_PHY_RES = 3
+ATTR_MAG_RES = 4
+ATTR_EVADE = 5
+ATTR_HIT = 6
+ATTR_HP = 7
+ATTR_HP_REGEN = 8
+ELEM_NEUTRAL = 9
+ELEM_FIRE = 10
+ELEM_WATER = 11
+ELEM_EARTH = 12
+ELEM_AIR = 13
+ELEM_SACRED = 14
+ELEM_DEATH = 15
+ATTR_STRENGTH = 16
+ATTR_AGILITY = 17
+ATTR_DEXTERITY = 18
+ATTR_VITALITY = 19
+ATTR_INTELLIGENCE = 20
+ATTR_WILLPOWER = 21
+SKILL_WEAPON_NONE = 22
+SKILL_WEAPON_KNIFE = 23
+SKILL_WEAPON_SWORD = 24
+SKILL_WEAPON_POLEARM = 25
+SKILL_WEAPON_STAFF = 26
+SKILL_WEAPON_WHIP = 27
+SKILL_WEAPON_BOW = 28
+SKILL_WEAPON_SHOOTING = 29
+SKILL_WEAPON_MACE = 30
+SKILL_WEAPON_AXE = 31
+SKILL_WEAPON_THROWN = 32
+
+TILESIZE = 32
+HOURS = 3600
+MINUTES = 60 \ No newline at end of file