消耗校验

This commit is contained in:
meixiongfeng 2022-09-26 20:46:42 +08:00
parent d7a661a6d6
commit 51731fbafb

View File

@ -83,6 +83,13 @@ func (this *apiComp) Resonance(session comm.IUserSession, req *pb.HeroResonanceR
if code != pb.ErrorCode_Success {
return
}
for k, _ := range szCostHero {
if k == _hero.Id {
_hero.SameCount = _costMaphero[k].SameCount
break
}
}
if _hero.SameCount > 1 {
_hero.SameCount -= 1
newHero := this.module.modelHero.CloneNewHero(_hero)