天书秘卷提交
parent
08f41d473c
commit
a79e67097e
|
|
@ -189,6 +189,17 @@ function this.GetManyItems(text)
|
|||
end)
|
||||
return
|
||||
end
|
||||
if text == "一键灵兽" then
|
||||
local config = ConfigPairs(ConfigManager.GetConfig(ConfigName.SpiritAnimal))
|
||||
local cor = coroutine.start(function()
|
||||
for k,v in (config) do
|
||||
local str = "1#" .. v.Id .."#" .. 1
|
||||
NetManager.GMEvent(str)
|
||||
coroutine.wait(0.1)
|
||||
end
|
||||
end)
|
||||
return
|
||||
end
|
||||
if text and text ~= "" then
|
||||
local list = string.split(text, "|")
|
||||
local cor = coroutine.start(function()
|
||||
|
|
|
|||
|
|
@ -288,45 +288,20 @@ function this.DrawHeroRequest(func)
|
|||
local data = buffer:DataByte()
|
||||
local msg = HeroInfoProto_pb.DrawHeroResponse()
|
||||
msg:ParseFromString(data)
|
||||
|
||||
--Log(table.maxn(msg.heroList))
|
||||
Log(#msg.heroList)
|
||||
--HeroManager.data = msg.player
|
||||
if func then
|
||||
func(msg)
|
||||
end
|
||||
|
||||
for i = 1, #msg.heroList do
|
||||
local hero = msg.heroList[i]
|
||||
Log("hero.id : " .. hero.id)
|
||||
Log("hero.heroId : " .. hero.heroId)
|
||||
Log("hero.heroType : " .. hero.heroType)
|
||||
Log("hero.level : " .. hero.level)
|
||||
Log("hero.star : " .. hero.star)
|
||||
Log("hero.quality : " .. hero.quality)
|
||||
Log("hero.hp : " .. hero.hp)
|
||||
Log("hero.attack : " .. hero.attack)
|
||||
Log("hero.pDefence : " .. hero.pDefence)
|
||||
Log("hero.mDefence : " .. hero.mDefence)
|
||||
Log("hero.speed : " .. hero.speed)
|
||||
for j = 1, #hero.skillList do
|
||||
local skill = hero.skillList[j]
|
||||
Log("skill.skillId : " .. skill.skillId)
|
||||
Log("skill.skillType : " .. skill.skillType)
|
||||
Log("skill.level : " .. skill.level)
|
||||
Log("skill.star : " .. skill.star)
|
||||
Log("skill.cd : " .. skill.cd)
|
||||
for k = 1, #skill.effectId do
|
||||
local effectId = skill.effectId[k]
|
||||
Log("effectId : " .. effectId)
|
||||
end
|
||||
end
|
||||
for j = 1, #hero.equipList do
|
||||
local equip = hero.equipList[j]
|
||||
Log("equip.id : " .. equip.id)
|
||||
Log("equip.equipId : " .. equip.equipId)
|
||||
Log("equip.level : " .. equip.level)
|
||||
Log("equip.star : " .. equip.star)
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
|
@ -4504,10 +4479,8 @@ end
|
|||
--请求灵兽升星
|
||||
function this.UpPokemonStarRequest(pokemonDId,curUpStarSelectPokemonData, func)
|
||||
local data = HeroInfoProto_pb.PokemonAdvancedRequest()
|
||||
LogPink("pokemonDId " .. pokemonDId)
|
||||
data.pokemonId = pokemonDId
|
||||
for i = 1, #curUpStarSelectPokemonData do
|
||||
LogPink("升星消耗的灵兽 "..curUpStarSelectPokemonData[i])
|
||||
data.consumePokemonIds:append(curUpStarSelectPokemonData[i])
|
||||
end
|
||||
local msg = data:SerializeToString()
|
||||
|
|
|
|||
|
|
@ -20,10 +20,9 @@ function this.OnLevelChange()
|
|||
v.enabled = this.CheckOpenFetter(v.openLevel) and -1 or -2
|
||||
end
|
||||
end
|
||||
CheckRedPointStatus(RedPointType.Hero_Fetter)
|
||||
CheckRedPointStatus(RedPointType.SoulPrint_Fetter)
|
||||
CheckRedPointStatus(RedPointType.Pokemon_Fetter)
|
||||
CheckRedPointStatus(RedPointType.TianShuPokemon_Fetter)
|
||||
this.CheckFetterStatus(1)
|
||||
this.CheckFetterStatus(2)
|
||||
this.CheckFetterStatus(3)
|
||||
end
|
||||
|
||||
function this.CreatSingleConfigData(configData)
|
||||
|
|
|
|||
|
|
@ -57,13 +57,13 @@ function FetterItem:SetData(data)
|
|||
self.tipText.text = string.format("<color = #fff5df>%s</color>",self.itemData.activeParaTip)
|
||||
end
|
||||
self.tipText.text = self.itemData.activeParaTip
|
||||
if #self.itemData.reward > 0 then
|
||||
if self.itemData.reward and #self.itemData.reward > 0 then
|
||||
self.reward.gameObject:SetActive(true)
|
||||
self.rewardIcon = Util.LoadSprite(GetResourcePath(itemConfig[self.itemData.reward[1][1]].ResourceID))
|
||||
self.rewardNum.text = self.itemData.reward[1][2]
|
||||
else
|
||||
self.reward.gameObject:SetActive(false)
|
||||
end
|
||||
self.rewardIcon = Util.LoadSprite(GetResourcePath(itemConfig[self.itemData.reward[1][1]].ResourceID))
|
||||
self.rewardNum.text = self.itemData.reward[1][2]
|
||||
self:SetIcon(self.itemData.enabled)
|
||||
if not self.itemList then
|
||||
self.itemList = {}
|
||||
|
|
|
|||
Loading…
Reference in New Issue