public BlankContractRecipe(IntrinsicsMod mymod, BlankContractItem myitem) : base(mymod) { this.AddTile(TileID.WorkBenches); this.AddIngredient(ModContent.ItemType <ContractTatterItem>(), mymod.Config.BlankContractRecipeContractTattersNeeded); this.SetResult(myitem); }
public BlankContractAltRecipe(IntrinsicsMod mymod, BlankContractItem myitem) : base(mymod) { foreach (var kv in mymod.Config.BlankContractAltRecipeIngredients) { ItemDefinition itemDef = kv.Key; int count = kv.Value; if (count > 0 && itemDef.Type != 0) { this.AddIngredient(itemDef.Type, count); } } //if( !string.IsNullOrEmpty(mymod.Config.BlankContractRecipeStation) ) { // this.AddTile( TileIdentityHelpers.GetVanillaTileName mymod.Config.BlankContractRecipeStation ); //} this.SetResult(myitem); }