public static string Age(List <string> strings) { if (CampaignCheats.CheckParameters(strings, 0) || CampaignCheats.CheckHelp(strings)) { return($"{FormatMsgHeader} \"dcc.age [{AgeText}]\"."); } if (!int.TryParse(strings[0], out int num)) { return(EnterAgeMsg.ToString()); } CharacterBodyManager.ResetBirthDayForAge(Hero.MainHero.CharacterObject, num, true); return(SuccessMsg.ToString()); }
public static string Age(List <string> strings) { if (CampaignCheats.CheckParameters(strings, 0) || CampaignCheats.CheckHelp(strings)) { return($"{FormatMsgHeader} \"dcc.age [{AgeText}]\"."); } if (!int.TryParse(strings[0], out int num)) { return(EnterAgeMsg.ToString()); } Hero.MainHero.BirthDay = HeroHelper.GetRandomBirthDayForAge(num); return(SuccessMsg.ToString()); }
public static string AgeHero(List <string> strings) { if (!CampaignCheats.CheckParameters(strings, 2) || CampaignCheats.CheckHelp(strings)) { return($"{FormatMsgHeader} \"dcc.age_hero [{HeroNameText}] [{AgeText}]\"."); } Hero hero = CampaignCheats.GetHero(strings[0].Replace('_', ' ')); if (hero == null) { return(HeroNotFoundMsg.ToString()); } if (!int.TryParse(strings[1], out int num)) { return(EnterAgeMsg.ToString()); } CharacterBodyManager.ResetBirthDayForAge(hero.CharacterObject, num, true); return(SuccessMsg.ToString()); }
public static string AgeHero(List <string> strings) { if (!CampaignCheats.CheckParameters(strings, 2) || CampaignCheats.CheckHelp(strings)) { return($"{FormatMsgHeader.ToString()} \"dcc.age_hero [{HeroNameText.ToString()}] [{AgeText.ToString()}]\"."); } Hero hero = CampaignCheats.GetHero(strings[0].Replace('_', ' ')); if (hero == null) { return(HeroNotFoundMsg.ToString()); } if (!int.TryParse(strings[1], out int num)) { return(EnterAgeMsg.ToString()); } hero.BirthDay = HeroHelper.GetRandomBirthDayForAge(num); return(SuccessMsg.ToString()); }
public static string ResetExceptionCount(List <string> strings) { DCCSettingsUtil.ExceptionCount = 0; return(SuccessMsg.ToString()); }