Exemplo n.º 1
0
        public override void Execute(Hero hero, string action)
        {
            base.Execute(hero, action);

            if (!action.Equals(AcEat))
            {
                return;
            }

            switch (pdsharp.utils.Random.Int(5))
            {
            case 0:
                GLog.Warning("Oh it's hot!");
                Buff.Affect <Burning>(hero).Reignite(hero);
                break;

            case 1:
                GLog.Warning("You can't feel your legs!");
                Buff.Prolong <Roots>(hero, Paralysis.Duration(hero));
                break;

            case 2:
                GLog.Warning("You are not feeling well.");
                Buff.Affect <Poison>(hero).Set(Poison.DurationFactor(hero) * hero.HT / 5);
                break;

            case 3:
                GLog.Warning("You are stuffed.");
                Buff.Prolong <Slow>(hero, Slow.Duration(hero));
                break;
            }
        }
Exemplo n.º 2
0
    public void SetParalysis(int id, int lv)
    {
        Paralysis paralysis;

        if (!StatusDic.ContainsKey(id))
        {
            paralysis = new Paralysis(id, lv);
            StatusDic.Add(id, paralysis);
            ParalysisDic.Add(id, paralysis.Probability);
        }
        AbnormalRecorder.Add(AbnormalEnum.Paralysis);
    }
Exemplo n.º 3
0
        protected internal override void Evolve()
        {
            base.Evolve();

            for (var i = 0; i < Length; i++)
            {
                Character ch;
                if (Cur[i] > 0 && (ch = FindChar(i)) != null)
                {
                    Buff.Prolong <Paralysis>(ch, Paralysis.Duration(ch));
                }
            }
        }