Ejemplo n.º 1
0
 private void BattleOver()
 {
     startingCharacterStatistics.BattleOver(Winner);
     characterGoingLastStatistics.BattleOver(Winner);
     combatant.StillStanding(this);
     opponent.StillStanding(this);
     ToString();
 }
Ejemplo n.º 2
0
        public string NextArenaEvent(bool healUpFirst = false)
        {
            if (NextOpponent == null)
            {
                GenerateNextOpponent();
            }
            gladiators[NextOpponent.id] = NextOpponent;
            if (healUpFirst)
            {
                Player.CurHitPoints = Player.MaxHitPoints;
            }
            Battle b = new Battle(Player, NextOpponent);

            battles.Add(b);
            if (NextOpponent.StillStanding(b))
            {
            }
            else
            {
                gladiators.Remove(NextOpponent.id);
                deceasedGladiators[NextOpponent.id] = NextOpponent;
            }
            NextOpponent = null;

            if (Player.StillStanding(b))
            {
            }
            else
            {
                string savingThrows = Player.DeathSavingThrows();
                if (!Player.IsAlive)
                {
                    gladiators.Remove(Player.id);
                    deceasedGladiators[Player.id] = Player;
                }
                return(savingThrows);
            }

            return(null);
        }