优化掉落系统

This commit is contained in:
flswld committed 2023-11-16 21:35:51 +08:00
1 parent e9cacf064a
commit c352746496
30 files changed
+350 -204

No files matched your search

+21 -20
View File
@@ -11,32 +11,14 @@ var CONF *Config = nil
// Config 配置
type Config struct {
HttpPort int32 `toml:"http_port"`
Hk4e Hk4e `toml:"hk4e"`
Hk4eRobot Hk4eRobot `toml:"hk4e_robot"`
Logger Logger `toml:"logger"`
Database Database `toml:"database"`
Redis Redis `toml:"redis"`
Hk4e Hk4e `toml:"hk4e"`
Hk4eRobot Hk4eRobot `toml:"hk4e_robot"`
MQ MQ `toml:"mq"`
}
// Logger 日志
type Logger struct {
Level string `toml:"level"`
Mode string `toml:"mode"`
Track bool `toml:"track"`
MaxSize int32 `toml:"max_size"`
}
// Database 数据库配置
type Database struct {
Url string `toml:"url"`
}
type Redis struct {
Addr string `toml:"addr"`
Password string `toml:"password"`
}
// Hk4e 原神服务器
type Hk4e struct {
KcpAddr string `toml:"kcp_addr"` // kcp地址 该地址只用来注册到节点服务器 填网关的外网地址 网关本地监听为0.0.0.0
@@ -81,6 +63,25 @@ type Hk4eRobot struct {
ForwardChecksumClientVersion string `toml:"forward_checksum_client_version"` // 转发模式强制指定校验和客户端版本
}
// Logger 日志
type Logger struct {
Level string `toml:"level"`
Mode string `toml:"mode"`
Track bool `toml:"track"`
MaxSize int32 `toml:"max_size"`
}
// Database 数据库
type Database struct {
Url string `toml:"url"`
}
// Redis 缓存
type Redis struct {
Addr string `toml:"addr"`
Password string `toml:"password"`
}
// MQ 消息队列
type MQ struct {
NatsUrl string `toml:"nats_url"`
+2
View File
@@ -13,6 +13,8 @@ const (
ITEM_ID_WEAPON_UPGRADE_MAGIC = 104013 // 精锻用魔矿
ITEM_ID_WEAPON_UPGRADE_GOOD = 104012 // 精锻用良矿
ITEM_ID_WEAPON_UPGRADE_MOTLEY = 104011 // 精锻用杂矿
ITEM_ID_AVATAR_EXP = 101 // 角色经验
)
// 虚拟物品对应玩家的属性