fix: allow golden thread mail grants

This commit is contained in:
2026-10-03 00:10:05 +08:00
parent e9ebe68d40
commit e1c6ce082c
5 changed files with 37 additions and 19 deletions
+5
View File
@@ -328,6 +328,11 @@ func (s *Wallet) GrantQuestOnce(identity string, rewards []gamedata.Reward) (Cur
return Currency{}, errors.New("player: catalyst overflow")
}
next.Catalyst += reward.Count
case 20:
if math.MaxUint64-next.Mileage < reward.Count {
return Currency{}, errors.New("player: mileage overflow")
}
next.Mileage += reward.Count
}
}
next.Granted[identity] = true