``` feat(pet): 重构宠物繁殖系统,添加蛋孵化功能
This commit is contained in:
@@ -46,6 +46,21 @@ func signalHandlerForMain(sig os.Signal) {
|
||||
|
||||
// main 程序主入口函数
|
||||
func main() {
|
||||
// item := model.NeweggConfig()
|
||||
// item.GeneratedPetIDs = []model.GeneratedPetID{
|
||||
// {PetID: 1, Prob: 0.01},
|
||||
// {PetID: 2, Prob: 0.01},
|
||||
// {PetID: 3, Prob: 0.01},
|
||||
// {PetID: 4, Prob: 0.01},
|
||||
// {PetID: 5, Prob: 0.01},
|
||||
// {PetID: 6, Prob: 0.01},
|
||||
// }
|
||||
// item.MalePet = 1
|
||||
// item.FemalePet = 2
|
||||
// _, err := g.DB(item.GroupName()).Model(item.TableName()).FieldsEx("id").Data(item).Insert()
|
||||
// if err != nil {
|
||||
// panic(err)
|
||||
// }
|
||||
//loadAccounts()
|
||||
// if cool.IsRedisMode {
|
||||
// go cool.ListenFunc(gctx.New())
|
||||
|
||||
Reference in New Issue
Block a user