Skip to content

Commit

Permalink
Added item data for house items
Browse files Browse the repository at this point in the history
Added item data for quest items
Added item data for crafting gear
  • Loading branch information
josdemmers committed Apr 18, 2022
1 parent a6c9b62 commit 511fe65
Show file tree
Hide file tree
Showing 16 changed files with 703,703 additions and 84 deletions.
14 changes: 14 additions & 0 deletions NewWorldCompanion.Entities/HouseItemsJson.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NewWorldCompanion.Entities
{
public class HouseItemsJson : ItemDefinition
{
/// <value>Unique identifier for items. Nwdb uses this to identify items</value>
public string HouseItemID { get; set; } = string.Empty;
}
}
16 changes: 16 additions & 0 deletions NewWorldCompanion.Entities/ItemDefinition.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NewWorldCompanion.Entities
{
public class ItemDefinition
{
/// <value>Contains master name for localisation</value>
public string Name { get; set; } = string.Empty;
/// <value>Used to define if an item is tradable</value>
public bool BindOnPickup { get; set; } = false;
}
}
14 changes: 0 additions & 14 deletions NewWorldCompanion.Entities/MasterItemDefinitionsCraftingJson.cs

This file was deleted.

16 changes: 16 additions & 0 deletions NewWorldCompanion.Entities/MasterItemDefinitionsJson.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NewWorldCompanion.Entities
{
public class MasterItemDefinitionsJson : ItemDefinition
{
/// <value>Unique identifier for items. Nwdb uses this to identify items</value>
public string ItemID { get; set; } = string.Empty;
/// <value>Matches RequiredAchievementID from CraftingRecipeJson</value>
public string SalvageAchievement { get; set; } = string.Empty;
}
}
2 changes: 1 addition & 1 deletion NewWorldCompanion.Interfaces/INewWorldDataStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public interface INewWorldDataStore
List<CraftingRecipe> GetCraftingRecipes();
bool IsBindOnPickup(string itemName);
string GetItemId(string itemName);
MasterItemDefinitionsCraftingJson? GetItem(string itemId);
ItemDefinition? GetItem(string itemId);
string GetLevenshteinItemName(string itemName);
}
}
Loading

0 comments on commit 511fe65

Please sign in to comment.