2023年政策修订增补工作正在进行中,欢迎参与!
Module:FGOSkillIcon
跳转到导航
跳转到搜索
本模块可用于{{FGO_技能图标}}(main函数),也可用于其他模块调用(getSkillIcon函数),生成适用于Fate/Grand Order的技能图标。
-- Originally designed and coded by Maya (U:MJH)
local getArgs = require("Module:Arguments").getArgs
local iconNameMapping = {
-- 格式:['填写的名称'] = '实际文件名',
['攻击力提升'] = '加攻',
['攻击力下降'] = '降攻',
['攻击力&防御力提升'] = '加攻加防',
['防御力提升'] = '加防',
['防御力下降'] = '降防',
['伤害削减'] = '伤害下降',
['Quick性能提升'] = '绿放',
['Q性能提升'] = '绿放',
['Arts性能提升'] = '蓝放',
['A性能提升'] = '蓝放',
['Buster性能提升'] = '红放',
['B性能提升'] = '红放',
['Quick&Arts性能提升'] = '蓝绿放',
['QA性能提升'] = '蓝绿放',
['Quick&Buster性能提升'] = '红绿放',
['QB性能提升'] = '红绿放',
['Arts&Buster性能提升'] = '红蓝放',
['AB性能提升'] = '红蓝放',
['Quick&Arts&Buster性能提升'] = '三色魔放',
['QAB性能提升'] = '三色魔放',
['Quick暴击星集中度提升'] = '绿卡集星',
['Q暴击星集中度提升'] = '绿卡集星',
['Arts暴击星集中度提升'] = '蓝卡集星',
['A暴击星集中度提升'] = '蓝卡集星',
['Buster暴击星集中度提升'] = '红卡集星',
['B暴击星集中度提升'] = '红卡集星',
['NP增加'] = '充能',
['每回合获得NP'] = '回合充能',
['毅力'] = '根性',
['延迟发动'] = '秒表buff',
['目标集中度上升'] = '嘲讽',
['手牌固定'] = '无貌之月',
}
local getSkillIcon = function (name, size)
local mapped = iconNameMapping[name]
if mapped then name = mapped end
return [=[[[文件:FGO_]=] .. (name or '未知效果') .. '.png|' .. (size or 60) .. [=[px|link=]]]=]
end
local FGOSkillIcon = {
main = function (frame)
local args = getArgs(frame)
return getSkillIcon(args[1], args[2])
end,
getSkillIcon = getSkillIcon
}
return FGOSkillIcon