Files
hanfuit 645b64fe21 DNF90 服务端与启动器完整源码(含 GM 工具功能增强)
服务端(Go):
- GM 塞背包/带属性装备发放:在线角色推送 op14 增量物品行,背包实时刷新,无需回角色选择界面
- GM 改金币/改等级:去掉在线拒绝,落库后推送 op14 钱包/op37 等级状态,在线实时刷新
- 等级端点统一切换到新版 GMSetCharacterLevel(自带在线刷新)
- 无限/锁死疲劳模式 + 燃烧疲劳:每房间消耗 2 点、打怪与通关经验双倍
- 燃烧疲劳开关时给所有在线角色推送系统提示(op12 mode 0)
- 深渊史诗掉率:GM 全局倍率 + 城镇增益药剂窗口倍率,真实接入掉落结算

启动器(Python/JS):
- 标题栏自绘、窗口 1204x717、禁止拖拽改大小、仅最小化/关闭
- GM 工具:疲劳与燃烧、深渊史诗掉率、拍卖行上架(单一定价对齐)
- 拍卖行上架前端对齐服务端单一价格语义,修复 400 报错
2026-11-04 14:31:55 +08:00

27 lines
1.5 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package dnfbridge
// restoreCurrentSceneRawEquipmentRows 重放"mode1/mode3 创建行不携带"的装备实例原始字节。
//
// 当前的 EXE 有**两处**装备数据不在创建行里,必须靠 list-3 的 op14 行单独补:
//
// 公会勋章上的守护珠(guardian gem)raw socket 字 —— 缺了就显示"没有已装备的守护珠",
// 图标与属性一起消失(2026-10-08 现场:修炼场 / 组队进图 / 团本,出图即恢复);
// 称号的 raw 随机附魔(+0x61..+0x65)—— 与守护珠同一个缺口。
//
// 任何一次本地 actor 重建都会把这些对象重建成"没有原始字节"的状态:进副本、换房间、
// 城内换区、回城、团本边界。所以凡是"我们自己提交的场景重建"都要调用本函数一次。
// 失败只记日志:少一个面板不该让走位/进图失败。
func (s *Service) restoreCurrentSceneRawEquipmentRows(session *gameSession, source string) {
if s == nil || session == nil || session.selectedCharacterID == 0 {
return
}
if err := s.sendSelectedGuardianGemWornMedalRefresh(session, source); err != nil {
s.logGameEvent(session, "game-scene-guardian-gem-refresh-failed",
"source", source, "char_id", session.selectedCharacterID, "error", err)
}
if err := s.sendSelectedWornTitleEnchantRowRefresh(session, source); err != nil {
s.logGameEvent(session, "game-scene-title-enchant-refresh-failed",
"source", source, "char_id", session.selectedCharacterID, "error", err)
}
}