新增物品数据,每日登录新增加一个zTicket
This commit is contained in:
@@ -228,6 +228,9 @@ end
|
|||||||
|
|
||||||
|
|
||||||
--Game
|
--Game
|
||||||
|
function getItem(itemName,amount)
|
||||||
|
STAT.item[itemName]=STAT.item[itemName]+(amount or 1)
|
||||||
|
end
|
||||||
function coin(a,b)
|
function coin(a,b)
|
||||||
if rnd()<.5 then
|
if rnd()<.5 then
|
||||||
return a
|
return a
|
||||||
@@ -275,9 +278,11 @@ function freshDate(mode)
|
|||||||
if STAT.date~=date then
|
if STAT.date~=date then
|
||||||
STAT.date=date
|
STAT.date=date
|
||||||
STAT.todayTime=0
|
STAT.todayTime=0
|
||||||
|
getItem('zTicket',1)
|
||||||
if not mode:find'q'then
|
if not mode:find'q'then
|
||||||
MES.new('info',text.newDay)
|
MES.new('info',text.newDay)
|
||||||
end
|
end
|
||||||
|
saveStats()
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -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)(),
|
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,
|
pc=0,hpc=0,b2b=0,b3b=0,score=0,
|
||||||
lastPlay='sprint_10l',--Last played mode ID
|
lastPlay='sprint_10l',--Last played mode ID
|
||||||
|
item=setmetatable({},{__index=function(self,k)
|
||||||
|
self[k]=0
|
||||||
|
return 0
|
||||||
|
end}),
|
||||||
date=false,
|
date=false,
|
||||||
todayTime=0,
|
todayTime=0,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user