Beispiel #1
0
    Skill Magma_Debuff(int Order, float[] Parameter)
    {
        int[] Value      = { 2, 50 };//2턴간 50의 데미지(기본값).
        float LoofLength = Value.Length > Parameter.Length ? Parameter.Length : Value.Length;

        for (int i = 0; i < LoofLength; i++)
        {
            Value[i] = (int)Parameter[i];
        }
        StackSkill Magma = new StackSkill(Value[0], base.Number.ToString());

        Magma.SetCharacter(Order);
        Magma.AddPassive(
            delegate(Skill skil)
        {
            Debug.Log("출혈 디버프 들어옴?");
            if (!Magma.StackMinus())
            {
                gameManager.ins.UserSlot[Order].DebuffList.Remove(skil);
                return;
            }
            CharacterStatus OrderStat = gameManager.ins.UserStatus[Order];
            OrderStat.HpDown_Debuff(Value[1]);
        }, "Decision");
        return(Magma);
    }