mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Moved object type randomization to object class
This commit is contained in:
@@ -166,6 +166,11 @@ void CGObjectInstance::setType(si32 newID, si32 newSubID)
|
||||
cb->gameState()->map->addBlockVisTiles(this);
|
||||
}
|
||||
|
||||
void CGObjectInstance::pickRandomObject(CRandomGenerator & rand)
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
void CGObjectInstance::initObj(CRandomGenerator & rand)
|
||||
{
|
||||
switch(ID)
|
||||
|
||||
Reference in New Issue
Block a user