礼物战斗力计算修改
parent
e71d3b4d5c
commit
8240f1e631
|
@ -129,11 +129,11 @@ function this.GetHeroGiftAddPro(_id)
|
||||||
-- end
|
-- end
|
||||||
-- end
|
-- end
|
||||||
end
|
end
|
||||||
-- if addPro>0 then
|
if addPro>0 then
|
||||||
-- for k, v in pairs(data) do
|
for k, v in pairs(data) do
|
||||||
-- data[k]=math.floor(v*(1+addPro/10000)+0.5)
|
data[k]=math.floor(v*(1+addPro/10000)+0.5)
|
||||||
-- end
|
end
|
||||||
-- end
|
end
|
||||||
return data
|
return data
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -7355,6 +7355,16 @@ function NetManager.GiftEquipWearRequest(_type,_roleId,_ids,_func)
|
||||||
end
|
end
|
||||||
HeroPropManager.SetFuncPropDirty(Func_Prop_Type.Gift)
|
HeroPropManager.SetFuncPropDirty(Func_Prop_Type.Gift)
|
||||||
HeroPropManager.SetDirtyByType(_roleId, Hero_Prop_Type.Gift)
|
HeroPropManager.SetDirtyByType(_roleId, Hero_Prop_Type.Gift)
|
||||||
|
if _roleId=="0" then
|
||||||
|
local formationList = FormationManager.GetFormationByID(FormationTypeDef.FORMATION_NORMAL)
|
||||||
|
for i = 1, 6 do
|
||||||
|
if formationList.teamHeroInfos[i] then
|
||||||
|
HeroPropManager.SetDirtyByType(formationList.teamHeroInfos[i].heroId, Hero_Prop_Type.Gift)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
--FormationManager.UserPowerChanged()
|
||||||
--获取新战力
|
--获取新战力
|
||||||
NetManager.RequestUserForceChange(FormationTypeDef.FORMATION_NORMAL)
|
NetManager.RequestUserForceChange(FormationTypeDef.FORMATION_NORMAL)
|
||||||
CheckRedPointStatus(RedPointType.playerGift)
|
CheckRedPointStatus(RedPointType.playerGift)
|
||||||
|
|
Loading…
Reference in New Issue