Exemple #1
0
    public static void Potion_CostHeal(int Cost) //됨
    {
        StackSkill s = TempSkill as StackSkill;

        s.PassiveCount.Add("CostHeal", Cost);
        s.PassiveCount.Add("Using", 0);
        s.isUseTurn    = false;
        s.isUseToStack = true;
        if (s == null)
        {
            return;
        }
        s.ActiveSkillSet(delegate(Skill skill)
        {
            if (s.TempStack != 0 && skill.PassiveCount["Using"] != 1)
            {
                skill.PassiveCount["Using"] = 1;
                s.StackMinus();
                CharacterStatus Stat = skill.GetOrder();
                skill.GetOrder().CostPlus((int)skill.PassiveCount["CostHeal"]);
            }
        });
        s.AddPassive(delegate(Skill skill)
        {
            skill.PassiveCount["Using"] = 0;
        }, "End");
        TempSkill = s;
    }
Exemple #2
0
    public static void Potion_HpHeal(int Heal) //됨
    {
        StackSkill s = TempSkill as StackSkill;

        s.PassiveCount.Add("Heal", Heal);
        s.PassiveCount.Add("Using", 0);
        s.isUseTurn    = false;
        s.isUseToStack = true;
        if (s == null)
        {
            return;
        }
        s.ActiveSkillSet(delegate(Skill skill)
        {
            if (s.TempStack != 0 && skill.PassiveCount["Using"] != 1)
            {
                skill.PassiveCount["Using"] = 1;
                s.StackMinus();
                CharacterStatus Stat = skill.GetOrder();
                Stat.HpDown(-(int)s.PassiveCount["Heal"]);
                if (Stat.MaxHP < Stat.HP)
                {
                    Stat.HP = Stat.MaxHP;
                }
            }
        });
        s.AddPassive(delegate(Skill skill)
        {
            skill.PassiveCount["Using"] = 0;
        }, "End");
        TempSkill = s;
    }
Exemple #3
0
    public static void Potion_DamageUp(float Damage) //됨
    {
        StackSkill s = TempSkill as StackSkill;

        if (s == null)
        {
            return;
        }
        s.PassiveCount.Add("Count", 0);

        s.ActiveSkillSet(delegate(Skill skill)
        {            //체크
            if (s.TempStack != 0 && skill.PassiveCount["Count"] != 1)
            {
                skill.PassiveCount["Count"] = 1;
                s.StackMinus();
            }
        });
        s.AddPassive(delegate(Skill skill)
        {
            if (skill.PassiveCount["Count"] == 1)
            {
                DamageCalculator.ins.AddDamage(DamageCalculator.MULTIPLE_s, Damage * 0.01f + 1, "PotionUp");
            }
        }, "Attack");
        s.AddPassive(delegate(Skill skill)
        {
            skill.PassiveCount["Count"] = 0;
        }, "End");
    }
Exemple #4
0
    public static void Potion_Perfect()///~
    {
        StackSkill s = TempSkill as StackSkill;

        if (s == null)
        {
            return;
        }
        s.PassiveCount.Add("Using", 0);
        s.ActiveSkillSet(delegate(Skill skill)
        {
            if (skill.PassiveCount["Using"] == 1)
            {
                return;
            }
            s.StackMinus();
            skill.PassiveCount["Using"] = 1;
        });
        s.AddPassive(delegate(Skill skill)
        {
            if (skill.PassiveCount["Using"] == 1)
            {
                gameManager.ins.TimingWeight[skill.Order] = gameManager.PERPECT;
                Skill sk = SkillManager.ins.GetSkill(skill.Order, "Critical");
                sk.PassiveCount["Critical"] = 30f;
            }
        }, "Decision");
        s.AddPassive(delegate(Skill skill)
        {
            if (skill.PassiveCount["Using"] == 1)
            {
                Skill sk = SkillManager.ins.GetSkill(skill.Order, "Critical");
                sk.PassiveCount["Critical"] = sk.PassiveCount["BaseCritical"];
                skill.PassiveCount["Using"] = 0;
            }
        }, "End");
    }
Exemple #5
0
    public static void Potion_SuperArmor( )//됨
    {
        StackSkill s = TempSkill as StackSkill;

        s.PassiveCount.Add("Using", 0);
        if (s == null)
        {
            return;
        }
        s.ActiveSkillSet(delegate(Skill skill)
        {
            if (s.TempStack != 0 && skill.PassiveCount["Using"] != 1)
            {
                skill.PassiveCount["Using"] = 1;
                CharacterStatus Stat        = skill.GetOrder();
                Stat.isSuperArmor           = true;
                s.StackMinus();
                Debug.Log("슈아 사용함");
            }
        });
        s.AddPassive(delegate(Skill skill)
        {
            if (skill.PassiveCount["Using"] == 1)
            {
                DamageCalculator.ins.AddDamage(DamageCalculator.MULTIPLE_s, 0.5f, "SuperArmor");
            }
        }, "Hit");
        s.AddPassive(delegate(Skill skill)
        {
            CharacterStatus Stat = skill.GetOrder();

            skill.PassiveCount["Using"] = 0;
            Stat.isSuperArmor           = false;
        }, "End");
        TempSkill = s;
    }