playroom每日任务

This commit is contained in:
hahwu 2025-04-24 14:42:52 +08:00
parent 35c8ca8f82
commit 23df24e0dd
2 changed files with 4 additions and 0 deletions

View File

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

View File

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