1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

Removed unused code. Fixed legions of neutrals spawning all around.

This commit is contained in:
DjWarmonger
2010-07-07 12:51:28 +00:00
parent fb7771fcc2
commit 78789ef7fc

View File

@@ -982,10 +982,10 @@ void CGHeroInstance::initObj()
break; break;
case 2://secondary skill case 2://secondary skill
speciality.growthsWithLevel = true; speciality.growthsWithLevel = true;
bonus.type = Bonus::SECONDARY_SKILL; bonus.type = Bonus::SPECIAL_SECONDARY_SKILL; //needs to be recalculated with level, based on this value
bonus.subtype = it->val; //skill id bonus.subtype = it->subtype; //skill id
bonus.val = it->additionalinfo * level; //actual value, screwed mapping :/ bonus.val = it->val; //value per level, in percent
switch (it->subtype) switch (it->additionalinfo)
{ {
case 0: //normal case 0: //normal
bonus.valType = Bonus::PERCENT_TO_BASE; bonus.valType = Bonus::PERCENT_TO_BASE;
@@ -2704,14 +2704,8 @@ void CGCreature::initObj()
amount = c.ammMax; amount = c.ammMax;
else else
amount = c.ammMin + (ran() % (c.ammMax - c.ammMin)); amount = c.ammMin + (ran() % (c.ammMax - c.ammMin));
/*
MetaString ms;
int pom = slots.find(0)->second.getQuantityID();
pom = 174 + 3*pom + 1;
ms << std::pair<ui8,ui32>(6,pom) << " " << std::pair<ui8,ui32>(7,subID);
ms.toString(hoverName);
temppower = slots[0].count * 1000; temppower = slots[0].count * 1000;
*/
} }
void CGCreature::newTurn() const void CGCreature::newTurn() const
{//Works only for stacks of single type of size up to 2 millions {//Works only for stacks of single type of size up to 2 millions