Requesting an 'is_morphed' bool in UnitTypeData which tells whether or not a unit is 'morphed' from another unit.
So for example:
Drones are moprhed from Larva
Lair is morphed from hatchery
Spawning pool is morphed from Drone
Command Center upgrades are morphed from it
Zealot is not morphed since it comes out of a Gateway
Supply Depot / Pylon is not morphed since they are built by a worker externally
This is necessary when building a bot to make production decisions and is currently one of the last remaining cases of a big switch statement in bots :)
Requesting an 'is_morphed' bool in UnitTypeData which tells whether or not a unit is 'morphed' from another unit.
So for example:
This is necessary when building a bot to make production decisions and is currently one of the last remaining cases of a big switch statement in bots :)