Fix repeated weapon story unlock notifications by sending only changed stories in diffs

This commit is contained in:
Ilya Groshev
2026-04-16 14:36:05 +03:00
parent a61ae6b93e
commit 0ab2589277
17 changed files with 260 additions and 150 deletions
+1 -1
View File
@@ -26,7 +26,6 @@ var gachaDiffTables = []string{
"IUserWeaponNote",
"IUserWeaponSkill",
"IUserWeaponAbility",
"IUserWeaponStory",
"IUserCharacter",
"IUserMaterial",
}
@@ -296,6 +295,7 @@ func (s *GachaServiceServer) Draw(ctx context.Context, req *pb.DrawRequest) (*pb
userdata.FullClientTableMap(updatedUser),
gachaDiffTables,
))
userdata.AddWeaponStoryDiff(diff, updatedUser, s.handler.Granter.DrainChangedStoryWeaponIds())
return &pb.DrawResponse{
NextGacha: nextGacha,