X2CommunityCore / X2CommunityHighlander

MIT License
7 stars 3 forks source link

X2FacilityTemplate is limited in terms of what soldiers it can show by default #265

Open RealityMachina opened 7 years ago

RealityMachina commented 7 years ago

Specifically, inX2FacilityTemplate.PlaceCrewMember(), when it comes to placing soldiers, it checks them by GetMyTemplateName() == 'Soldier'instead of IsSoldier(), which is an unnecessary restriction as the game checks whether the unit can appear in the base at all beforehand, so disallowed units like SPARK wouldn't appear anyway.

Altering this to use the IsSoldier() check would be appreciated as it would expand the number of appearances of Allies Unknown soldiers in the base beyond just the staff slot ones.