Module:Tool:修订间差异

添加101字节 、​ 2021年10月16日 (星期六)
修复以太之滴总数计算错误的问题
无编辑摘要
(修复以太之滴总数计算错误的问题)
第10行: 第10行:
function p.Etherdrop(frame)
function p.Etherdrop(frame)
local text=mw.getCurrentFrame():expandTemplate{ title = ':世界模式' }
local text=mw.getCurrentFrame():expandTemplate{ title = ':世界模式' }
if frame.args.type~=limit then text=string.match(text,"额外章:活动([%s%S]*)第1章:失落的世界") end
if frame.args.type~=limit then text=string.match(text,"额外章:活动([%s%S]-)第1章:失落的世界")
else text=string.match(text,"([%s%S]-)各章节阶梯和奖励情况示意%(Nintendo Switch版%)") end
local match=string.gmatch (text,"(%d?%d) 以太之滴")
local match=string.gmatch (text,"(%d?%d) 以太之滴")
local result=0
local result=0
132

个编辑