예제 #1
0
        public static float GetSpecialDefence(IPokemon pokemon)
        {
            float stageMultipler = StageHelper.StageToMultipler(pokemon.StatModifierStages[(int)StatType.SpecialDefence]);
            int   specialDefence = Convert.ToInt32(pokemon.Stats.SpecialDefence * stageMultipler);

            return(specialDefence);
        }
예제 #2
0
        protected ActionResult GoNext()
        {
            var nextStage = CurrentStage + 1;

            Hero.SetStatus(nextStage);
            SaveHeroToCookies(Hero);
            return(CustomRedirect(StageHelper.GetPage(nextStage), new { IsPartial = true }));
        }
예제 #3
0
        public static float GetAttack(IPokemon pokemon)
        {
            float stageMultipler     = StageHelper.StageToMultipler(pokemon.StatModifierStages[(int)StatType.Attack]);
            int   conditionMultipler = pokemon.Condition != Condition.BRN ? 1 : 2;
            int   attack             = Convert.ToInt32(pokemon.Stats.Attack / conditionMultipler * stageMultipler);

            return(attack);
        }
예제 #4
0
        public static float GetSpeed(IPokemon pokemon)
        {
            float stageMultipler     = StageHelper.StageToMultipler(pokemon.StatModifierStages[(int)StatType.Speed]);
            int   conditionMultipler = Convert.ToInt32(pokemon.Condition != Condition.PAR ? 1 : 1.5f);
            int   speed = Convert.ToInt32(pokemon.Stats.Speed / conditionMultipler * stageMultipler);

            return(speed);
        }
예제 #5
0
 public ActionResult OnGet(MajorType major, HeroGenStage?stage)
 {
     stage ??= GetHeroFromCookies(major).MaxStage;
     return(CustomRedirect(StageHelper.GetPage(stage.Value)));
 }