修复问题、添加give命令

修复使用除主角外角色无法进入的问题
新增give命令 武器数量 精炼 角色等级 命座等后期增加参数
This commit is contained in:
UnKownOwO
2022-11-26 16:30:36 +08:00
parent 5fa5ef5e01
commit 86a65e6f9b
9 changed files with 274 additions and 65 deletions
+5 -1
View File
@@ -88,7 +88,11 @@ func (t *TickManager) onTickMinute(now int64) {
count := random.GetRandomInt32(0, 4)
i := int32(0)
for itemId := range allItemDataConfig {
itemDataConfig := allItemDataConfig[itemId]
itemDataConfig, ok := allItemDataConfig[itemId]
if !ok {
logger.LOG.Error("config is nil, itemId: %v", itemId)
return
}
// TODO 3.0.0REL版本中 发送某些无效家具 可能会导致客户端背包家具界面卡死
if itemDataConfig.ItemEnumType == constant.ItemTypeConst.ITEM_FURNITURE {
continue