三消 随机消除N 个

This commit is contained in:
meixiongfeng 2024-02-07 10:06:46 +08:00
parent b031f9c154
commit f48e9bfb0f
2 changed files with 425 additions and 331 deletions

View File

@ -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