From be52bb20b62087fee8e726623b563a0154cb6872 Mon Sep 17 00:00:00 2001 From: chenxi Date: Tue, 6 Jun 2023 17:25:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=8F=B7=E4=B8=8A=E6=8A=A5=E4=BD=93?= =?UTF-8?q?=E5=8A=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/userdata/player/player_data.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lua/app/userdata/player/player_data.lua b/lua/app/userdata/player/player_data.lua index 9e531043..bd6c5db4 100644 --- a/lua/app/userdata/player/player_data.lua +++ b/lua/app/userdata/player/player_data.lua @@ -27,8 +27,9 @@ function PlayerData:init(data) self.createTime = basicInfo.create_at 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 -- 认为是新号初次登录 - BIReport:postVitGet(60, BIReport.ITEM_GET_TYPE.NEW_PLAYER_INITIAL, 60) + if math.abs(self.createTime - time) <= 3000 then -- 认为是新号初次登录 + local vit = self:getMaxVit() + BIReport:postVitGet(vit, BIReport.ITEM_GET_TYPE.NEW_PLAYER_INITIAL, vit) end self:initModuleUnlockInfo() end