Skip to content

Commit

Permalink
Fixes after merge + updated assembly vesion
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarno458 committed Dec 19, 2021
1 parent 79f90e8 commit ba95cca
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 28 deletions.
37 changes: 12 additions & 25 deletions TsRandomizer/Extensions/GameSaveExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,30 +42,20 @@ internal static FillingMethod GetFillingMethod(this GameSave gameSave)
return fillingMethod;
}

internal static void SetFillingMethod(this GameSave gameSave, FillingMethod fillingMethod)
{
internal static void SetFillingMethod(this GameSave gameSave, FillingMethod fillingMethod) =>
gameSave.DataKeyStrings[FillMethodSaveFileKey] = fillingMethod.ToString();
}

internal static bool HasMeleeOrb(this GameSave gameSave, EInventoryOrbType orbType)
{
return gameSave.DataKeyBools.ContainsKey(MeleeOrbPrefixKey + (int) orbType);
}
internal static bool HasMeleeOrb(this GameSave gameSave, EInventoryOrbType orbType) =>
gameSave.DataKeyBools.ContainsKey(MeleeOrbPrefixKey + (int) orbType);

internal static bool HasFamiliar(this GameSave gameSave, EInventoryFamiliarType familiar)
{
return gameSave.DataKeyBools.ContainsKey(FamiliarPrefixKey + (int)familiar);
}
internal static bool HasFamiliar(this GameSave gameSave, EInventoryFamiliarType familiar) =>
gameSave.DataKeyBools.ContainsKey(FamiliarPrefixKey + (int)familiar);

internal static bool HasRelic(this GameSave gameSave, EInventoryRelicType relic)
{
return gameSave.Inventory.RelicInventory.Inventory.ContainsKey((int)relic);
}
internal static bool HasRelic(this GameSave gameSave, EInventoryRelicType relic) =>
gameSave.Inventory.RelicInventory.Inventory.ContainsKey((int)relic);

internal static bool HasOrb(this GameSave gameSave, EInventoryOrbType orbType)
{
return gameSave.Inventory.OrbInventory.Inventory.ContainsKey((int) orbType);
}
internal static bool HasOrb(this GameSave gameSave, EInventoryOrbType orbType) =>
gameSave.Inventory.OrbInventory.Inventory.ContainsKey((int) orbType);

internal static bool HasRing(this GameSave gameSave, EInventoryOrbType orbType)
{
Expand Down Expand Up @@ -155,8 +145,7 @@ static void AddOrb(this GameSave gameSave, EInventoryOrbType orbType, EOrbSlot o
}
}

static void AddEquipment(this GameSave gameSave, EInventoryEquipmentType enquipment)
{
static void AddEquipment(this GameSave gameSave, EInventoryEquipmentType enquipment) =>
gameSave.Inventory.EquipmentInventory.AddItem((int) enquipment);

static void AddUseItem(this GameSave gameSave, EInventoryUseItemType useItem) =>
Expand Down Expand Up @@ -235,11 +224,9 @@ internal static void AddConcussion(this GameSave gameSave)
gameSave.DataKeyInts[ConcussionCountFileKey] = 1;
}

internal static int GetConcussionCount(this GameSave gameSave)
{
return gameSave.DataKeyInts.ContainsKey(ConcussionCountFileKey)
internal static int GetConcussionCount(this GameSave gameSave) =>
gameSave.DataKeyInts.ContainsKey(ConcussionCountFileKey)
? gameSave.DataKeyInts[ConcussionCountFileKey]
: 0;
}
}
}
6 changes: 3 additions & 3 deletions TsRandomizer/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("TsRandomizer")]
[assembly: AssemblyCopyright("Copyright © 2021")]
[assembly: AssemblyCopyright("Copyright © 2022")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
[assembly: Guid("694e46c5-fd46-4cc8-8b71-d381e154ccf7")]
[assembly: AssemblyVersion("0.1.2.1")]
[assembly: AssemblyFileVersion("0.1.2.1")]
[assembly: AssemblyVersion("0.1.3.0")]
[assembly: AssemblyFileVersion("0.1.3.0")]

[assembly: InternalsVisibleTo("TsRandomizer.Tests")]
[assembly: InternalsVisibleTo("TsRandomizerSeedGeneratah")]

0 comments on commit ba95cca

Please sign in to comment.