mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Support rewardable objects
This commit is contained in:
committed by
Andrii Danylchenko
parent
5637cdbe3f
commit
7dc05d8e81
@ -446,6 +446,11 @@ void CRewardableObject::newTurn(CRandomGenerator & rand) const
|
||||
triggerRewardReset();
|
||||
}
|
||||
|
||||
void CRewardableObject::initObj(CRandomGenerator & rand)
|
||||
{
|
||||
VLC->objtypeh->getHandlerFor(ID, subID)->configureObject(this, rand);
|
||||
}
|
||||
|
||||
CRewardableObject::CRewardableObject():
|
||||
selectMode(0),
|
||||
visitMode(0),
|
||||
|
Reference in New Issue
Block a user