fix feature weapon RNG

This commit is contained in:
wish
2023-03-31 00:53:50 +11:00
parent 31adb0b1d6
commit 006f44f3a6

View File

@@ -95,8 +95,8 @@ func generateFeatureWeapons(count int) activeFeature {
}
nums := make([]int, 0)
var result int
rng := token.RNG()
for len(nums) < count {
rng := token.RNG()
num := rng.Intn(14)
exist := false
for _, v := range nums {