三消 随机消除N 个
This commit is contained in:
parent
b031f9c154
commit
f48e9bfb0f
@ -525,10 +525,10 @@ func (this *MapData) SkillUp(pos int32, color int32, skillid int32, value int32,
|
||||
x = make(map[int]struct{})
|
||||
|
||||
switch skillid {
|
||||
case 1:
|
||||
case 1: // 随机一组数
|
||||
randNum := utils.RandomNumbers(0, Total-1, int(value)*2)
|
||||
for _, v := range randNum {
|
||||
if this.Plat[v].Special > 0 {
|
||||
if this.Plat[v].Special == 0 {
|
||||
ids = append(ids, v)
|
||||
if len(ids) >= int(value) {
|
||||
break
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user