public void EndSkill1() { SkillAnim1.enabled = false; IsSkillGame = false; AlchemyButton.enabled = true; SkillTime.StartCoroutine("TimeFlow"); TimeManager.nowFlow = true; UsingSkill1Pos = UsingSkillSet1.position; UsingSkill1Pos.y -= 10f; StartCoroutine("EndUsingSkill1"); if (Skill1isOk) { nowSkill = true; ProfUpdate1(); SoundManager.sounds["MagicComplete"].Play(); message.PopUpEventMesg("[000000]스킬이 발동되었습니다"); switch (Skill1Level) { case 1: PotionListManager.validitynum = 2; Guage.CompleteGuageChange(5, false); Instantiate(Skill1Effect, EffectPoint); break; case 2: PotionListManager.validitynum = 3; Guage.CompleteGuageChange(10, false); Instantiate(Skill1Effect, EffectPoint); break; case 3: PotionListManager.validitynum = 4; Guage.CompleteGuageChange(15, false); Instantiate(Skill1Effect, EffectPoint); break; } } else { SoundManager.sounds["BrokenSound"].Play(); message.PopUpEventMesg("[000000]스킬발동에 [F10000]실패[000000]했습니다."); } }
IEnumerator FindCase() { yield return(new WaitForSeconds(0.2f)); if (AlchemyManager.Blue >= 2 && getParmeter.useItemNum == 2) { getParmeter.CompleteGuageChange(3, false); PotionCase = 0; } //----------------------------------------------------------------Skill2 사용시 else if ((AlchemyManager.Blue >= 1 || AlchemyManager.Red >= 1 || AlchemyManager.Gas >= 1) && getParmeter.useItemNum == 1 && CompleteSkill2 && !CompleteSkill3)//허브 { getParmeter.CompleteGuageChange(10, true); PotionCase = 47; } else if ((AlchemyManager.Blue >= 1 || AlchemyManager.Red >= 1 || AlchemyManager.Gas >= 1) && getParmeter.useItemNum == 15 && CompleteSkill2 && !CompleteSkill3)//자색허브 { getParmeter.CompleteGuageChange(10, true); PotionCase = 46; } else if ((AlchemyManager.Blue >= 1 || AlchemyManager.Red >= 1 || AlchemyManager.Gas >= 1) && getParmeter.useItemNum == 5 && CompleteSkill2 && !CompleteSkill3) { getParmeter.CompleteGuageChange(10, true); PotionCase = 50; } else if ((AlchemyManager.Blue >= 1 || AlchemyManager.Red >= 1 || AlchemyManager.Gas >= 1) && getParmeter.useItemNum == 9 && CompleteSkill2 && !CompleteSkill3) { getParmeter.CompleteGuageChange(20, true); PotionCase = 49; } else if ((AlchemyManager.Blue >= 1 || AlchemyManager.Red >= 1 || AlchemyManager.Gas >= 1) && getParmeter.useItemNum == 13 && CompleteSkill2 && !CompleteSkill3) { getParmeter.CompleteGuageChange(20, true); PotionCase = 49; } else if ((AlchemyManager.Blue >= 1 || AlchemyManager.Red >= 1 || AlchemyManager.Gas >= 1) && getParmeter.useItemNum == 14 && CompleteSkill2 && !CompleteSkill3) { getParmeter.CompleteGuageChange(45, true); PotionCase = 45; } //---------------------------------------------------------------------Skill3 else if ((AlchemyManager.Blue >= 1 || AlchemyManager.Red >= 1 || AlchemyManager.Gas >= 1) && getParmeter.useItemNum == 5 && !CompleteSkill2 && CompleteSkill3) { PotionCase = 97; } else if ((AlchemyManager.Blue >= 1 || AlchemyManager.Red >= 1 || AlchemyManager.Gas >= 1) && getParmeter.useItemNum == 1 && CompleteSkill3) { int Percen = Random.Range(0, 5); if (Percen > 3) { PotionCase = 98; } else { PotionCase = 94; } } else if ((AlchemyManager.Blue >= 1 || AlchemyManager.Red >= 1 || AlchemyManager.Gas >= 1) && getParmeter.useItemNum == 15 && CompleteSkill3) { int Percen = Random.Range(0, 5); if (Percen > 3) { PotionCase = 98; } else { PotionCase = 93; } } else if ((AlchemyManager.Blue >= 1 || AlchemyManager.Red >= 1 || AlchemyManager.Gas >= 1) && getParmeter.useItemNum == 9 && !CompleteSkill2 && CompleteSkill3) { PotionCase = 96; } else if ((AlchemyManager.Blue >= 1 || AlchemyManager.Red >= 1 || AlchemyManager.Gas >= 1) && getParmeter.useItemNum == 10 && !CompleteSkill2 && CompleteSkill3) { PotionCase = 92; } else if ((AlchemyManager.Blue >= 1 || AlchemyManager.Red >= 1 || AlchemyManager.Gas >= 1) && getParmeter.useItemNum == 13 && CompleteSkill3) { PotionCase = 95; } //------------------------------------------스킬없이 재료조합시------------------------- else if (AlchemyManager.Gas > 3 && getParmeter.useItemNum == 5) { getParmeter.CompleteGuageChange(10, false); PotionCase = 4; } else if (AlchemyManager.Gas > 0 && getParmeter.useItemNum == 2) { getParmeter.CompleteGuageChange(10, false); PotionCase = 104; } else if (AlchemyManager.Red >= 3 && getParmeter.useItemNum == 9) { getParmeter.CompleteGuageChange(15, false); PotionCase = 101;//붉은버섯 조합식 } //꽃 조합식--------------------------------------------------------- else if (AlchemyManager.Gas == 1 && getParmeter.useItemNum == 10) { getParmeter.CompleteGuageChange(35, false); PotionCase = 102; //꽃 조합식 } else if (AlchemyManager.Gas > 1 && getParmeter.useItemNum == 10) { getParmeter.ResetGuage(); PotionCase = 99;//실패시 } //----------------------------------------------------------------- else if (AlchemyManager.Gas >= 3 && getParmeter.useItemNum == 13) { getParmeter.CompleteGuageChange(15, false); PotionCase = 103;//설탕조합식 } //---------------------------------------------------------------------Skill없이 일반 제조시 else if (AlchemyManager.Blue >= 3 && getParmeter.useItemNum == 1 && !CompleteSkill3)//허브 { getParmeter.CompleteGuageChange(5, false); PotionCase = 1; } else if (AlchemyManager.Blue < 3 && AlchemyManager.Red >= 1 && getParmeter.useItemNum == 1 && !CompleteSkill3)//허브 { getParmeter.CompleteGuageChange(8, false); PotionCase = 2; } else if (AlchemyManager.Blue >= 3 && getParmeter.useItemNum == 15 && !CompleteSkill3)//자색허브 { getParmeter.CompleteGuageChange(8, false); PotionCase = 2; } else if (AlchemyManager.Blue < 3 && AlchemyManager.Red >= 1 && getParmeter.useItemNum == 15 && !CompleteSkill3)//자색허브 { getParmeter.CompleteGuageChange(5, false); PotionCase = 1; } else if (AlchemyManager.Blue >= 2 && getParmeter.useItemNum == 3) { getParmeter.CompleteGuageChange(10, false); PotionCase = 3; } else if (AlchemyManager.Blue >= 1 && AlchemyManager.Red >= 1 && getParmeter.useItemNum == 4) { getParmeter.CompleteGuageChange(10, false); PotionCase = 5; } else if (AlchemyManager.Blue >= 2 && getParmeter.useItemNum == 5 && !CompleteSkill3 && !CompleteSkill2)//흰색 깃털 { getParmeter.CompleteGuageChange(10, false); PotionCase = 6; } else if (AlchemyManager.Blue >= 3 && getParmeter.useItemNum == 6) { getParmeter.CompleteGuageChange(10, false); PotionCase = 7;//민첩포션 } else if (AlchemyManager.Blue >= 2 && AlchemyManager.Red >= 2 && getParmeter.useItemNum == 6) { getParmeter.CompleteGuageChange(25, false); PotionCase = 8;//고효능 민첩포션 } else if (AlchemyManager.Blue >= 2 && getParmeter.useItemNum == 7) { getParmeter.CompleteGuageChange(10, false); PotionCase = 9;//네타500 } else if (AlchemyManager.Blue >= 3 && getParmeter.useItemNum == 8) { getParmeter.CompleteGuageChange(10, false); PotionCase = 10;//박카스 } else if (AlchemyManager.Red >= 3 && getParmeter.useItemNum == 8) { getParmeter.CompleteGuageChange(20, false); PotionCase = 16;//멀미약 } else if (AlchemyManager.Red >= 1 && getParmeter.useItemNum == 9) { getParmeter.CompleteGuageChange(10, false); PotionCase = 1;//버섯 기본 } else if (AlchemyManager.Red >= 2 && getParmeter.useItemNum == 10) { getParmeter.CompleteGuageChange(20, false); PotionCase = 11;//힘포션 } else if (AlchemyManager.Blue >= 1 && AlchemyManager.Red >= 1 && AlchemyManager.Gas >= 1 && getParmeter.useItemNum == 11) { getParmeter.CompleteGuageChange(50, false); PotionCase = 12;//고효능힘포션 } else if (AlchemyManager.Blue >= 4 && getParmeter.useItemNum == 12) { getParmeter.CompleteGuageChange(10, false); PotionCase = 13;//쌍화탕 } else if (AlchemyManager.Blue >= 2 && getParmeter.useItemNum == 13) { getParmeter.CompleteGuageChange(10, false); PotionCase = 15;//설탕 기본 } else if (AlchemyManager.Red >= 3 && getParmeter.useItemNum == 14) { getParmeter.CompleteGuageChange(25, false); PotionCase = 14; } else if (AlchemyManager.Blue >= 2 && getParmeter.useItemNum == 14) { getParmeter.CompleteGuageChange(10, false); PotionCase = 17; } //------------------------------------------------------- else { PotionCase = 99; } StartCoroutine("FindCase"); // Debug.Log(PotionCase); }