Example #1
0
        public static ShrimpBattle CreateBattle(string userName)
        {
            var battle = new ShrimpBattle();

            battle.Protagonist = new ShrimpBattlePerson
            {
                Name  = userName,
                Emote = ":smiley:"
            };
            int enemyType = rng.Next(1, 6);

            battle.Enemy = new ShrimpBattlePerson
            {
                Name = enemyType switch
                {
                    1 => "Jeremy",
                    2 => "theBeat",
                    3 => "Zombie",
                    4 => "Vampire",
                    5 => "Random Weeaboo",
                    _ => "fucky wucky"
                },
Example #2
0
 public static ShrimpBattleTurnResults PerformActionForType(ShrimpBattleActionType type, Random rng, ShrimpBattlePerson attacker, ShrimpBattlePerson target, ShrimpBattle battle) => type switch
 {