mirror of
https://github.com/pagefaultgames/rogueserver.git
synced 2025-02-22 16:41:28 +08:00
Clean up compensation code
This commit is contained in:
parent
09abd1fb66
commit
35641e420b
@ -22,9 +22,8 @@ func Get(uuid []byte, datatype, slot int) (any, error) {
|
||||
return nil, fmt.Errorf("failed to fetch compensations: %s", err)
|
||||
}
|
||||
|
||||
for k, v := range compensations {
|
||||
typeKey := strconv.Itoa(k)
|
||||
system.VoucherCounts[typeKey] += v
|
||||
for compensationType, amount := range compensations {
|
||||
system.VoucherCounts[strconv.Itoa(compensationType)] += amount
|
||||
}
|
||||
|
||||
return system, nil
|
||||
|
Loading…
x
Reference in New Issue
Block a user