40 lines
1.2 KiB
C#
40 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace IdleSpectator;
|
|
|
|
/// <summary>Thin flavor identities for creatures whose voice should be unmistakable.</summary>
|
|
public static class ActivityVoiceProfiles
|
|
{
|
|
private static readonly Dictionary<string, string> Profiles =
|
|
new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
|
|
{
|
|
["dragon"] = "dragon",
|
|
["fairy"] = "fairy",
|
|
["cat"] = "cat",
|
|
["dog"] = "dog",
|
|
["buffalo"] = "buffalo",
|
|
["lemon_snail"] = "lemon_snail",
|
|
["human"] = "human",
|
|
["elf"] = "elf",
|
|
["dwarf"] = "dwarf",
|
|
["orc"] = "orc",
|
|
["crabzilla"] = "crabzilla",
|
|
["god_finger"] = "god_finger",
|
|
["greg"] = "greg",
|
|
["angle"] = "angle",
|
|
["cold_one"] = "cold",
|
|
["snowman"] = "cold",
|
|
["crystal_sword"] = "crystal"
|
|
};
|
|
|
|
public static string Resolve(string baseSpeciesId)
|
|
{
|
|
if (string.IsNullOrEmpty(baseSpeciesId))
|
|
{
|
|
return "";
|
|
}
|
|
|
|
return Profiles.TryGetValue(baseSpeciesId, out string profile) ? profile : "";
|
|
}
|
|
}
|