private float GetBodyWeight(UnitDesign unitDesign) { if (unitDesign.CheckAgainstTag("UnitClassInfantry")) { return(20f); } if (unitDesign.CheckAgainstTag("UnitClassArcher")) { return(10f); } if (unitDesign.CheckAgainstTag("UnitClassSupport")) { return(5f); } if (unitDesign.CheckAgainstTag("UnitClassFrigate")) { return(20f); } if (unitDesign.CheckAgainstTag("UnitClassInterceptor")) { return(10f); } if (unitDesign.CheckAgainstTag("UnitClassJuggernaut")) { return(5f); } if (unitDesign.CheckAgainstTag("UnitClassSubmersible")) { return(5f); } return(10f); }
private bool UnitDesignFilter_NavyMilitaryUnit(UnitDesign unitDesign) { return(unitDesign.CheckAgainstTag(DownloadableContent16.SeafaringUnit)); }
private bool UnitDesignFilter_LandMilitaryUnit(UnitDesign unitDesign) { return(!unitDesign.CheckAgainstTag(DownloadableContent13.UnitTypeManta) && !unitDesign.CheckAgainstTag(DownloadableContent9.TagColossus) && !unitDesign.CheckAgainstTag(TradableUnit.ReadOnlyMercenary) && !unitDesign.CheckUnitAbility(UnitAbility.ReadonlyColonize, -1) && !unitDesign.CheckUnitAbility(UnitAbility.ReadonlyResettle, -1) && !unitDesign.CheckAgainstTag(DownloadableContent16.SeafaringUnit)); }