Esempio n. 1
0
    public float GetReferencePriceWithSalesTaxes(TradableTransactionType transactionType, global::Empire empire)
    {
        float num = Tradable.GetReferencePrice(this.TradableCategoryDefinition, this.Value);

        num = Tradable.ApplySalesTaxes(num, transactionType, empire);
        if (this is TradableUnit && transactionType == TradableTransactionType.Buyout && empire is MajorEmpire && empire.GetPropertyValue(SimulationProperties.MarketplaceMercCostMultiplier) > 0f)
        {
            num *= empire.GetPropertyValue(SimulationProperties.MarketplaceMercCostMultiplier);
        }
        else if (ELCPUtilities.UseELCPStockpileRulseset && this is TradableBooster && empire is MajorEmpire && empire.GetPropertyValue(SimulationProperties.MarketplaceStockpileCostMultiplier) > 0f)
        {
            num *= empire.GetPropertyValue(SimulationProperties.MarketplaceStockpileCostMultiplier);
        }
        return(this.GetPriceWithSeasonEffectModifier(num, empire));
    }