• 0
CH!LL3R

Exile_AbstractCraftingRecipe: hypernym for Smokegrenades

Question

Hi, got a little question about how to handle this problem in class Exile_AbstractCraftingRecipe:

Want to add a recipe to craft a Vishpirin, that should requiere a smokegren. But what classname I need, to say you need a smokegren, similar if you have a green one, a blue one or a red one.

For now I have 7(!!!) recipes for this problem, for each color one recipe.

Spoiler

class CraftVishpirin_blue: Exile_AbstractCraftingRecipe
{
	name = "Craft Vishpirin with Blue Smokegrenade";
	pictureItem = "Exile_Item_Vishpirin";
	requiresFire = 1;
	requiredInteractionModelGroup = "WorkBench";
	returnedItems[] =
	{
		{1, "Exile_Item_Vishpirin"},
		{1, "Exile_Item_PlasticBottleEmpty"}
	};
	components[] =
	{
		{2, "Exile_Item_PlasticBottleFreshWater"},
		{3, "Exile_Item_Bandage"},
		{1, "SmokeShellBlue"}

	};
	tools[] = {"Exile_Item_Screwdriver", "Exile_Item_CookingPot"};
};

 

Is it possible to take some other classname, that includes all kinds of smokegrens, something like "smokegren_base" or  conformable like this?

Cause it's awful to click on a bandage and there on recipes to see 7 times a recipe with "Vishpirin".....

Also there are a lot of recipes in my mind, always included some items in different versions possible to use. So how could we handle this?

Sry 4 my bad english, I hope you could understand the problem and have some solutions/ideas for me.

Regards

Share this post


Link to post
Share on other sites

1 answer to this question

  • 0

Of course I could advise you to adjust the programming and configuration behind this, but this would be nonsense. Instead I advise you to not use smoke grenades :) Use another item instead.

Share this post


Link to post
Share on other sites
Advertisement

  • Recently Browsing   0 members

    No registered users viewing this page.