diff options
author | megamage <none@none> | 2009-05-22 10:29:48 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-05-22 10:29:48 -0500 |
commit | ab5b273d3cc02f9db39864b39c55a619dc0a88e6 (patch) | |
tree | 0a4c70cceda85c10e754ef70abb0b111c274ec26 /src/game/Vehicle.cpp | |
parent | 4ba955c4ebe1c91ac1b40246d148d34bd7680b09 (diff) |
*Some work on wintergrasp. Player can get ranks by killing other players and can build vehicles at workshop. Vehicles can be used to destroy buildings. Except these no other thing is done.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Vehicle.cpp')
-rw-r--r-- | src/game/Vehicle.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/game/Vehicle.cpp b/src/game/Vehicle.cpp index 9dd36895d56..d05c7085bff 100644 --- a/src/game/Vehicle.cpp +++ b/src/game/Vehicle.cpp @@ -45,10 +45,11 @@ void Vehicle::AddToWorld() AIM_Initialize(); switch(GetEntry()) { - case 27850:InstallAccessory(27905,1);break; - case 28312:InstallAccessory(28319,7);break; - case 32627:InstallAccessory(32629,7);break; + case 27850:InstallAccessory(27905,1);break; + case 28312:InstallAccessory(28319,7);break; + case 32627:InstallAccessory(32629,7);break; } + //setPowerType(POWER_ENERGY);SetMaxPower(POWER_ENERGY, 100); } } @@ -84,6 +85,9 @@ void Vehicle::setDeathState(DeathState s) // overwrite vir void Vehicle::Update(uint32 diff) { Creature::Update(diff); + //310 + //if(getPowerType() == POWER_ENERGY) + // ModifyPower(POWER_ENERGY, 1); } bool Vehicle::Create(uint32 guidlow, Map *map, uint32 phaseMask, uint32 Entry, uint32 vehicleId, uint32 team) |