打开主菜单

少前百科GFwiki β

更改

模块:Gun info

添加14字节2023年3月26日 (日) 02:04
无编辑摘要
for i = 1, #anames do
local sign = avals[i] > 0 and '+' or ''
table.insert(effects[#effects+1] = , string.format('%s<span class="effect_%s">%s%d%%</span>',
anames[i],
sign == '+' and 'positive' or 'negative',
sign, math.floor(effect[i+1]*coeff)))
end
return table.concat(effects, ' ')
effect_text:wikitext(string.format('对%s有效', table.concat(targets, '、')))
local anames, avals = {}, {}
for i = 1, #v in ipairs(effect - 1, 2 ) do if i%2 == 1 then table.insert(anames[#anames+1] = , attrs[effect[i]v]) else table.insert(avals[#avals+1] = effect[i+1], v) end
end
effect_text:wikitext('<br>')