Module:Shop: Difference between revisions

p.getCookingUtilityTable -> Fix increasedChanceToDoubleItemsSkill modifier which was always showing 0%. We still need to add increasedChanceToDoubleItemsSkill to Cooking Fire, decreasedPassiveCookInterval/decreasedSkillIntervalPercent to all 3 types and increasedChanceAdditionalSkillResource to non-Cooking Fire
(Adding in more expansion icons)
(p.getCookingUtilityTable -> Fix increasedChanceToDoubleItemsSkill modifier which was always showing 0%. We still need to add increasedChanceToDoubleItemsSkill to Cooking Fire, decreasedPassiveCookInterval/decreasedSkillIntervalPercent to all 3 types and increasedChanceAdditionalSkillResource to non-Cooking Fire)
Line 864: Line 864:
if modName == bonusColMod and type(modVal) == 'table' then
if modName == bonusColMod and type(modVal) == 'table' then
-- Bonus XP/doubling
-- Bonus XP/doubling
for skID, skVal in pairs(modVal) do
for _, subMod in ipairs(modVal) do
if skVal[1] == bonusSkillID then bonusVal = bonusVal + skVal[2] end
if subMod.skillID ~= nil and subMod.skillID == bonusSkillID then
bonusVal = bonusVal + subMod.value
end
end
end
elseif Shared.contains(modsPerfectChance, modName) then
elseif Shared.contains(modsPerfectChance, modName) then
572

edits