From ae2042bf4d91c3fdf62c6e3e25ac2179d510bc2b Mon Sep 17 00:00:00 2001 From: sk <123456@qq.com> Date: Mon, 15 Jul 2024 15:30:55 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9A=AE=E8=82=A4=E8=87=AA=E5=8A=A8=E4=BD=BF?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/gameparam.json | 2 +- public | 2 +- worldsrv/action_pets.go | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/data/gameparam.json b/data/gameparam.json index d0956de..95b9b04 100644 --- a/data/gameparam.json +++ b/data/gameparam.json @@ -24,5 +24,5 @@ "AgoraAddress": "http://47.105.78.29:8081", "InviteUrl": "http://47.105.78.29:8000/", "RankTimeout": 2, - "PermitInitScore": 0 + "PermitInitScore": 1000 } \ No newline at end of file diff --git a/public b/public index 6fefbb3..e3671e3 160000 --- a/public +++ b/public @@ -1 +1 @@ -Subproject commit 6fefbb3db104ed096948a126db87d4e86d19362a +Subproject commit e3671e30a6f3093cc7219f9b074e5586c3b2c011 diff --git a/worldsrv/action_pets.go b/worldsrv/action_pets.go index 9dbe027..3c3b277 100644 --- a/worldsrv/action_pets.go +++ b/worldsrv/action_pets.go @@ -605,6 +605,11 @@ func CSSKinUnLock(s *netlib.Session, packetid int, data interface{}, sid int64) pack.Info, pack.RetCode = SkinUnLock(p, msg.GetId()) if pack.GetRetCode() != pets.OpResultCode_OPRC_Sucess { send() + } else { + // 自动使用 + if srvdata.PBDB_SkinMgr.GetData(msg.GetId()).GetUnlockType() == common.SkinGetAuto { + CSSkinUse(s, int(pets.PetsPacketID_PACKET_CS_SKIN_USE), new(pets.CSSkinUse), sid) + } } return nil }