fix(fight): 修复技能效果获取逻辑并调整伤害计算方式

-
This commit is contained in:
2025-09-24 19:46:42 +08:00
parent 9b078d7820
commit 805fe8ec8d
4 changed files with 38 additions and 25 deletions

View File

@@ -34,7 +34,8 @@ type OrderedMap[K comparable, V any] struct {
// NewOrderedMap 创建一个新的泛型有序Map
func NewOrderedMap[K comparable, V any]() *OrderedMap[K, V] {
return &OrderedMap[K, V]{
hash: &maphash.Hash{},
hash: &maphash.Hash{},
hashTable: make(map[uint64]*MapEntry[K, V]),
}
}