新号上报体力
This commit is contained in:
parent
a9d40c0c64
commit
be52bb20b6
@ -27,8 +27,9 @@ function PlayerData:init(data)
|
|||||||
self.createTime = basicInfo.create_at or 0 -- 创角时间
|
self.createTime = basicInfo.create_at or 0 -- 创角时间
|
||||||
|
|
||||||
local time = data.now_ts or 0
|
local time = data.now_ts or 0
|
||||||
if self.data.level == 1 and self.data.exp == 0 and math.abs(self.createTime - time) <= 3000 then -- 认为是新号初次登录
|
if math.abs(self.createTime - time) <= 3000 then -- 认为是新号初次登录
|
||||||
BIReport:postVitGet(60, BIReport.ITEM_GET_TYPE.NEW_PLAYER_INITIAL, 60)
|
local vit = self:getMaxVit()
|
||||||
|
BIReport:postVitGet(vit, BIReport.ITEM_GET_TYPE.NEW_PLAYER_INITIAL, vit)
|
||||||
end
|
end
|
||||||
self:initModuleUnlockInfo()
|
self:initModuleUnlockInfo()
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user