Exemplo n.º 1
0
        public bool ClubRemoveStatus(ClubStatusFlag Slot)
        {
            Update();
            switch (Slot)
            {
            case ClubStatusFlag.Power:
            {
                if (ItemC0 > 0)
                {
                    ItemC0 -= 1;
                    return(true);
                }
                return(false);
            }

            case ClubStatusFlag.Control:
            {
                if (ItemC1 > 0)
                {
                    ItemC1 -= 1;
                    return(true);
                }
                return(false);
            }

            case ClubStatusFlag.Impact:
            {
                if (ItemC2 > 0)
                {
                    ItemC2 -= 1;
                    return(true);
                }
                return(false);
            }

            case ClubStatusFlag.Spin:
            {
                if (ItemC3 > 0)
                {
                    ItemC3 -= 1;
                    return(true);
                }
                return(false);
            }

            case ClubStatusFlag.Curve:
            {
                if (ItemC4 > 0)
                {
                    ItemC4 -= 1;
                    return(true);
                }
                return(false);
            }
            }
            return(true);
        }
Exemplo n.º 2
0
        public bool ClubAddStatus(ClubStatusFlag Slot)
        {
            Update();
            switch (Slot)
            {
            case ClubStatusFlag.Power:
            {
                ItemC0Slot += 1;
            }
            break;

            case ClubStatusFlag.Control:
            {
                ItemC1Slot += 1;
            }
            break;

            case ClubStatusFlag.Impact:
            {
                ItemC2Slot += 1;
            }
            break;

            case ClubStatusFlag.Spin:
            {
                ItemC3Slot += 1;
            }
            break;

            case ClubStatusFlag.Curve:
            {
                ItemC0Slot += 1;
            }
            break;
            }
            return(true);
        }
Exemplo n.º 3
0
        public ClubUpgradeData ClubSlotAvailable(ClubStatusFlag Slot)
        {
            const uint Power = 2100, Con = 1700, Impact = 2400, Spin = 1900, Curve = 1900;


            var ClubData = new ClubStatus(ItemTypeID);

            switch (Slot)
            {
            case ClubStatusFlag.Power:
            {
                if (ItemC0 < (ClubData.Power + this.ItemC0Slot))
                {
                    var result = new ClubUpgradeData()
                    {
                        Able = true,
                        Pang = (ItemC0 * Power) + Power
                    };
                    return(result);
                }
            }
            break;

            case ClubStatusFlag.Control:
            {
                if (ItemC1 < (ClubData.Control + ItemC1Slot))
                {
                    var result = new ClubUpgradeData()
                    {
                        Able = true,
                        Pang = (ItemC1 * Con) + Con
                    };
                    return(result);
                }
            }
            break;

            case ClubStatusFlag.Impact:
            {
                if (ItemC2 < (ClubData.Impact + ItemC2))
                {
                    var result = new ClubUpgradeData()
                    {
                        Able = true,
                        Pang = (ItemC2 * Impact) + Impact
                    };
                    return(result);
                }
            }
            break;

            case ClubStatusFlag.Spin:
            {
                if (ItemC3 < (ClubData.Spin + ItemC3))
                {
                    var result = new ClubUpgradeData()
                    {
                        Able = true,
                        Pang = (ItemC3 * Spin) + Spin
                    };
                    return(result);
                }
            }
            break;

            case ClubStatusFlag.Curve:
            {
                if (ItemC4 < (ClubData.Curve + ItemC4))
                {
                    var result = new ClubUpgradeData()
                    {
                        Able = true,
                        Pang = (ItemC4 * Curve) + Curve
                    };
                    return(result);
                }
            }
            break;
            }

            return(new ClubUpgradeData());
        }