Exemplo n.º 1
0
    //도발 ''


    public void Skill_DefaultPassive(ref SkillSlot List)//게임시스템패시브(치명타, 방어추뎀, 다운추뎀)
    {
        CharacterStatus OrderStat;
        Skill           Critical = new Skill("Critical");//치명타

        Critical.PassiveCount.Add("Critical", ProbabilityData.Critical);
        Critical.PassiveCount.Add("BaseCritical", ProbabilityData.Critical);
        Critical.SetCharacter(List.GetComponent <CharacterStatus>().Controller);
        Critical.AddPassive(
            delegate(Skill skil)
        {
            OrderStat = gameManager.ins.UserStatus[skil.Order];
            if (gameManager.ins.UserStatus[OrderStat.Enemy()].WallDistance == 0)
            {
                skil.PassiveCount["Critical"] += 80;
            }
            if (Random.Range(0, (100 / skil.PassiveCount["Critical"])) < 1)    //5%
            {
                Debug.Log("크리티컬");
                DamageCalculator.ins.AddDamage(DamageCalculator.MULTIPLE_s, 1.5f, "Critical");
                SaveData.ins.AddData(SaveData.TYPE.CRITICAL, skil.Order, 1);
            }
            if (gameManager.ins.UserStatus[OrderStat.Enemy()].WallDistance == 0)
            {
                skil.PassiveCount["Critical"] -= 80;
            }
        }
            , "Attack");
        List.AddPassiveSlot(Critical);

        Skill SuperArmor = new Skill("SuperArmor");

        SuperArmor.SetCharacter(List.GetComponent <CharacterStatus>().Controller);
        SuperArmor.PassiveCount.Add("isHit", 0);
        SuperArmor.AddPassive(delegate(Skill skill)
        {
            skill.PassiveCount["isHit"] = 1;
        }, "Hit");
        SuperArmor.AddPassive(delegate(Skill skill)
        {
            if (gameManager.ins.UserStatus[skill.Order].isSuperArmor && skill.PassiveCount["isHit"] == 1)
            {
                CharacterAnim.ChangeAnimation(CharacterAnim.AnimStasis.LAND, skill.Order);
                WallManager.ins.ResetPivot();
            }

            skill.PassiveCount["isHit"] = 0;
        }, "WallSetting");
        List.AddPassiveSlot(SuperArmor);
    }
 public override void setUp(int index, ref SkillSlot List)
 {
     Debug.Log("스트리트파이터 셋업");
     List.AddPassiveSlot(StFighter_Passive(index));
 }
Exemplo n.º 3
0
 public override void setUp(int index, ref SkillSlot List)
 {
     Debug.Log("앰살자 셋업");
     List.AddPassiveSlot(Assassin_Passive(index));
 }
Exemplo n.º 4
0
 public override void setUp(int index, ref SkillSlot List)
 {
     Debug.Log("헐크 셋업");
     List.AddPassiveSlot(Golliath_Passive(index));
 }
Exemplo n.º 5
0
 public override void setUp(int index, ref SkillSlot List)
 {
     Debug.Log("방패기사 셋업");
     List.AddPassiveSlot(Sw_Passive(index));
 }
Exemplo n.º 6
0
 public override void setUp(int index, ref SkillSlot List)
 {
     Debug.Log("펜싱맨 셋업");
     List.AddPassiveSlot(Fencing_Passive(index));
 }
Exemplo n.º 7
0
 public override void setUp(int index, ref SkillSlot List)
 {
     Debug.Log("바이 셋업");
     List.AddPassiveSlot(Gauntlet_Passive(index));
 }