```
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",
|
"targetOS": "linux",
|
||||||
"targetArch": "current",
|
"targetArch": "current",
|
||||||
"enableRace": false,
|
"enableRace": false,
|
||||||
"enableOptimization": false,
|
"enableOptimization": true,
|
||||||
"stripSymbols": false,
|
"stripSymbols": true,
|
||||||
"cgoEnabled": false,
|
"cgoEnabled": false,
|
||||||
"buildTags": "",
|
"buildTags": "",
|
||||||
"customLdflags": "",
|
"customLdflags": "-X main.Version={{.Version}} -X main.BuildTime={{.BuildTime}} -X main.GitCommitID={{.GitCommit}} -X main.GitBranch={{.GitBranch}} -buildid= -extldflags '-static'",
|
||||||
"verboseMode": false,
|
"verboseMode": false,
|
||||||
"printCommands": false,
|
"printCommands": false,
|
||||||
"keepWorkDir": false,
|
"keepWorkDir": false,
|
||||||
"forceRebuild": false,
|
"forceRebuild": false,
|
||||||
"dryRun": false,
|
"dryRun": false,
|
||||||
"trimPath": true,
|
"trimPath": true,
|
||||||
"currentPreset": "dev"
|
"currentPreset": "production"
|
||||||
},
|
},
|
||||||
"go.toolsEnvVars": {},
|
"go.toolsEnvVars": {},
|
||||||
"goBuild.zcli.enabled": false,
|
"goBuild.zcli.enabled": false,
|
||||||
|
|||||||
@@ -1,9 +1,11 @@
|
|||||||
package service
|
package service
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"blazing/common/utils"
|
||||||
"blazing/cool"
|
"blazing/cool"
|
||||||
"blazing/modules/config/model"
|
"blazing/modules/config/model"
|
||||||
"context"
|
"context"
|
||||||
|
"fmt"
|
||||||
"sort"
|
"sort"
|
||||||
|
|
||||||
"github.com/gogf/gf/v2/database/gdb"
|
"github.com/gogf/gf/v2/database/gdb"
|
||||||
@@ -37,8 +39,9 @@ func NewServerService() *ServerService {
|
|||||||
err := t.KickPerson(0) //实现指定服务器踢人
|
err := t.KickPerson(0) //实现指定服务器踢人
|
||||||
|
|
||||||
if err == nil {
|
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 {
|
} else {
|
||||||
subm.Set("isonline", 0)
|
subm.Set("isonline", 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user