服务端(Go): - GM 塞背包/带属性装备发放:在线角色推送 op14 增量物品行,背包实时刷新,无需回角色选择界面 - GM 改金币/改等级:去掉在线拒绝,落库后推送 op14 钱包/op37 等级状态,在线实时刷新 - 等级端点统一切换到新版 GMSetCharacterLevel(自带在线刷新) - 无限/锁死疲劳模式 + 燃烧疲劳:每房间消耗 2 点、打怪与通关经验双倍 - 燃烧疲劳开关时给所有在线角色推送系统提示(op12 mode 0) - 深渊史诗掉率:GM 全局倍率 + 城镇增益药剂窗口倍率,真实接入掉落结算 启动器(Python/JS): - 标题栏自绘、窗口 1204x717、禁止拖拽改大小、仅最小化/关闭 - GM 工具:疲劳与燃烧、深渊史诗掉率、拍卖行上架(单一定价对齐) - 拍卖行上架前端对齐服务端单一价格语义,修复 400 报错
26 lines
1.1 KiB
Go
26 lines
1.1 KiB
Go
package dnfbridge
|
||
|
||
import (
|
||
"testing"
|
||
|
||
"longheng.io/server/internal/modules/dnf/channelcatalog"
|
||
)
|
||
|
||
func TestPVPTotalEntryUsesNativeChannelNumbersWithoutTournamentEvent(t *testing.T) {
|
||
// The actual tab click at 1EA4EDB calls 1CF3800, which accepts native
|
||
// channel numbers 75..77. Type 41 only selects the DPL preliminary UI.
|
||
for _, tc := range []struct {
|
||
id int
|
||
kind byte
|
||
mode uint16
|
||
}{{74, 8, 0}, {75, 8, 7}, {76, 8, 7}, {77, 8, 7}, {78, 8, 0}, {501, 8, 0}, {505, 41, 0}, {75, 31, 0}, {75, 13, 0}} {
|
||
session := &gameSession{channel: channelcatalog.Channel{ID: tc.id, Type: tc.kind, Group: "pvp"}}
|
||
if got := currentPVPMatchingGameType(session); got != tc.mode {
|
||
t.Errorf("native channel %d/type%d: matching mode %d, want %d", tc.id, tc.kind, got, tc.mode)
|
||
}
|
||
}
|
||
// 注:参考实现此处还有一段断言,验证普通总战绩不会启用"预选锦标赛"入口
|
||
// (buildCurrentOnlineEventInfoBody / readRuinsPortalTestDirectory)。那属于在线活动 +
|
||
// 神秘遗迹目录系统,不是决斗场代码;本树未移植该链路,故这段断言一并去掉。
|
||
}
|