Jagged Alliance 3

Jagged Alliance 3

Basic Crafting Economy
LotR[Henchman] 27. okt. 2023 kl. 8:00
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.
< >
Viser 1-2 af 2 kommentarer
whahappen  [udvikler] (Udelukket) 3. nov. 2023 kl. 2:25 
Thank you a lot. Just seeing this now.
whahappen  [udvikler] (Udelukket) 7. nov. 2023 kl. 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]
Sidst redigeret af whahappen; 8. nov. 2023 kl. 0:19
< >
Viser 1-2 af 2 kommentarer
Per side: 1530 50