summaryrefslogtreecommitdiff
path: root/src/map/battle.h
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-10-18 21:59:20 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-10-18 21:59:20 +0000
commitf26dbc30528f8627310fa03f46cefd940ee40588 (patch)
treeed89bb354699d2a5fb34b3b7022f37bc2b68b375 /src/map/battle.h
parent2bc59ef9db7a86d0c483e3848ead57d6d691e6a3 (diff)
downloadhercules-f26dbc30528f8627310fa03f46cefd940ee40588.tar.gz
hercules-f26dbc30528f8627310fa03f46cefd940ee40588.tar.bz2
hercules-f26dbc30528f8627310fa03f46cefd940ee40588.tar.xz
hercules-f26dbc30528f8627310fa03f46cefd940ee40588.zip
Fixed some gcc-specific stuff, silenced some more warnings
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11515 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.h')
-rw-r--r--src/map/battle.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/map/battle.h b/src/map/battle.h
index e7d385b3c..f82e8a3de 100644
--- a/src/map/battle.h
+++ b/src/map/battle.h
@@ -4,6 +4,13 @@
#ifndef _BATTLE_H_
#define _BATTLE_H_
+// state of a single attack attempt; used in flee/def penalty calculations when mobbed
+enum damage_lv {
+ ATK_LUCKY=1, // attack was lucky-dodged
+ ATK_FLEE, // attack was dodged
+ ATK_DEF // attack connected
+};
+
// _[W
struct Damage {
int damage,damage2;