打开主菜单
首页
随机
登录
设置
关于Stardew Valley Wiki
免责声明
Stardew Valley Wiki
搜索
查看“模块:Calcgrangepoints”的源代码
←
模块:Calcgrangepoints
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您没有权限编辑
模块
名字空间内的页面。
您可以查看和复制此页面的源代码。
local p = {} function p.cgp(frame) --Template must call Calcsellprice and send result here local price = tonumber(frame.args.p) --quality must be 0, 1, 2, or 4 local quality = tonumber(frame.args.q) local totalpoints = 0 totalpoints = quality + 1 if (price >= 20) then totalpoints = totalpoints + 1 end if (price >= 90) then totalpoints = totalpoints + 1 end if (price >= 200) then totalpoints = totalpoints + 1 end if (price >= 300 and quality < 2) then totalpoints = totalpoints + 1 end if (price >= 400 and quality < 1) then totalpoints = totalpoints + 1 end return totalpoints end return p
该页面使用的模板:
模块:Calcgrangepoints/doc
(
查看源代码
)
返回至
模块:Calcgrangepoints
。