1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-03 00:46:55 +02:00

Stack experience more or less handled. Neutrals get 10K xp every day.

This commit is contained in:
DjWarmonger
2011-02-13 13:11:09 +00:00
parent 252cee96f5
commit a5a493bfc1
4 changed files with 14 additions and 3 deletions

View File

@ -2962,6 +2962,8 @@ void CGCreature::newTurn() const
cb->setObjProperty(id, 10, std::min (power/1000 , (ui32)CREEP_SIZE)); //set new amount
cb->setObjProperty(id, 11, power); //increase temppower
}
if (STACK_EXP)
cb->setObjProperty(id, 12, 10000); //for testing purpose
}
void CGCreature::setPropertyDer(ui8 what, ui32 val)
{
@ -2973,6 +2975,9 @@ void CGCreature::setPropertyDer(ui8 what, ui32 val)
case 11:
temppower = val;
break;
case 12:
giveStackExp(val);
break;
}
}