消耗校验
This commit is contained in:
parent
d7a661a6d6
commit
51731fbafb
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user