Exemplo n.º 1
0
        public bool BoostStats(CharacterGuild Player, char Stats)
        {
            if (Player.Can(GuildRightEnum.RIGHT_BOOST))
            {
                switch (Stats)
                {
                case 'p':     // Prospection.
                    if (this.Capital > 0)
                    {
                        if (this.myStats.GetTotal(EffectEnum.AddProspection) < 500)
                        {
                            this.myStats.AddBase(EffectEnum.AddProspection, 1);
                            this.Capital--;
                        }
                    }
                    break;

                case 'x':     // Sagesse.
                    if (this.Capital > 0)
                    {
                        if (this.myStats.GetTotal(EffectEnum.AddSagesse) < 400)
                        {
                            this.myStats.AddBase(EffectEnum.AddSagesse, 1);
                            this.Capital--;
                        }
                    }
                    break;

                case 'o':     // Pods
                    if (this.Capital > 0)
                    {
                        if (this.myStats.GetTotal(EffectEnum.AddPods) < 5000)
                        {
                            this.myStats.AddBase(EffectEnum.AddPods, 20);
                            this.Capital--;
                        }
                    }
                    break;

                case 'k':     // PerceptorCount.
                    if (this.Capital > 9)
                    {
                        if (this.PerceptorMaxCount < 50)
                        {
                            this.PerceptorMaxCount++;
                            this.Capital -= 10;
                        }
                    }
                    break;

                default:     // UNKNOW STATS ID
                    return(false);
                }

                return(true);
            }

            return(false);
        }
Exemplo n.º 2
0
        public bool BoostSpell(CharacterGuild Player, int SpellId)
        {
            if (Player.Can(GuildRightEnum.RIGHT_BOOST))
            {
                if (this.mySpells.HasSpell(SpellId))
                {
                    if (this.Capital > 4)
                    {
                        this.mySpells.LevelUpSepll(SpellId);

                        this.Capital -= 5;

                        this.PatternSpells.NeedToBeRefresh();

                        return(true);
                    }
                }
            }

            return(false);
        }