mirror of
https://github.com/kwsch/NHSE.git
synced 2026-04-25 15:47:17 -05:00
Minor clean
This commit is contained in:
parent
ebfd2ca87f
commit
0baac3751f
|
|
@ -5,7 +5,7 @@
|
|||
/// </summary>
|
||||
public static class GameInfo
|
||||
{
|
||||
private static readonly GameStrings[] Languages = new GameStrings[GameLanguage.LanguageCount];
|
||||
private static readonly GameStrings?[] Languages = new GameStrings[GameLanguage.LanguageCount];
|
||||
|
||||
public static string CurrentLanguage { get; set; } = GameLanguage.DefaultLanguage;
|
||||
public static GameStrings Strings { get; set; } = GetStrings(CurrentLanguage);
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ public static int GetLanguageIndex(string lang)
|
|||
public static string[] GetStrings(string ident, string lang, string type = "text")
|
||||
{
|
||||
string[] data = ResourceUtil.GetStringList(ident, lang, type);
|
||||
if (data == null || data.Length == 0)
|
||||
if (data.Length == 0)
|
||||
data = ResourceUtil.GetStringList(ident, DefaultLanguage, type);
|
||||
|
||||
return data;
|
||||
|
|
|
|||
|
|
@ -270,8 +270,6 @@ private void LoadVillager(Villager v)
|
|||
private void SaveVillager(int index)
|
||||
{
|
||||
var v = SAV.Main.GetVillager(index);
|
||||
if (v is null)
|
||||
return;
|
||||
|
||||
v.Species = (byte)NUD_Species.Value;
|
||||
v.Variant = (byte)NUD_Variant.Value;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user