aboutsummaryrefslogtreecommitdiff
path: root/src/game/Creature.h
diff options
context:
space:
mode:
authorsilver1ce <none@none>2010-03-03 02:48:31 +0200
committersilver1ce <none@none>2010-03-03 02:48:31 +0200
commit9e63454b6306c369a9a0b8c21fd4d87e6e9f5a98 (patch)
tree833fbd1aaf83493f58c2b38598e6b69012a18be0 /src/game/Creature.h
parentab51061318a8a1255259ce206c3c5c9abbdcc616 (diff)
store unit's level in uint8 format
TODO: may be change db format too --HG-- branch : trunk
Diffstat (limited to 'src/game/Creature.h')
-rw-r--r--src/game/Creature.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/Creature.h b/src/game/Creature.h
index d19ee3635a1..57f7968e58d 100644
--- a/src/game/Creature.h
+++ b/src/game/Creature.h
@@ -82,8 +82,8 @@ struct CreatureInfo
char* SubName;
char* IconName;
uint32 GossipMenuId;
- uint32 minlevel;
- uint32 maxlevel;
+ uint8 minlevel;
+ uint8 maxlevel;
uint32 expansion;
uint32 faction_A;
uint32 faction_H;
@@ -172,7 +172,7 @@ struct CreatureInfo
// Defines base stats for creatures (used to calculate HP/mana/armor).
struct CreatureBaseStats
{
- uint32 Level;
+ uint8 Level;
uint8 Class;
uint32 BaseHealth[MAX_CREATURE_BASE_HP];
uint32 BaseMana;
@@ -199,7 +199,7 @@ struct CreatureBaseStats
return uint32((BaseArmor * info->ModArmor) + 0.5f);
}
- static CreatureBaseStats const* GetBaseStats(uint32 level, uint8 unitClass);
+ static CreatureBaseStats const* GetBaseStats(uint8 level, uint8 unitClass);
};
typedef std::vector<CreatureBaseStats> CreatureBaseStatsList;