Skip to content

Commit

Permalink
remove etherium and lionite bars from crafting requirements :o
Browse files Browse the repository at this point in the history
  • Loading branch information
zerratar committed Aug 2, 2023
1 parent 1ea186e commit 7d4e4e7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/RavenNest.BusinessLogic/Data/GameData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1295,6 +1295,11 @@ Item GetItemByCategory(ItemCategory category, string containsName)
return items.Entities.FirstOrDefault(x => (ItemCategory)x.Category == ItemCategory.Resource && x.Name.Contains(containsName, StringComparison.OrdinalIgnoreCase));
}

Item GetItemByCategoryExact(ItemCategory category, string name)
{
return items.Entities.FirstOrDefault(x => (ItemCategory)x.Category == ItemCategory.Resource && x.Name.Equals(name, StringComparison.OrdinalIgnoreCase));
}

var phantomCraftingLevel = 200; // change to 210 ?
var lionCraftingLevel = 240;
var etherCraftingLevel = 280;
Expand Down Expand Up @@ -1414,7 +1419,7 @@ Item GetItemByCategory(ItemCategory category, string containsName)

if (nl.Contains("lionsbane"))
{
resType = GetItemByCategory(ItemCategory.Resource, "lionite");
resType = GetItemByCategoryExact(ItemCategory.Resource, "lionite");
ingotCount = 90;
woodCount = woodCount * 18;
resCount = 3;
Expand All @@ -1423,7 +1428,7 @@ Item GetItemByCategory(ItemCategory category, string containsName)

if (nl.StartsWith("ether "))
{
resType = GetItemByCategory(ItemCategory.Resource, "ethereum");
resType = GetItemByCategoryExact(ItemCategory.Resource, "ethereum");
ingotCount = 120;
woodCount = woodCount * 24;
resCount = 5;
Expand Down

0 comments on commit 7d4e4e7

Please sign in to comment.