From af7cdddcb59b21b25edd4ead1b7888a8f3842a33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=94=E5=BF=B5?= <1@72wo.cn> Date: Mon, 15 Dec 2025 04:44:39 +0800 Subject: [PATCH] =?UTF-8?q?feat(blazing):=20=E4=B8=BAMeleeConfig=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=98=AF=E5=90=A6=E5=90=AF=E7=94=A8=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在MeleeConfig结构体中新增IsEnable字段,用于控制BOSS配置的启用状态。 该字段默认值为0,表示不启用,注释说明了其用途。 同时调整了结构体字段的对齐格式以提升可读性。 --- modules/blazing/model/melee.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/modules/blazing/model/melee.go b/modules/blazing/model/melee.go index c2aa05c8..0a17ff7b 100644 --- a/modules/blazing/model/melee.go +++ b/modules/blazing/model/melee.go @@ -28,11 +28,13 @@ type MeleeConfig struct { Hp int32 `gorm:"not null;comment:'BOSS血量值(LvHpMatchUser非0时此配置无效)'" json:"hp"` Lv int32 `gorm:"not null;comment:'BOSS等级(LvHpMatchUser非0时此配置无效)'" json:"lv"` // ===================== BOSS属性(Boss_prop) ===================== - Prop []uint32 `gorm:"type:jsonb;not null;default:'[]';comment:'BOSS属性'" json:"prop"` - Nature uint32 `gorm:"not null;default:0;comment:'BOSS属性-性格'" json:"nature"` - SKill []uint32 `gorm:"type:jsonb;not null;default:'[]';comment:'BOSS技能'" json:"skill"` - Effect []uint32 `gorm:"type:jsonb;not null;default:'[]';comment:'BOSS特性'" json:"effect"` - Color string `gorm:"not null;default:'0';comment:'BOSS颜色'" json:"color"` + Prop []uint32 `gorm:"type:jsonb;not null;default:'[]';comment:'BOSS属性'" json:"prop"` + Nature uint32 `gorm:"not null;default:0;comment:'BOSS属性-性格'" json:"nature"` + SKill []uint32 `gorm:"type:jsonb;not null;default:'[]';comment:'BOSS技能'" json:"skill"` + Effect []uint32 `gorm:"type:jsonb;not null;default:'[]';comment:'BOSS特性'" json:"effect"` + Color string `gorm:"not null;default:'0';comment:'BOSS颜色'" json:"color"` + IsEnable uint32 `gorm:"not null;default:0;comment:'是否启用'" json:"is_enable"` + // ISMELEE uint32 `gorm:"not null;default:0;comment:'是否乱斗配置'" json:"is_melee"` // // ===================== BOSS奖励规则(Boss_bonus) ===================== // BonusProbability int32 `gorm:"not null;default:0;comment:'打赢BOSS给奖励概率-分子(值域:0-1000,默认0)'" json:"bonus_probability"`