playroom每日任务
This commit is contained in:
parent
35c8ca8f82
commit
23df24e0dd
@ -6,6 +6,9 @@ import (
|
||||
)
|
||||
|
||||
func RandMap(d map[int]int) int {
|
||||
if len(d) == 0 {
|
||||
return -1
|
||||
}
|
||||
total := 0
|
||||
for _, v := range d {
|
||||
total += v
|
||||
|
||||
@ -34,6 +34,7 @@ func init() {
|
||||
gamedata.InitCfg(CFG_PLAYROOM_LOCK)
|
||||
gamedata.InitCfg(CFG_PLAYROOM_DAILYTASK)
|
||||
gamedata.InitCfg(CFG_PLAYROOM_DAILYTASKREWARD)
|
||||
gamedata.InitCfg(CFG_PLAYROOM_TASKJACKPOT)
|
||||
}
|
||||
|
||||
func GetShopItem(Id int) (int, []*item.Item) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user