💩👌 make lint happy

This commit is contained in:
源文雨 2022-03-27 12:48:12 +08:00
parent 4e819eb5d9
commit 884b0e4226

View File

@ -110,7 +110,7 @@ func randnums(nums int, store storage) (rgba *image.RGBA, err error) {
hero, stars = make([]*zip.File, 0, 10), make([]*zip.File, 0, 10) // 角色武器名, 储存星级图标 hero, stars = make([]*zip.File, 0, 10), make([]*zip.File, 0, 10) // 角色武器名, 储存星级图标
cicon = make([]*zip.File, 0, 10) // 元素图标 cicon = make([]*zip.File, 0, 10) // 元素图标
five_bg, four_bg, three_bg = filetree["five_bg.jpg"][0], filetree["four_bg.jpg"][0], filetree["three_bg.jpg"][0] // 背景图片名 fivebg, fourbg, threebg = filetree["five_bg.jpg"][0], filetree["four_bg.jpg"][0], filetree["three_bg.jpg"][0] // 背景图片名
fivelen = len(filetree["five"]) fivelen = len(filetree["five"])
five2len = len(filetree["five2"]) five2len = len(filetree["five2"])
threelen = len(filetree["Three"]) threelen = len(filetree["Three"])
@ -207,19 +207,19 @@ func randnums(nums int, store storage) (rgba *image.RGBA, err error) {
} }
if fiveN > 0 { // 按顺序加入 if fiveN > 0 { // 按顺序加入
he(fiveN, 5, starN5, five_bg) // 五星角色 he(fiveN, 5, starN5, fivebg) // 五星角色
} }
if fourN > 0 { if fourN > 0 {
he(fourN, 3, starN4, four_bg) // 四星角色 he(fourN, 3, starN4, fourbg) // 四星角色
} }
if fiveN2 > 0 { if fiveN2 > 0 {
he(fiveN2, 4, starN5, five_bg) // 五星武器 he(fiveN2, 4, starN5, fivebg) // 五星武器
} }
if fourN2 > 0 { if fourN2 > 0 {
he(fourN2, 2, starN4, four_bg) // 四星武器 he(fourN2, 2, starN4, fourbg) // 四星武器
} }
if threeN2 > 0 { if threeN2 > 0 {
he(threeN2, 1, starN3, three_bg) // 三星武器 he(threeN2, 1, starN3, threebg) // 三星武器
} }
var c1, c2, c3 uint8 = 50, 50, 50 // 背景颜色 var c1, c2, c3 uint8 = 50, 50, 50 // 背景颜色