public void DefeatTarget(GameObject target) { SubObjectTag tag = target.GetComponent <MetaInfo>().SubTag; int potion = actorData.GetIntData(tag, DataTag.Potion); int bonusPotion = target.GetComponent <Infection>().HasInfection( InfectionTag.Mutated) ? potionData.BonusPotion : 0; string victory; GetComponent <Potion>().GainPotion(potion + bonusPotion); progress.CountKill(target); if (progress.IsWin()) { BurySelf(); color.ChangeObjectColor(getActor(SubObjectTag.Guide), ColorName.Orange); if (progressData.IsRushMode) { victory = text.GetStringData(node, "WinRush"); } else { victory = text.GetStringData(node, "WinNormal"); } victory = color.GetColorfulText(victory, ColorName.Green); message.StoreText(victory); modeline.PrintStaticText(text.GetStringData(node, "ReloadWin")); } else if (progress.LevelCleared()) { BurySelf(); color.ChangeObjectColor(getActor(SubObjectTag.Guide), ColorName.Orange); victory = text.GetStringData(node, "Level"); victory = color.GetColorfulText(victory, ColorName.Green); message.StoreText(victory); modeline.PrintStaticText(text.GetStringData(node, "Continue")); } }