mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 13:59:39 +08:00
Merge branch 'master' of https://github.com/FloatTech/ZeroBot-Plugin
This commit is contained in:
commit
e3a50cc014
@ -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)
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user