Merge branch 'meixiongfeng' of http://git.legu.cc/liwei_3d/go_dreamfactory into dev
This commit is contained in:
commit
257bd47c58
@ -318,9 +318,9 @@
|
|||||||
"key": 36,
|
"key": 36,
|
||||||
"recruitment_type": 1,
|
"recruitment_type": 1,
|
||||||
"card_pool_type": "base_pool1",
|
"card_pool_type": "base_pool1",
|
||||||
"star": 5,
|
"star": 3,
|
||||||
"race": 4,
|
"race": 4,
|
||||||
"id": "45003",
|
"id": "13001",
|
||||||
"weight": 1000
|
"weight": 1000
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -179,16 +179,6 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"index": "22",
|
|
||||||
"var": [
|
|
||||||
{
|
|
||||||
"a": "hero",
|
|
||||||
"t": "11001",
|
|
||||||
"n": 1
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"index": "23",
|
"index": "23",
|
||||||
"var": [
|
"var": [
|
||||||
@ -598,5 +588,35 @@
|
|||||||
"n": 5
|
"n": 5
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"index": "68",
|
||||||
|
"var": [
|
||||||
|
{
|
||||||
|
"a": "hero",
|
||||||
|
"t": "43901",
|
||||||
|
"n": 5
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"index": "69",
|
||||||
|
"var": [
|
||||||
|
{
|
||||||
|
"a": "hero",
|
||||||
|
"t": "43902",
|
||||||
|
"n": 5
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"index": "70",
|
||||||
|
"var": [
|
||||||
|
{
|
||||||
|
"a": "hero",
|
||||||
|
"t": "43903",
|
||||||
|
"n": 5
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
File diff suppressed because it is too large
Load Diff
@ -169,7 +169,12 @@ func (this *apiComp) DrawCard(session comm.IUserSession, req *pb.HeroDrawCardReq
|
|||||||
}
|
}
|
||||||
randomIndex := this.module.modelHero.GetRandW(sz)
|
randomIndex := this.module.modelHero.GetRandW(sz)
|
||||||
|
|
||||||
szCards = append(szCards, _data[int32(star)][randomIndex].Id)
|
if v, ok := _data[int32(star)]; ok {
|
||||||
|
if int32(len(v)) > randomIndex {
|
||||||
|
szCards = append(szCards, v[randomIndex].Id)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
// 更新record 配置信息
|
// 更新record 配置信息
|
||||||
update := map[string]interface{}{}
|
update := map[string]interface{}{}
|
||||||
|
Loading…
Reference in New Issue
Block a user