Instructions Jenkins Doxygen

[Changed] The amount that creatures heal their lair for to be based on 66/766/1
authorIvojedi <ivojedi@swgemu.com>
Sat, 7 Sep 2013 03:16:03 +0000 (20:16 -0700)
committerIvojedi <ivojedi@swgemu.com>
Sat, 7 Sep 2013 03:16:03 +0000 (20:16 -0700)
the level of the lair instead of a static amount

Change-Id: I28752bb371d2ebc6bc68b3d4ceece85a2b7ce0af

MMOCoreORB/src/server/zone/managers/creature/LairObserverImplementation.cpp

index ec9e115..35b392c 100644 (file)
@@ -158,6 +158,7 @@ void LairObserverImplementation::healLair(TangibleObject* lair, TangibleObject*
                return;
 
        int damageToHeal = 0;
+       int lairMaxCondition = lair->getMaxCondition();
 
        for (int i = 0; i < spawnedCreatures.size() ; ++i) {
                CreatureObject* creo = spawnedCreatures.get(i);
@@ -166,7 +167,7 @@ void LairObserverImplementation::healLair(TangibleObject* lair, TangibleObject*
                        continue;
 
                //  TODO: Range check
-               damageToHeal += 100;
+               damageToHeal += lairMaxCondition / 100;
 
        }