quantum-space-buddies/QSB/DeathSync/Necronomicon.cs

117 lines
3.2 KiB
C#
Raw Normal View History

using System;
using System.Collections.Generic;
2020-08-13 19:46:16 +00:00
namespace QSB.DeathSync
{
2020-12-02 21:23:01 +00:00
public static class Necronomicon
{
private static readonly Dictionary<DeathType, string[]> Darkhold = new Dictionary<DeathType, string[]>
2020-12-02 21:23:01 +00:00
{
2021-04-18 09:07:17 +00:00
{ DeathType.Default, new[] // Running out of health
2020-12-02 21:23:01 +00:00
{
2021-04-18 09:07:17 +00:00
"{0} died",
"{0} was killed"
2020-12-02 21:23:01 +00:00
} },
2021-04-18 09:07:17 +00:00
{ DeathType.Impact, new[] // Hitting the ground/wall/object
2020-12-02 21:23:01 +00:00
{
"{0} forgot to use retro-rockets",
"{0} bonked into the ground too hard",
2021-04-18 09:07:17 +00:00
"{0} hit the ground too hard",
"{0} went splat",
"{0} died",
"{0} was killed",
"{0} died due to impact",
"{0} impacted the ground too hard"
2020-12-02 21:23:01 +00:00
} },
2021-04-18 09:07:17 +00:00
{ DeathType.Asphyxiation, new[] // Running out of oxygen
2020-12-02 21:23:01 +00:00
{
"{0} forgot to breathe",
2021-04-18 09:07:17 +00:00
"{0} asphyxiated",
"{0} died due to asphyxiation",
2020-12-02 21:23:01 +00:00
"{0} forgot how to breathe",
2021-04-18 09:07:17 +00:00
"{0} forgot to check their oxygen",
"{0} ran out of air",
"{0} ran out of oxygen",
2020-12-02 21:23:01 +00:00
"{0} didn't need air anyway"
} },
2021-04-18 09:07:17 +00:00
{ DeathType.Energy, new[] // Electricity, sun, etc.
2020-12-02 21:23:01 +00:00
{
"{0} was cooked",
2021-04-18 09:07:17 +00:00
"{0} died",
"{0} was killed"
2020-12-02 21:23:01 +00:00
} },
2021-04-18 09:07:17 +00:00
{ DeathType.Supernova, new[] // Supernova
2020-12-02 21:23:01 +00:00
{
"{0} ran out of time",
2021-04-18 09:07:17 +00:00
"{0} burnt up",
2020-12-02 21:23:01 +00:00
"{0} got vaporized",
"{0} lost track of time",
"{0} got front row seats to the supernova",
2021-04-18 09:07:17 +00:00
"{0} heard the music",
2020-12-02 21:23:01 +00:00
"{0} watched the sun go kaboom",
"{0} became cosmic marshmallow",
2021-04-18 09:07:17 +00:00
"{0} photosynthesized too much",
"{0} died due to the supernova"
2020-12-02 21:23:01 +00:00
} },
2021-04-18 09:07:17 +00:00
{ DeathType.Digestion, new[] // Anglerfish
2020-12-02 21:23:01 +00:00
{
"{0} was eaten",
"{0} found a fish",
"{0} encountered an evil creature",
2021-04-18 09:07:17 +00:00
"{0} messed with the wrong fish",
"{0} was digested",
"{0} died due to digestion"
2020-12-02 21:23:01 +00:00
} },
2021-04-18 09:07:17 +00:00
{ DeathType.BigBang, new[] // End of the game
2020-12-02 21:23:01 +00:00
{
"{0} sacrificed themself for the universe",
"{0} knows the true meaning of sacrifice",
"{0} won at the cost of their life"
} },
2021-04-18 09:07:17 +00:00
{ DeathType.Crushed, new[] // Crushed in sand
2020-12-02 21:23:01 +00:00
{
"{0} went through the tunnel too slow",
"{0} didn't make it out in time",
"{0} was squished",
2021-04-18 09:07:17 +00:00
"{0} was crushed",
"{0} was buried",
"{0} went swimming in the sand",
"{0} underestimated the danger of sand",
"{0} died due to being crushed"
2020-12-02 21:23:01 +00:00
} },
2021-04-18 09:07:17 +00:00
{ DeathType.Meditation, new[] // Meditation
2020-12-02 21:23:01 +00:00
{
2021-04-18 09:07:17 +00:00
"{0} broke QSB. this is a bug, you should never see this"
2020-12-02 21:23:01 +00:00
} },
2021-04-18 09:07:17 +00:00
{ DeathType.TimeLoop, new[] // Escaping the supernova
2020-12-02 21:23:01 +00:00
{
"{0} ran out of time",
2021-04-18 09:07:17 +00:00
"{0} lost track of time",
"{0} watched the sun go kaboom"
2020-12-02 21:23:01 +00:00
} },
2021-04-18 09:07:17 +00:00
{ DeathType.Lava, new[] // Lava
2020-12-02 21:23:01 +00:00
{
2021-04-18 09:07:17 +00:00
"{0} died in lava",
"{0} was melted",
2020-12-02 21:23:01 +00:00
"{0} tried to swim in lava",
"{0} didn't know what the glowy orange liquid was",
2021-04-18 09:07:17 +00:00
"{0} fell into lava",
"{0} became one with the glowing gooey rock",
"{0} died due to lava",
"{0} got burnt in the lava"
2020-12-02 21:23:01 +00:00
} },
2021-04-18 09:07:17 +00:00
{ DeathType.BlackHole, new[] // ATP core black hole
2020-12-02 21:23:01 +00:00
{
"{0} should visit the Ash Twin Project again",
"{0} waited inside the Ash Twin Project",
"{0} chased their memories"
} }
};
2020-08-10 16:17:54 +00:00
public static string GetPhrase(DeathType deathType, int index) =>
Darkhold[deathType][index];
public static int GetRandomIndex(DeathType deathType)
=> new Random().Next(0, Darkhold[deathType].Length);
2020-12-14 21:20:53 +00:00
}
2020-12-03 08:28:05 +00:00
}