mirror of
https://github.com/Walter-Sparrow/lunar-tear.git
synced 2026-07-02 05:43:41 +03:00
Fix max level evaluation in EnhanceActiveSkill method
This commit is contained in:
@@ -289,7 +289,7 @@ func (s *CostumeServiceServer) EnhanceActiveSkill(ctx context.Context, req *pb.E
|
|||||||
log.Printf("[CostumeService] EnhanceActiveSkill: no max level func for rarity=%d", cm.RarityType)
|
log.Printf("[CostumeService] EnhanceActiveSkill: no max level func for rarity=%d", cm.RarityType)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
maxLevel := maxLevelFunc.Evaluate(0)
|
maxLevel := maxLevelFunc.Evaluate(1)
|
||||||
|
|
||||||
addCount := req.AddLevelCount
|
addCount := req.AddLevelCount
|
||||||
if currentLevel+addCount > maxLevel {
|
if currentLevel+addCount > maxLevel {
|
||||||
|
|||||||
Reference in New Issue
Block a user