Нужна помощь?
Создайте тему в соответствующем разделе
Не нужно писать всё в чат!Загляните на торговую площадку
Там вы можете купить
всё что касается игровых серверовНе хотите бан?
Пожалуйста, ознакомьтесь с нашими правилами
Не нарушайте порядок!Продаёте или покупаете?
Пользуйтесь услугами гаранта
Мы сделаем вашу сделку безопасной
-
Объявления
-
⚙️ Новые онлайн-инструменты для DayZ 07/26/26
-
- 0

Доброго дня друзья. Помогите пожалуйста. Есть вот такой крафт. Как прописать чтобы набор получался не 1% а хотябы 3% или 5%. У меня получается либо 1% либо полностью заполненный когда меняю строчку состояния m_ResultSetFullQuantity[0] = false;
class NewCraft_SewingKit extends RecipeBase
{
override void Init()
{
m_Name ="Сделать набор для шитья";
m_IsInstaRecipe = false;
m_AnimationLength = 1;
m_Specialty = -0.1;
m_MinDamageIngredient[0] = -1;
m_MaxDamageIngredient[0] = 3;
m_MinQuantityIngredient[0] = 1;
m_MaxQuantityIngredient[0] = -1;
m_MinDamageIngredient[1] = -1;
m_MaxDamageIngredient[1] = 3;
m_MinQuantityIngredient[1] = 1;
m_MaxQuantityIngredient[1] = -1;
InsertIngredient(0,"Hook");
InsertIngredient(0,"BoneHook");
m_IngredientAddHealth[0] = 0;
m_IngredientSetHealth[0] = -1;
m_IngredientAddQuantity[0] = -1;
m_IngredientDestroy[0] = true;
m_IngredientUseSoftSkills[0] = false;
InsertIngredient(1,"Rope");
m_IngredientAddHealth[1] = 0;
m_IngredientSetHealth[1] = -1;
m_IngredientAddQuantity[1] = -1;
m_IngredientDestroy[1] = true;
m_IngredientUseSoftSkills[1] = false;
AddResult("SewingKit");
m_ResultSetFullQuantity[0] = false;
m_ResultSetQuantity[0] = 1;
m_ResultSetHealth[0] = 0,3;
m_ResultInheritsHealth[0] =-2;
m_ResultInheritsColor[0] = -1;
m_ResultToInventory[0] = -2;
m_ResultUseSoftSkills[0] = false;
m_ResultReplacesIngredient[0] = -1;
}
override bool CanDo(ItemBase ingredients[], PlayerBase player)
{
return true;
}
override void Do(ItemBase ingredients[], PlayerBase player,array<ItemBase> results, float specialty_weight)
{
Debug.Log("Recipe Do method called","recipes");
}
};
modded class PluginRecipesManagerBase
{
override void RegisterRecipies()
{
super.RegisterRecipies();
RegisterRecipe(new NewCraft_SewingKit);
}
}
Поделиться сообщением
Ссылка на сообщение
Поделиться на других сайтах