[2008_10_31_01_mangos_creature_template.sql] Creature related code and DB cleanups.
commite56b671979623570acd358a9b99aa169be22ffba
authorVladimirMangos <vladimir@getmangos.com>
Fri, 31 Oct 2008 17:45:22 +0000 (31 20:45 +0300)
committerVladimirMangos <vladimir@getmangos.com>
Fri, 31 Oct 2008 17:45:22 +0000 (31 20:45 +0300)
treeb677131717bc068d0c31040d1750f41b235d33b3
parent09c5587f2aff2dbbd97781696718bc6190471fae
[2008_10_31_01_mangos_creature_template.sql] Creature related code and DB cleanups.

* Rename 2 creature_template fields to more clean names and related code update also.
* Use enum values instead raw values for type_flags, use halper functions instead code repeating.
* Move tamed pet creating code to new function.
sql/mangos.sql
sql/updates/2008_10_31_01_mangos_creature_template.sql [new file with mode: 0644]
sql/updates/Makefile.am
src/game/Creature.cpp
src/game/Creature.h
src/game/QueryHandler.cpp
src/game/SharedDefines.h
src/game/Spell.cpp
src/game/SpellEffects.cpp
src/game/Unit.cpp
src/game/Unit.h