装备心愿抽卡显示剩余必中次数
parent
a40bfe0fd8
commit
b6718cefca
|
@ -11,6 +11,12 @@ FIGHTSTARTREQUEST_FIGHTID_FIELD = protobuf.FieldDescriptor();
|
|||
FIGHTSTARTREQUEST_TEAMID_FIELD = protobuf.FieldDescriptor();
|
||||
FIGHTSTARTRESPONSE = protobuf.Descriptor();
|
||||
FIGHTSTARTRESPONSE_FIGHTDATA_FIELD = protobuf.FieldDescriptor();
|
||||
AUTOFIGHTREQUEST = protobuf.Descriptor();
|
||||
AUTOFIGHTREQUEST_FIGHTID_FIELD = protobuf.FieldDescriptor();
|
||||
AUTOFIGHTREQUEST_TEAMID_FIELD = protobuf.FieldDescriptor();
|
||||
AUTOFIGHTRESPONSE = protobuf.Descriptor();
|
||||
AUTOFIGHTRESPONSE_RESULT_FIELD = protobuf.FieldDescriptor();
|
||||
AUTOFIGHTRESPONSE_DROP_FIELD = protobuf.FieldDescriptor();
|
||||
FIGHTENDREQUEST = protobuf.Descriptor();
|
||||
FIGHTENDREQUEST_MONSTERGROUPID_FIELD = protobuf.FieldDescriptor();
|
||||
FIGHTENDREQUEST_FRAMES_FIELD = protobuf.FieldDescriptor();
|
||||
|
@ -218,6 +224,61 @@ FIGHTSTARTRESPONSE.enum_types = {}
|
|||
FIGHTSTARTRESPONSE.fields = {FIGHTSTARTRESPONSE_FIGHTDATA_FIELD}
|
||||
FIGHTSTARTRESPONSE.is_extendable = false
|
||||
FIGHTSTARTRESPONSE.extensions = {}
|
||||
AUTOFIGHTREQUEST_FIGHTID_FIELD.name = "fightId"
|
||||
AUTOFIGHTREQUEST_FIGHTID_FIELD.full_name = ".rpc.protocols.AutoFightRequest.fightId"
|
||||
AUTOFIGHTREQUEST_FIGHTID_FIELD.number = 1
|
||||
AUTOFIGHTREQUEST_FIGHTID_FIELD.index = 0
|
||||
AUTOFIGHTREQUEST_FIGHTID_FIELD.label = 1
|
||||
AUTOFIGHTREQUEST_FIGHTID_FIELD.has_default_value = false
|
||||
AUTOFIGHTREQUEST_FIGHTID_FIELD.default_value = 0
|
||||
AUTOFIGHTREQUEST_FIGHTID_FIELD.type = 5
|
||||
AUTOFIGHTREQUEST_FIGHTID_FIELD.cpp_type = 1
|
||||
|
||||
AUTOFIGHTREQUEST_TEAMID_FIELD.name = "teamId"
|
||||
AUTOFIGHTREQUEST_TEAMID_FIELD.full_name = ".rpc.protocols.AutoFightRequest.teamId"
|
||||
AUTOFIGHTREQUEST_TEAMID_FIELD.number = 2
|
||||
AUTOFIGHTREQUEST_TEAMID_FIELD.index = 1
|
||||
AUTOFIGHTREQUEST_TEAMID_FIELD.label = 1
|
||||
AUTOFIGHTREQUEST_TEAMID_FIELD.has_default_value = false
|
||||
AUTOFIGHTREQUEST_TEAMID_FIELD.default_value = 0
|
||||
AUTOFIGHTREQUEST_TEAMID_FIELD.type = 5
|
||||
AUTOFIGHTREQUEST_TEAMID_FIELD.cpp_type = 1
|
||||
|
||||
AUTOFIGHTREQUEST.name = "AutoFightRequest"
|
||||
AUTOFIGHTREQUEST.full_name = ".rpc.protocols.AutoFightRequest"
|
||||
AUTOFIGHTREQUEST.nested_types = {}
|
||||
AUTOFIGHTREQUEST.enum_types = {}
|
||||
AUTOFIGHTREQUEST.fields = {AUTOFIGHTREQUEST_FIGHTID_FIELD, AUTOFIGHTREQUEST_TEAMID_FIELD}
|
||||
AUTOFIGHTREQUEST.is_extendable = false
|
||||
AUTOFIGHTREQUEST.extensions = {}
|
||||
AUTOFIGHTRESPONSE_RESULT_FIELD.name = "result"
|
||||
AUTOFIGHTRESPONSE_RESULT_FIELD.full_name = ".rpc.protocols.AutoFightResponse.result"
|
||||
AUTOFIGHTRESPONSE_RESULT_FIELD.number = 1
|
||||
AUTOFIGHTRESPONSE_RESULT_FIELD.index = 0
|
||||
AUTOFIGHTRESPONSE_RESULT_FIELD.label = 1
|
||||
AUTOFIGHTRESPONSE_RESULT_FIELD.has_default_value = false
|
||||
AUTOFIGHTRESPONSE_RESULT_FIELD.default_value = 0
|
||||
AUTOFIGHTRESPONSE_RESULT_FIELD.type = 5
|
||||
AUTOFIGHTRESPONSE_RESULT_FIELD.cpp_type = 1
|
||||
|
||||
AUTOFIGHTRESPONSE_DROP_FIELD.name = "drop"
|
||||
AUTOFIGHTRESPONSE_DROP_FIELD.full_name = ".rpc.protocols.AutoFightResponse.drop"
|
||||
AUTOFIGHTRESPONSE_DROP_FIELD.number = 2
|
||||
AUTOFIGHTRESPONSE_DROP_FIELD.index = 1
|
||||
AUTOFIGHTRESPONSE_DROP_FIELD.label = 1
|
||||
AUTOFIGHTRESPONSE_DROP_FIELD.has_default_value = false
|
||||
AUTOFIGHTRESPONSE_DROP_FIELD.default_value = nil
|
||||
AUTOFIGHTRESPONSE_DROP_FIELD.message_type = CommonProto_pb.DROP
|
||||
AUTOFIGHTRESPONSE_DROP_FIELD.type = 11
|
||||
AUTOFIGHTRESPONSE_DROP_FIELD.cpp_type = 10
|
||||
|
||||
AUTOFIGHTRESPONSE.name = "AutoFightResponse"
|
||||
AUTOFIGHTRESPONSE.full_name = ".rpc.protocols.AutoFightResponse"
|
||||
AUTOFIGHTRESPONSE.nested_types = {}
|
||||
AUTOFIGHTRESPONSE.enum_types = {}
|
||||
AUTOFIGHTRESPONSE.fields = {AUTOFIGHTRESPONSE_RESULT_FIELD, AUTOFIGHTRESPONSE_DROP_FIELD}
|
||||
AUTOFIGHTRESPONSE.is_extendable = false
|
||||
AUTOFIGHTRESPONSE.extensions = {}
|
||||
FIGHTENDREQUEST_MONSTERGROUPID_FIELD.name = "monsterGroupId"
|
||||
FIGHTENDREQUEST_MONSTERGROUPID_FIELD.full_name = ".rpc.protocols.FightEndRequest.monsterGroupId"
|
||||
FIGHTENDREQUEST_MONSTERGROUPID_FIELD.number = 1
|
||||
|
@ -1561,6 +1622,8 @@ AdventurnChallengeRequest = protobuf.Message(ADVENTURNCHALLENGEREQUEST)
|
|||
AdventurnChallengeResponse = protobuf.Message(ADVENTURNCHALLENGERESPONSE)
|
||||
AdventurnRankRequest = protobuf.Message(ADVENTURNRANKREQUEST)
|
||||
AdventurnRankResponse = protobuf.Message(ADVENTURNRANKRESPONSE)
|
||||
AutoFightRequest = protobuf.Message(AUTOFIGHTREQUEST)
|
||||
AutoFightResponse = protobuf.Message(AUTOFIGHTRESPONSE)
|
||||
DuoduiChallengeRequest = protobuf.Message(DUODUICHALLENGEREQUEST)
|
||||
DuoduiChallengeResponse = protobuf.Message(DUODUICHALLENGERESPONSE)
|
||||
DuoduiInfoRequest = protobuf.Message(DUODUIINFOREQUEST)
|
||||
|
|
|
@ -27,6 +27,7 @@ HERORANDRESPONSE_DROP_FIELD = protobuf.FieldDescriptor();
|
|||
HERORANDRESPONSE_EXTRABOX_FIELD = protobuf.FieldDescriptor();
|
||||
HERORANDRESPONSE_MUSTCOUNT_FIELD = protobuf.FieldDescriptor();
|
||||
HERORANDRESPONSE_DRAWTIMES_FIELD = protobuf.FieldDescriptor();
|
||||
HERORANDRESPONSE_FABAOMUSTCOUNT_FIELD = protobuf.FieldDescriptor();
|
||||
TEAMPOSSAVEREQUEST = protobuf.Descriptor();
|
||||
TEAMPOSSAVEREQUEST_TEAMPOSINFO_FIELD = protobuf.FieldDescriptor();
|
||||
GETALLTEAMPOSRESPONSE = protobuf.Descriptor();
|
||||
|
@ -539,11 +540,21 @@ HERORANDRESPONSE_DRAWTIMES_FIELD.message_type = CommonProto_pb.RANDOMTYPENUM
|
|||
HERORANDRESPONSE_DRAWTIMES_FIELD.type = 11
|
||||
HERORANDRESPONSE_DRAWTIMES_FIELD.cpp_type = 10
|
||||
|
||||
HERORANDRESPONSE_FABAOMUSTCOUNT_FIELD.name = "fabaoMustCount"
|
||||
HERORANDRESPONSE_FABAOMUSTCOUNT_FIELD.full_name = ".rpc.protocols.HeroRandResponse.fabaoMustCount"
|
||||
HERORANDRESPONSE_FABAOMUSTCOUNT_FIELD.number = 5
|
||||
HERORANDRESPONSE_FABAOMUSTCOUNT_FIELD.index = 4
|
||||
HERORANDRESPONSE_FABAOMUSTCOUNT_FIELD.label = 1
|
||||
HERORANDRESPONSE_FABAOMUSTCOUNT_FIELD.has_default_value = false
|
||||
HERORANDRESPONSE_FABAOMUSTCOUNT_FIELD.default_value = 0
|
||||
HERORANDRESPONSE_FABAOMUSTCOUNT_FIELD.type = 5
|
||||
HERORANDRESPONSE_FABAOMUSTCOUNT_FIELD.cpp_type = 1
|
||||
|
||||
HERORANDRESPONSE.name = "HeroRandResponse"
|
||||
HERORANDRESPONSE.full_name = ".rpc.protocols.HeroRandResponse"
|
||||
HERORANDRESPONSE.nested_types = {}
|
||||
HERORANDRESPONSE.enum_types = {}
|
||||
HERORANDRESPONSE.fields = {HERORANDRESPONSE_DROP_FIELD, HERORANDRESPONSE_EXTRABOX_FIELD, HERORANDRESPONSE_MUSTCOUNT_FIELD, HERORANDRESPONSE_DRAWTIMES_FIELD}
|
||||
HERORANDRESPONSE.fields = {HERORANDRESPONSE_DROP_FIELD, HERORANDRESPONSE_EXTRABOX_FIELD, HERORANDRESPONSE_MUSTCOUNT_FIELD, HERORANDRESPONSE_DRAWTIMES_FIELD, HERORANDRESPONSE_FABAOMUSTCOUNT_FIELD}
|
||||
HERORANDRESPONSE.is_extendable = false
|
||||
HERORANDRESPONSE.extensions = {}
|
||||
TEAMPOSSAVEREQUEST_TEAMPOSINFO_FIELD.name = "TeamPosInfo"
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -798,6 +798,10 @@ CHOICEWISHHERORESPONSE_DESIREID_FIELD = protobuf.FieldDescriptor();
|
|||
CHOICEWISHHERORESPONSE_NEWLIST_FIELD = protobuf.FieldDescriptor();
|
||||
WISHDRAWCARDINDICATION = protobuf.Descriptor();
|
||||
WISHDRAWCARDINDICATION_INFOLIST_FIELD = protobuf.FieldDescriptor();
|
||||
STOREONECLICKPURCHASEREQUEST = protobuf.Descriptor();
|
||||
STOREONECLICKPURCHASEREQUEST_ID_FIELD = protobuf.FieldDescriptor();
|
||||
STOREONECLICKPURCHASERESPONSE = protobuf.Descriptor();
|
||||
STOREONECLICKPURCHASERESPONSE_DROP_FIELD = protobuf.FieldDescriptor();
|
||||
|
||||
ERRORMSGRESPONSE_MSG_FIELD.name = "msg"
|
||||
ERRORMSGRESPONSE_MSG_FIELD.full_name = ".rpc.protocols.ErrorMsgResponse.msg"
|
||||
|
@ -8060,6 +8064,41 @@ WISHDRAWCARDINDICATION.enum_types = {}
|
|||
WISHDRAWCARDINDICATION.fields = {WISHDRAWCARDINDICATION_INFOLIST_FIELD}
|
||||
WISHDRAWCARDINDICATION.is_extendable = false
|
||||
WISHDRAWCARDINDICATION.extensions = {}
|
||||
STOREONECLICKPURCHASEREQUEST_ID_FIELD.name = "id"
|
||||
STOREONECLICKPURCHASEREQUEST_ID_FIELD.full_name = ".rpc.protocols.StoreOneClickPurchaseRequest.id"
|
||||
STOREONECLICKPURCHASEREQUEST_ID_FIELD.number = 1
|
||||
STOREONECLICKPURCHASEREQUEST_ID_FIELD.index = 0
|
||||
STOREONECLICKPURCHASEREQUEST_ID_FIELD.label = 1
|
||||
STOREONECLICKPURCHASEREQUEST_ID_FIELD.has_default_value = false
|
||||
STOREONECLICKPURCHASEREQUEST_ID_FIELD.default_value = 0
|
||||
STOREONECLICKPURCHASEREQUEST_ID_FIELD.type = 5
|
||||
STOREONECLICKPURCHASEREQUEST_ID_FIELD.cpp_type = 1
|
||||
|
||||
STOREONECLICKPURCHASEREQUEST.name = "StoreOneClickPurchaseRequest"
|
||||
STOREONECLICKPURCHASEREQUEST.full_name = ".rpc.protocols.StoreOneClickPurchaseRequest"
|
||||
STOREONECLICKPURCHASEREQUEST.nested_types = {}
|
||||
STOREONECLICKPURCHASEREQUEST.enum_types = {}
|
||||
STOREONECLICKPURCHASEREQUEST.fields = {STOREONECLICKPURCHASEREQUEST_ID_FIELD}
|
||||
STOREONECLICKPURCHASEREQUEST.is_extendable = false
|
||||
STOREONECLICKPURCHASEREQUEST.extensions = {}
|
||||
STOREONECLICKPURCHASERESPONSE_DROP_FIELD.name = "drop"
|
||||
STOREONECLICKPURCHASERESPONSE_DROP_FIELD.full_name = ".rpc.protocols.StoreOneClickPurchaseResponse.drop"
|
||||
STOREONECLICKPURCHASERESPONSE_DROP_FIELD.number = 1
|
||||
STOREONECLICKPURCHASERESPONSE_DROP_FIELD.index = 0
|
||||
STOREONECLICKPURCHASERESPONSE_DROP_FIELD.label = 1
|
||||
STOREONECLICKPURCHASERESPONSE_DROP_FIELD.has_default_value = false
|
||||
STOREONECLICKPURCHASERESPONSE_DROP_FIELD.default_value = nil
|
||||
STOREONECLICKPURCHASERESPONSE_DROP_FIELD.message_type = CommonProto_pb.DROP
|
||||
STOREONECLICKPURCHASERESPONSE_DROP_FIELD.type = 11
|
||||
STOREONECLICKPURCHASERESPONSE_DROP_FIELD.cpp_type = 10
|
||||
|
||||
STOREONECLICKPURCHASERESPONSE.name = "StoreOneClickPurchaseResponse"
|
||||
STOREONECLICKPURCHASERESPONSE.full_name = ".rpc.protocols.StoreOneClickPurchaseResponse"
|
||||
STOREONECLICKPURCHASERESPONSE.nested_types = {}
|
||||
STOREONECLICKPURCHASERESPONSE.enum_types = {}
|
||||
STOREONECLICKPURCHASERESPONSE.fields = {STOREONECLICKPURCHASERESPONSE_DROP_FIELD}
|
||||
STOREONECLICKPURCHASERESPONSE.is_extendable = false
|
||||
STOREONECLICKPURCHASERESPONSE.extensions = {}
|
||||
|
||||
ActiveUserMountRequest = protobuf.Message(ACTIVEUSERMOUNTREQUEST)
|
||||
ActiveUserMountResponse = protobuf.Message(ACTIVEUSERMOUNTRESPONSE)
|
||||
|
@ -8265,6 +8304,8 @@ SignInResponse = protobuf.Message(SIGNINRESPONSE)
|
|||
SpecailActivityUpateIndication = protobuf.Message(SPECAILACTIVITYUPATEINDICATION)
|
||||
StoreGoodsRefreshRequest = protobuf.Message(STOREGOODSREFRESHREQUEST)
|
||||
StoreGoodsRefreshResponse = protobuf.Message(STOREGOODSREFRESHRESPONSE)
|
||||
StoreOneClickPurchaseRequest = protobuf.Message(STOREONECLICKPURCHASEREQUEST)
|
||||
StoreOneClickPurchaseResponse = protobuf.Message(STOREONECLICKPURCHASERESPONSE)
|
||||
StrongthenFaxiangEquipRequest = protobuf.Message(STRONGTHENFAXIANGEQUIPREQUEST)
|
||||
TaiChuSecretvolumeRequest = protobuf.Message(TAICHUSECRETVOLUMEREQUEST)
|
||||
TaiChuSecretvolumeResponse = protobuf.Message(TAICHUSECRETVOLUMERESPONSE)
|
||||
|
|
|
@ -232,7 +232,8 @@ function this.PlayerInfoRequest(func)
|
|||
--修行
|
||||
PracticeManager.UpdataFromServer(msg.practiceLevel)--修行等级
|
||||
PracticeManager.UpdataImprintDataFromServer(msg.sealList)--神印列表
|
||||
RecruitManager.SetRecruit3MustCount(msg.randomCount)
|
||||
RecruitManager.SetRecruit3MustCount(msg.randomCount)--英雄心愿抽必得次数
|
||||
RecruitManager.SetRecruit2MustCount(msg.randCount)--法宝心愿抽必得次数
|
||||
PracticeManager.UpdataPlayerSkill(msg.practiceSkillInfos)--主角技能
|
||||
PracticeManager.InitFourQuadrantData(msg.sixiangInfos)
|
||||
PracticeManager.SetCultivationLevel(msg.xiuweiLevel)
|
||||
|
@ -772,6 +773,10 @@ function this.RecruitRequest(type, func)
|
|||
if RecruitType.Single == type or RecruitType.Ten == type then
|
||||
RecruitManager.SetRecruit3MustCount(msg.mustCount)
|
||||
end
|
||||
if RecruitType.FriendSingle == type or RecruitType.FriendTen == type then
|
||||
LogError("剩余次数======================"..msg.fabaoMustCount)
|
||||
RecruitManager.SetRecruit2MustCount(msg.fabaoMustCount)
|
||||
end
|
||||
CheckRedPointStatus(RedPointType.Huaxutan_CompoundHero)
|
||||
if func then
|
||||
func(msg)
|
||||
|
|
|
@ -258,12 +258,12 @@ function RecruitEquipPanelNew:UpdataWishPanel()
|
|||
end
|
||||
self:CheckNewWishHero()
|
||||
end)
|
||||
--self.tenTip.gameObject:SetActive(true)
|
||||
-- if RecruitManager.isTenRecruit == 0 then
|
||||
-- self.tenTipText.text = "<color=#FFB83B><size=30>每次十连</size><color=#FEDA90><size=30>必得</size></color></color><color=#FFB83B><size=30>五星</size></color><color=#FEDA90><size=30>神将法宝</size></color>"
|
||||
-- else
|
||||
-- self.tenTipText.text = string.format("剩余<color=#31ff00>%s次</color>必得五星神将法宝",RecruitManager.GetRecruit2MustCount())
|
||||
-- end
|
||||
self.tenTip.gameObject:SetActive(true)
|
||||
if RecruitManager.isTenRecruit == 0 then
|
||||
self.tenTipText.text = "<color=#FFB83B><size=30>每次十连</size><color=#FEDA90><size=30>必得</size></color></color><color=#FFB83B><size=30>五星</size></color><color=#FEDA90><size=30>神将法宝</size></color>"
|
||||
else
|
||||
self.tenTipText.text = string.format("剩余<color=#31ff00>%s次</color>必得五星神将法宝",RecruitManager.GetRecruit2MustCount())
|
||||
end
|
||||
end
|
||||
|
||||
function RecruitEquipPanelNew:UpdataBoxReward()
|
||||
|
|
|
@ -15,6 +15,7 @@ local drawtType={
|
|||
}
|
||||
this.freeUseTimeList={} --免费抽卡容器
|
||||
this.recruit3MustCount = 0
|
||||
this.recruit2MustCount = 0
|
||||
|
||||
function this.SetRecruit3MustCount(count)
|
||||
this.recruit3MustCount = count
|
||||
|
@ -23,6 +24,16 @@ end
|
|||
function this.GetRecruit3MustCount()
|
||||
return this.recruit3MustCount
|
||||
end
|
||||
|
||||
function this.SetRecruit2MustCount(count)
|
||||
this.recruit2MustCount = count
|
||||
end
|
||||
|
||||
function this.GetRecruit2MustCount()
|
||||
return this.recruit2MustCount
|
||||
end
|
||||
|
||||
|
||||
function this.Initialize()
|
||||
this.drawTimes = {} --英雄抽卡已招募次数
|
||||
this.isCanOpenBox = false
|
||||
|
|
Loading…
Reference in New Issue