diff options
author | silver1ce <none@none> | 2010-03-03 04:32:47 +0200 |
---|---|---|
committer | silver1ce <none@none> | 2010-03-03 04:32:47 +0200 |
commit | f748ea34e383b6c2ed508b6c088f997e642b9712 (patch) | |
tree | 075c578d10f4a6e434ef6403eec30c24555a9be5 /src/game/Creature.h | |
parent | 9e63454b6306c369a9a0b8c21fd4d87e6e9f5a98 (diff) |
changes in creature base stats storage
* speedup stats searching
* no more default stat generation for each class-level pair, there is only one default stat
* CreatureBaseStats does not contain level and class
--HG--
branch : trunk
Diffstat (limited to 'src/game/Creature.h')
-rw-r--r-- | src/game/Creature.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/game/Creature.h b/src/game/Creature.h index 57f7968e58d..d073901a13d 100644 --- a/src/game/Creature.h +++ b/src/game/Creature.h @@ -172,8 +172,6 @@ struct CreatureInfo // Defines base stats for creatures (used to calculate HP/mana/armor). struct CreatureBaseStats { - uint8 Level; - uint8 Class; uint32 BaseHealth[MAX_CREATURE_BASE_HP]; uint32 BaseMana; uint32 BaseArmor; @@ -202,7 +200,7 @@ struct CreatureBaseStats static CreatureBaseStats const* GetBaseStats(uint8 level, uint8 unitClass); }; -typedef std::vector<CreatureBaseStats> CreatureBaseStatsList; +typedef UNORDERED_MAP<uint16, CreatureBaseStats> CreatureBaseStatsMap; struct CreatureLocale { |