public static int GetShipUpgradeBaseDoubloonCost(ShipUpgrades.UpgradeType upgradeType)
        {
            int doubloonCost = 500;

            switch (upgradeType)
            {
            case ShipUpgrades.UpgradeType.Theme: doubloonCost = 1000; break;

            case ShipUpgrades.UpgradeType.Paint: doubloonCost = 1000; break;

            case ShipUpgrades.UpgradeType.CannonMetal: doubloonCost = 1000; break;

            case ShipUpgrades.UpgradeType.Outfitting: doubloonCost = 2000; break;

            case ShipUpgrades.UpgradeType.Banner: doubloonCost = 1000; break;

            case ShipUpgrades.UpgradeType.Charm: doubloonCost = 1000; break;

            case ShipUpgrades.UpgradeType.MinorAbility: doubloonCost = 500; break;

            case ShipUpgrades.UpgradeType.MajorAbility: doubloonCost = 1000; break;

            case ShipUpgrades.UpgradeType.EpicAbility: doubloonCost = 2000; break;
            }

            return(doubloonCost);
        }
Пример #2
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int version = reader.ReadInt();

            //Version 0
            if (version >= 0)
            {
                m_UpgradeType = (ShipUpgrades.UpgradeType)reader.ReadInt();

                m_ThemeUpgrade       = (ShipUpgrades.ThemeType)reader.ReadInt();
                m_PaintUpgrade       = (ShipUpgrades.PaintType)reader.ReadInt();
                m_CannonMetalUpgrade = (ShipUpgrades.CannonMetalType)reader.ReadInt();

                m_OutfittingUpgrade = (ShipUpgrades.OutfittingType)reader.ReadInt();
                m_BannerUpgrade     = (ShipUpgrades.BannerType)reader.ReadInt();
                m_CharmUpgrade      = (ShipUpgrades.CharmType)reader.ReadInt();

                m_MinorAbilityUpgrade = (ShipUpgrades.MinorAbilityType)reader.ReadInt();
                m_MajorAbilityUpgrade = (ShipUpgrades.MajorAbilityType)reader.ReadInt();
                m_EpicAbilityUpgrade  = (ShipUpgrades.EpicAbilityType)reader.ReadInt();
            }
        }