```
feat(fight): AI战斗逻辑优化,修复技能使用判断逻辑 - 修改AI技能选择逻辑,从直接使用技能ID改为先存储技能实体再统一执行 - 修复usedskill变量类型从uint32改为*info.SkillEntity指针类型 - 优化技能使用流程,确保只有在找到可用技能时才执行UseSkill操作 fix(player): 调整玩家登录时的任务等级上限检查范围 - 将MaxPuniLv等级上限从7调整为9 - 相应地将任务检查范围从291-297扩展到291-299 fix(config): 完善服务器在线状态配置逻辑 - 为服务器在线状态设置添加缺失的else分支 - 确保在所有条件分支下都能正确设置isonline状态值 ```
This commit is contained in:
8
.vscode/settings.json
vendored
8
.vscode/settings.json
vendored
@@ -6,18 +6,18 @@
|
||||
"targetOS": "linux",
|
||||
"targetArch": "current",
|
||||
"enableRace": false,
|
||||
"enableOptimization": false,
|
||||
"stripSymbols": false,
|
||||
"enableOptimization": true,
|
||||
"stripSymbols": true,
|
||||
"cgoEnabled": false,
|
||||
"buildTags": "",
|
||||
"customLdflags": "",
|
||||
"customLdflags": "-X main.Version={{.Version}} -X main.BuildTime={{.BuildTime}} -X main.GitCommitID={{.GitCommit}} -X main.GitBranch={{.GitBranch}} -buildid= -extldflags '-static'",
|
||||
"verboseMode": false,
|
||||
"printCommands": false,
|
||||
"keepWorkDir": false,
|
||||
"forceRebuild": false,
|
||||
"dryRun": false,
|
||||
"trimPath": true,
|
||||
"currentPreset": "dev"
|
||||
"currentPreset": "production"
|
||||
},
|
||||
"go.toolsEnvVars": {},
|
||||
"goBuild.zcli.enabled": false,
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"blazing/common/utils"
|
||||
"blazing/cool"
|
||||
"blazing/modules/config/model"
|
||||
"context"
|
||||
"fmt"
|
||||
"sort"
|
||||
|
||||
"github.com/gogf/gf/v2/database/gdb"
|
||||
@@ -37,8 +39,9 @@ func NewServerService() *ServerService {
|
||||
err := t.KickPerson(0) //实现指定服务器踢人
|
||||
|
||||
if err == nil {
|
||||
r, _ := utils.TcpPing(fmt.Sprintf("%s:%d", r[i].Map()["ip"], r[i].Map()["port"]))
|
||||
|
||||
subm.Set("isonline", 1)
|
||||
subm.Set("isonline", r)
|
||||
|
||||
} else {
|
||||
subm.Set("isonline", 0)
|
||||
|
||||
Reference in New Issue
Block a user