public override void RCasting() { //HitEffectRPC("Alistar", "R", 14, 0.5f); //for (int i = 0; i < 14; ++i) // Invoke("R", 0.5f * i); //한개로 나오게 바꿈 HitEffectRPC("Alistar", "R", 1, 0.5f); Invoke("R", 0.5f); TheChampionData.UsedR(); switch (TheChampionData.skill_R) { case 1: rSkillTempVal = 122; break; //55% -> 45 = 10000/(100+x) -> x = 1100/9 = 122.2222222222 case 2: rSkillTempVal = 186; break; //65% -> 35 = 10000/(100+x) -> x = 1300/7 = 185.7142857142 case 3: rSkillTempVal = 300; break; //75% -> 25 = 10000/(100+x) -> x = 300 } TheChampionData.totalstat.Ability_Def += rSkillTempVal; TheChampionData.totalstat.Attack_Def += rSkillTempVal; if (!TheUIStat) { FindUICanvas(); } TheUIStat.Refresh(); Invoke("DownDefence", 7f); }
/// <summary> /// R 스킬을 호출하는 함수 /// </summary> public override void RCasting() { HitEffectRPC("Alistar", "R", 1, 0.5f); Invoke("R", 0.5f); CallChampDataUsedSkill("R"); // 스킬 레벨에 따라 값을 설정한다 switch (TheChampionData.skill_R) { case 1: rSkillTempVal = 122; break; //55% -> 45 = 10000/(100+x) -> x = 1100/9 = 122.2222222222 case 2: rSkillTempVal = 186; break; //65% -> 35 = 10000/(100+x) -> x = 1300/7 = 185.7142857142 case 3: rSkillTempVal = 300; break; //75% -> 25 = 10000/(100+x) -> x = 300 } TheChampionData.totalStat.AbilityDef += rSkillTempVal; TheChampionData.totalStat.AttackDef += rSkillTempVal; if (!TheUIStat) { FindUICanvas(); } TheUIStat.Refresh(); Invoke("DebuffDefence", 7f); }
private void DownDefence() { TheChampionData.mystat.Ability_Def -= rSkillTempVal; TheChampionData.mystat.Attack_Def -= rSkillTempVal; rSkillTempVal = 0; TheUIStat.Refresh(); }
private void DownDefence() { TheChampionData.totalstat.Ability_Def -= rSkillTempVal; TheChampionData.totalstat.Attack_Def -= rSkillTempVal; rSkillTempVal = 0; if (!TheUIStat) { FindUICanvas(); } TheUIStat.Refresh(); }
public override void RCasting() { for (int i = 0; i < 14; ++i) { Invoke("R", 0.5f * i); } TheChampionData.UsedR(); switch (TheChampionData.skill_R) { case 1: rSkillTempVal = 122; break; //55% -> 45 = 10000/(100+x) -> x = 1100/9 = 122.2222222222 case 2: rSkillTempVal = 186; break; //65% -> 35 = 10000/(100+x) -> x = 1300/7 = 185.7142857142 case 3: rSkillTempVal = 300; break; //75% -> 25 = 10000/(100+x) -> x = 300 } TheChampionData.mystat.Ability_Def += rSkillTempVal; TheChampionData.mystat.Attack_Def += rSkillTempVal; TheUIStat.Refresh(); Invoke("DownDefence", 7f); }