Skip to content

Commit

Permalink
[lua] duration of crafting belts
Browse files Browse the repository at this point in the history
Fixes duration of crafting belts from 2 min to 8 min
  • Loading branch information
Frankie-hz committed May 17, 2024
1 parent 9da2573 commit eb761a1
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 24 deletions.
6 changes: 3 additions & 3 deletions scripts/items/alchemists_belt.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
-- ID: 15450
-- Item: Alchemist's belt
-- Enchantment: Synthesis image support
-- 2Min, All Races
-- 8Min, All Races
-----------------------------------
-- Enchantment: Synthesis image support
-- Duration: 2Min
-- Duration: 8Min
-- Alchemy Skill +3
-----------------------------------
local itemObject = {}
Expand All @@ -20,7 +20,7 @@ itemObject.onItemCheck = function(target)
end

itemObject.onItemUse = function(target)
target:addStatusEffect(xi.effect.ALCHEMY_IMAGERY, 3, 0, 120)
target:addStatusEffect(xi.effect.ALCHEMY_IMAGERY, 3, 0, 480)
end

itemObject.onEffectGain = function(target, effect)
Expand Down
6 changes: 3 additions & 3 deletions scripts/items/blacksmiths_belt.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
-- ID: 15445
-- Item: Blacksmith's Belt
-- Enchantment: Synthesis image support
-- 2Min, All Races
-- 8Min, All Races
-----------------------------------
-- Enchantment: Synthesis image support
-- Duration: 2Min
-- Duration: 8Min
-- Smithing Skill +3
-----------------------------------
local itemObject = {}
Expand All @@ -20,7 +20,7 @@ itemObject.onItemCheck = function(target)
end

itemObject.onItemUse = function(target)
target:addStatusEffect(xi.effect.SMITHING_IMAGERY, 3, 0, 120)
target:addStatusEffect(xi.effect.SMITHING_IMAGERY, 3, 0, 480)
end

itemObject.onEffectGain = function(target, effect)
Expand Down
6 changes: 3 additions & 3 deletions scripts/items/boneworkers_belt.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
-- ID: 15449
-- Item: Boneworker's belt
-- Enchantment: Synthesis image support
-- 2Min, All Races
-- 8Min, All Races
-----------------------------------
-- Enchantment: Synthesis image support
-- Duration: 2Min
-- Duration: 8Min
-- Bonecraft Skill +3
-----------------------------------
local itemObject = {}
Expand All @@ -20,7 +20,7 @@ itemObject.onItemCheck = function(target)
end

itemObject.onItemUse = function(target)
target:addStatusEffect(xi.effect.BONECRAFT_IMAGERY, 3, 0, 120)
target:addStatusEffect(xi.effect.BONECRAFT_IMAGERY, 3, 0, 480)
end

itemObject.onEffectGain = function(target, effect)
Expand Down
6 changes: 3 additions & 3 deletions scripts/items/carpenters_belt.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
-- ID: 15444
-- Item: Carpenter's belt
-- Enchantment: Synthesis image support
-- 2Min, All Races
-- 8Min, All Races
-----------------------------------
-- Enchantment: Synthesis image support
-- Duration: 2Min
-- Duration: 8Min
-- Woodworking Skill +3
-----------------------------------
local itemObject = {}
Expand All @@ -20,7 +20,7 @@ itemObject.onItemCheck = function(target)
end

itemObject.onItemUse = function(target)
target:addStatusEffect(xi.effect.WOODWORKING_IMAGERY, 3, 0, 120)
target:addStatusEffect(xi.effect.WOODWORKING_IMAGERY, 3, 0, 480)
end

itemObject.onEffectGain = function(target, effect)
Expand Down
6 changes: 3 additions & 3 deletions scripts/items/culinarians_belt.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
-- ID: 15451
-- Item: Culinarian's Belt
-- Enchantment: Synthesis image support
-- 2Min, All Races
-- 8Min, All Races
-----------------------------------
-- Enchantment: Synthesis image support
-- Duration: 2Min
-- Duration: 8Min
-- Alchemy Skill +3
-----------------------------------
local itemObject = {}
Expand All @@ -20,7 +20,7 @@ itemObject.onItemCheck = function(target)
end

itemObject.onItemUse = function(target)
target:addStatusEffect(xi.effect.COOKING_IMAGERY, 3, 0, 120)
target:addStatusEffect(xi.effect.COOKING_IMAGERY, 3, 0, 480)
end

itemObject.onEffectGain = function(target, effect)
Expand Down
6 changes: 3 additions & 3 deletions scripts/items/goldsmiths_belt.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
-- ID: 15446
-- Item: Goldsmith's Belt
-- Enchantment: Synthesis image support
-- 2Min, All Races
-- 8Min, All Races
-----------------------------------
-- Enchantment: Synthesis image support
-- Duration: 2Min
-- Duration: 8Min
-- Goldsmithing Skill +3
-----------------------------------
local itemObject = {}
Expand All @@ -20,7 +20,7 @@ itemObject.onItemCheck = function(target)
end

itemObject.onItemUse = function(target)
target:addStatusEffect(xi.effect.GOLDSMITHING_IMAGERY, 3, 0, 120)
target:addStatusEffect(xi.effect.GOLDSMITHING_IMAGERY, 3, 0, 480)
end

itemObject.onEffectGain = function(target, effect)
Expand Down
6 changes: 3 additions & 3 deletions scripts/items/tanners_belt.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
-- ID: 15448
-- Item: Tanners belt
-- Enchantment: Synthesis image support
-- 2Min, All Races
-- 8Min, All Races
-----------------------------------
-- Enchantment: Synthesis image support
-- Duration: 2Min
-- Duration: 8Min
-- Leathercraft Skill +3
-----------------------------------
local itemObject = {}
Expand All @@ -20,7 +20,7 @@ itemObject.onItemCheck = function(target)
end

itemObject.onItemUse = function(target)
target:addStatusEffect(xi.effect.LEATHERCRAFT_IMAGERY, 3, 0, 120)
target:addStatusEffect(xi.effect.LEATHERCRAFT_IMAGERY, 3, 0, 480)
end

itemObject.onEffectGain = function(target, effect)
Expand Down
6 changes: 3 additions & 3 deletions scripts/items/weavers_belt.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
-- ID: 15447
-- Item: Weaver's Belt
-- Enchantment: Synthesis image support
-- 2Min, All Races
-- 8Min, All Races
-----------------------------------
-- Enchantment: Synthesis image support
-- Duration: 2Min
-- Duration: 8Min
-- Clothcraft Skill +3
-----------------------------------
local itemObject = {}
Expand All @@ -20,7 +20,7 @@ itemObject.onItemCheck = function(target)
end

itemObject.onItemUse = function(target)
target:addStatusEffect(xi.effect.CLOTHCRAFT_IMAGERY, 3, 0, 120)
target:addStatusEffect(xi.effect.CLOTHCRAFT_IMAGERY, 3, 0, 480)
end

itemObject.onEffectGain = function(target, effect)
Expand Down

0 comments on commit eb761a1

Please sign in to comment.