From ea6f5cc77d90a8791fb8e66d4c4fe98135fe2e78 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Thu, 10 Feb 2011 01:01:28 +0100 Subject: Synced the libmana-constants.lua file with the current protocol. Trivial. --- scripts/lua/libmana-constants.lua | 127 ++++++++++++++++++++------------------ 1 file changed, 68 insertions(+), 59 deletions(-) (limited to 'scripts') diff --git a/scripts/lua/libmana-constants.lua b/scripts/lua/libmana-constants.lua index f2140125..8399406b 100644 --- a/scripts/lua/libmana-constants.lua +++ b/scripts/lua/libmana-constants.lua @@ -13,57 +13,9 @@ -- 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 = 100 -SKILL_WEAPON_KNIFE = 101 -SKILL_WEAPON_SWORD = 102 -SKILL_WEAPON_POLEARM = 103 -SKILL_WEAPON_STAFF = 104 -SKILL_WEAPON_WHIP = 105 -SKILL_WEAPON_BOW = 106 -SKILL_WEAPON_SHOOTING = 107 -SKILL_WEAPON_MACE = 108 -SKILL_WEAPON_AXE = 109 -SKILL_WEAPON_THROWN = 110 - -TILESIZE = 32 -HOURS = 3600 -MINUTES = 60 +TILESIZE = 32; +HOURS = 3600; +MINUTES = 60; TYPE_ITEM = 0; TYPE_ACTOR = 1; @@ -80,13 +32,60 @@ ACTION_SIT = 3; ACTION_DEAD = 4; ACTION_HURT = 5; -DIRECTION_DEFAULT = 0; -DIRECTION_UP = 1; -DIRECTION_DOWN = 2; -DIRECTION_LEFT = 3; -DIRECTION_RIGHT = 4; -DIRECTION_INVALID = 5; +DIRECTION_DOWN = 1; +DIRECTION_LEFT = 2; +DIRECTION_UP = 4; +DIRECTION_RIGHT = 8; + +GENDER_MALE = 0; +GENDER_FEMALE = 1; + +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; + +-- Core attributes Id +ATTR_STR = 1; +ATTR_AGI = 2; +ATTR_VIT = 3; +ATTR_INT = 4; +ATTR_DEX = 5; +ATTR_WIL = 6; + +-- Derived attributes Id +ATTR_ACCURACY = 6; +ATTR_DEFENSE = 8; +ATTR_DODGE = 9; +ATTR_MAGIC_DODGE = 10; +ATTR_MAGIC_DEFENSE = 11; +ATTR_BONUS_ASPD = 12; + +ATTR_HP = 13; +ATTR_MAX_HP = 14; +ATTR_HP_REGEN = 15; + +ATTR_MOVE_SPEED_TPS = 16; +ATTR_MOVE_SPEED_RAW = 17; + +ATTR_GP = 18; +ATTR_INV_CAPACITY = 19; + +MOB_ATTR_PHY_ATK_MIN = 20; +MOB_ATTR_PHY_ATK_DELTA = 21; +MOB_ATTR_MAG_ATK = 22; + +-- Emotes - TODO: should be obtainable in a smarter way EMOTE_DISGUST = 10000; EMOTE_SURPRISE = 10001; EMOTE_HAPPY = 10002; @@ -102,5 +101,15 @@ EMOTE_PERTURBED = 10011; EMOTE_SPEECH = 10012; EMOTE_BLAH = 10013; -GENDER_MALE = 0; -GENDER_FEMALE = 1; +-- Skills - TODO: should be obtainable in a smarter way +SKILL_WEAPON_NONE = 100 +SKILL_WEAPON_KNIFE = 101 +SKILL_WEAPON_SWORD = 102 +SKILL_WEAPON_POLEARM = 103 +SKILL_WEAPON_STAFF = 104 +SKILL_WEAPON_WHIP = 105 +SKILL_WEAPON_BOW = 106 +SKILL_WEAPON_SHOOTING = 107 +SKILL_WEAPON_MACE = 108 +SKILL_WEAPON_AXE = 109 +SKILL_WEAPON_THROWN = 110 -- cgit v1.2.3-70-g09d2