This commit is contained in:
源文雨 2022-03-27 00:24:56 +08:00
commit e3a50cc014
2 changed files with 3 additions and 3 deletions

View File

@ -168,10 +168,10 @@ func randnums(nums int, store storage) (rgba *image.RGBA, err error) {
switch rand.Intn(2) { switch rand.Intn(2) {
case 0: case 0:
fourN++ fourN++
fours = append(fours, filetree["four"][rand.Intn(fourlen)]) //随机角色 fours = append(fours, filetree["four"][rand.Intn(fourlen)]) // 随机角色
case 1: case 1:
fourN2++ fourN2++
fourArms = append(fourArms, filetree["four2"][rand.Intn(four2len)]) //随机武器 fourArms = append(fourArms, filetree["four2"][rand.Intn(four2len)]) // 随机武器
} }
} }
_ = atomic.AddUint64(&totl, 1) _ = atomic.AddUint64(&totl, 1)

View File

@ -97,7 +97,7 @@ func init() { // 插件主体
} }
// notnull 如果传入文本为空,则返回默认值 // notnull 如果传入文本为空,则返回默认值
//nolint: unparam
func notnull(text, defstr string) string { func notnull(text, defstr string) string {
if text == "" { if text == "" {
return defstr return defstr