Closed marek22k closed 8 months ago
True, uniques from different sources are only "assembled" for MapUnits, not for BaseUnits. Seems it was never intendend that uniques on UnitTypes could be in effect before an actual unit exists.
@yairm210 - architectural questions...
isProbablySiegeUnit
- also think about whether using uniqueMap might be better - also measure AI call frequency and cache gainuniqueMap: UniqueMap
vs uniqueMap: Map<String, List<Unique>>
discrepancies?... works (same for UniqueMap), but raises other questions. I might have forgotten or missed the design discussions, so feel free to ignore.
... another way to prettify that part of the hierarchy, sacrificing a tiny shortcut (not triggering the uniqueObjects lazy if uniques is empty - will trigger soon enough anyway?)?
UnCiv Version: 4.5.16-patch1
Hello,
I am creating a mod and I noticed that the Unique
Never appears as a Barbarian unit
does not work for Unit type. Units of this type still appear as barbarian. Someone else on Discord could observe the same thing.