package RTDB

Craftable
{
	fk< Item >[] craftableItem = [];
}

[ notQueryable ]
RecipeItem : Item
{
	CName[] tags = 
	[
		"Recipe"
	];
	fk< Item >[] craftableItems = [];
	buyPrice += 
	[
		"Price.Recipe"
	];
	sellPrice += 
	[
		"Price.Recipe"
	];
}

CraftingPackage
{
	fk< RecipeElement >[] craftingRecipe = [];
	float craftingExpModifier = 1.0f;
	float overcraftPenaltyModifier = 1.0f;
}

RecipeElement
{
	fk< Item > ingredient = "";
	int amount = 0;
}

CraftingResult
{
	fk< Item > item = "";
	int amount = 1;
}

ItemRecipe : Item
{
	CName[] tags = 
	[
		"Recipe", "SkipActivityLogOnRemove", "HideInBackpackUI"
	];
	fk< Item >[] hideOnItemsAdded = [];
	fk< CraftingResult > craftingResult = "";
	buyPrice = 
	[
		"Price.Recipe", "Price.ItemQualityMultiplier", "Price.BuyPrice_StreetCred_Discount"
	];
	sellPrice = 
	[
		"Price.Recipe", "Price.ItemQualityMultiplier", "Price.SellMultiplier"
	];
}

DisassemblingResult
{
	fk< RecipeElement >[] ingredients = [];
}

UpgradingData
{
	fk< RecipeElement >[] ingredients = [];
}

