upgradesOf beta
Function of @v12-engine/engine
ts
upgradesOf: (def: Pick<UnitTypeDef, 'upgradesTo'>) => readonly string[]The types a building can be upgraded into (UnitTypeDef.upgradesTo), as a list: one for most, none for one that turns into nothing