Changes

no edit summary
Line 1: Line 1:  
local getArgs = require("Module:GetArgs")
 
local getArgs = require("Module:GetArgs")
local U = require("Module:Utils")
+
local U = require("Module:Core")
 
local F = require("Module:Formatting")
 
local F = require("Module:Formatting")
 
local Equipment = require("Module:Equipment")
 
local Equipment = require("Module:Equipment")
 
local EquipmentCardKai = require("Module:EquipmentCardKai")
 
local EquipmentCardKai = require("Module:EquipmentCardKai")
 +
local EquipmentGraphicKai = require("Module:EquipmentGraphicKai")
    
local EquipmentLink = {}
 
local EquipmentLink = {}
Line 24: Line 25:  
     for _, arg in ipairs(args) do
 
     for _, arg in ipairs(args) do
 
         local equip = arg ~= "-" and Equipment(arg)
 
         local equip = arg ~= "-" and Equipment(arg)
         table.insert(cards, arg == "-" and "<br />" or EquipmentCardKai:get{ equip = equip, size = size })
+
         table.insert(
 +
            cards,
 +
            arg == "-" and
 +
            "<br />" or
 +
            equip._is_enemy and
 +
            EquipmentGraphicKai:get{ equip = equip, size = size } or
 +
            EquipmentCardKai:get{ equip = equip, size = size }
 +
        )
 
     end
 
     end
   Line 54: Line 62:  
     end
 
     end
   −
     local tooltip_content = F:class_span("tooltip-contents", nil, #cards > 0 and table.concat(cards, "") or "??")
+
     local tooltip_content = F:class_span("tooltiptext", nil, #cards > 0 and table.concat(cards, "") or "??")
   −
     return F:class_span("advanced-tooltip", nil, formatted_icon .. formatted_image .. formatted_text .. tooltip_content)
+
     return F:class_span("tooltip", nil, formatted_icon .. formatted_image .. formatted_text .. tooltip_content)
    
end
 
end
cssedit, gkautomate
7,064

edits