Anonymous

Module:Items/UseTables: Difference between revisions

From Melvor Idle
m
_getItemUseTable: Replace hard-coded Summoning GP/SC cost value with in-game data
(_getItemUseTable: Resolve error when Summoning recipe uses GP or Slayer coins)
m (_getItemUseTable: Replace hard-coded Summoning GP/SC cost value with in-game data)
Line 519: Line 519:
       elseif matID == -4 then
       elseif matID == -4 then
         -- GP
         -- GP
         matText = Icons.GP(1000)
         matText = Icons.GP(SkillData.Summoning.Settings.recipeGPCost)
       elseif matID == -5 then
       elseif matID == -5 then
         -- Slayer Coins
         -- Slayer Coins
         matText = Icons.SC(1000)
         matText = Icons.SC(SkillData.Summoning.Settings.recipeGPCost)
       else
       else
         matText = 'ERROR: Unknown item ID: ' .. matID .. ' [[Category:Pages with Script Errors]]'
         matText = 'ERROR: Unknown item ID: ' .. matID .. ' [[Category:Pages with Script Errors]]'