服务端(Go): - GM 塞背包/带属性装备发放:在线角色推送 op14 增量物品行,背包实时刷新,无需回角色选择界面 - GM 改金币/改等级:去掉在线拒绝,落库后推送 op14 钱包/op37 等级状态,在线实时刷新 - 等级端点统一切换到新版 GMSetCharacterLevel(自带在线刷新) - 无限/锁死疲劳模式 + 燃烧疲劳:每房间消耗 2 点、打怪与通关经验双倍 - 燃烧疲劳开关时给所有在线角色推送系统提示(op12 mode 0) - 深渊史诗掉率:GM 全局倍率 + 城镇增益药剂窗口倍率,真实接入掉落结算 启动器(Python/JS): - 标题栏自绘、窗口 1204x717、禁止拖拽改大小、仅最小化/关闭 - GM 工具:疲劳与燃烧、深渊史诗掉率、拍卖行上架(单一定价对齐) - 拍卖行上架前端对齐服务端单一价格语义,修复 400 报错
35 lines
1.6 KiB
Go
35 lines
1.6 KiB
Go
package dnfbridge
|
|
|
|
// The team dungeon graph — which gate opens which, which mechanism timers are
|
|
// armed, which symbols ride along and what counts as the phase being finished —
|
|
// is raid-specific. Anton's graph used to be the only one, so its rules were
|
|
// written straight into the shared lifecycle helpers and keyed on Anton's own
|
|
// map ids (210..216 in phase one, 218..224 in phase two). Those helpers ask this
|
|
// owner first, so Luke's graph lives beside Anton's (raid_luke_phase_runtime.go)
|
|
// instead of inside it.
|
|
//
|
|
// Nothing here changes what Anton does.
|
|
|
|
// runtimeRaidTeamGraphOwner names the raid whose team dungeon graph governs this
|
|
// state.
|
|
//
|
|
// RaidMode is stamped when the raid starts (startRuntimeRaid writes the channel
|
|
// owner's mode into a state that was created with zero), so a roster that has
|
|
// not started yet, and every state a test builds by hand, reads 0. Zero resolves
|
|
// to Anton on purpose: the Luke owner is only reachable through a HiddenRaid
|
|
// channel, and that channel stamps mode 2 before any phase can activate, so no
|
|
// Luke raid ever reaches a phase with the mode still unset.
|
|
func runtimeRaidTeamGraphOwner(state runtimeRaidState) byte {
|
|
if state.RaidMode == runtimeRaidOwnerLuke {
|
|
return runtimeRaidOwnerLuke
|
|
}
|
|
return runtimeRaidOwnerAnton
|
|
}
|
|
|
|
// runtimeRaidUsesAntonTeamGraph reports whether the Anton team graph owns this
|
|
// state. Single-mode raids are excluded: they run a flat route through
|
|
// advanceRuntimeRaidSingleObjectiveLocked and arm no team mechanism at all.
|
|
func runtimeRaidUsesAntonTeamGraph(state runtimeRaidState) bool {
|
|
return state.TailFlag != 1 && runtimeRaidTeamGraphOwner(state) == runtimeRaidOwnerAnton
|
|
}
|