新增物品数据,每日登录新增加一个zTicket

This commit is contained in:
MrZ626
2021-11-13 17:33:37 +08:00
parent 71aa35b214
commit 9fd3b3008d
2 changed files with 9 additions and 0 deletions

View File

@@ -228,6 +228,9 @@ end
--Game
function getItem(itemName,amount)
STAT.item[itemName]=STAT.item[itemName]+(amount or 1)
end
function coin(a,b)
if rnd()<.5 then
return a
@@ -275,9 +278,11 @@ function freshDate(mode)
if STAT.date~=date then
STAT.date=date
STAT.todayTime=0
getItem('zTicket',1)
if not mode:find'q'then
MES.new('info',text.newDay)
end
saveStats()
return true
end
end

View File

@@ -726,6 +726,10 @@ do--Userdata tables
spin=(function()local L={}for i=1,29 do L[i]={0,0,0,0,0,0,0}end return L end)(),
pc=0,hpc=0,b2b=0,b3b=0,score=0,
lastPlay='sprint_10l',--Last played mode ID
item=setmetatable({},{__index=function(self,k)
self[k]=0
return 0
end}),
date=false,
todayTime=0,
}