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:
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user