舰R百科是靠无数自愿编辑者持续地建设更新完善的。编辑非常简单,请勇于更新页面!
编辑入门 | 资助百科 | 留言讨论页 | 微博@舰R百科 | 百科编辑讨论Q群:366818861

模块:建造时间与特殊获得方式:修订间差异

来自舰R百科
跳转到导航 跳转到搜索
无编辑摘要
(已保护“模块:建造时间与特殊获得方式”([编辑=仅允许管理员](无限期)[移动=仅允许管理员](无限期)))
 
(没有差异)

2024年5月16日 (四) 18:48的最新版本

此模块的文档可以在模块:建造时间与特殊获得方式/doc创建

local data = mw.loadData("模块:数据库/建造时间与特殊获得方式")
local shipAccess = data.shipAccess

local p = { }

p['建造时间'] = function(frame)
	local shipIndex = frame.args[1]
	if shipAccess[shipIndex]['time'] ~= "0:00:00"
		then return shipAccess[shipIndex]['time']
		else return "不可建造"
	end
end

p['解锁日期'] = function(frame)
	local shipIndex = frame.args[1]
	if shipAccess[shipIndex]['unlockDate'] ~= nil
		then return ',' .. shipAccess[shipIndex]['unlockDate'] .. '解锁'
		else return ''
	end
end

p['特殊掉落'] = function(frame)
	local shipIndex = frame.args[1]
	if shipAccess[shipIndex]['spDrop'] ~= nil
		then return shipAccess[shipIndex]['spDrop']
		else return ''
	end
end

p['特殊方式'] = function(frame)
	local shipIndex = frame.args[1]
	if shipAccess[shipIndex]['spMethod'] ~= nil
		then return shipAccess[shipIndex]['spMethod']
		else return ''
	end
end

return p