Jagged Alliance 3
Basic Crafting Economy
Answering a question
DefineConst{
id = "CombineFailAmmoLose",
scale = "%",
value = 20,
}
DefineConst{
id = "CombineFailConditionLose",
scale = "%",
value = 20,
}
DefineConst{
id = "CombineToolConditionLose",
scale = "%",
value = 2,
}


Invntory.lua if i'm looking at the functions:

Combine2ItemsInternal(recipe_id, outcome, outcome_hp, skill_type, unit_operator, item1_context, item1_pos, item2_context, item2_pos, item2)
-- bunch of code before; e.g. for loss of health when failing to combine or something
if IsKindOf(new_item, "ToolItem") then
local change_condition = -MulDivRound(new_item.Condition, const.CombineToolConditionLose,100)
unit_operator:ItemModifyCondition(new_item, change_condition)
end

Not sure if that's 100% the combination stuff you asked for before leaving, but i'd think so.
< >
Сообщения 12 из 2
whahappen  [Разработчик] (Заблокирован) 3 ноя. 2023 г. в 2:25 
Thank you a lot. Just seeing this now.
whahappen  [Разработчик] (Заблокирован) 7 ноя. 2023 г. в 16:44 
Implemented a fixed based on Timmeh's condition modifications and your input now. Should be finally fixing the issue.

All tools have individual condition loss now.

Big thanks to Timmeh & LotR[Henchman]
Отредактировано whahappen; 8 ноя. 2023 г. в 0:19
< >
Сообщения 12 из 2
Показывать на странице: 1530 50