From 4bf41183aee156fd29b22c8e7847864d2c8c862f Mon Sep 17 00:00:00 2001 From: flswld Date: Mon, 10 Apr 2023 19:44:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BC=96=E8=AF=91=E4=B8=8D?= =?UTF-8?q?=E8=BF=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/constant/element_type.go | 1 + 1 file changed, 1 insertion(+) diff --git a/common/constant/element_type.go b/common/constant/element_type.go index 0ed011f2..1c801a42 100644 --- a/common/constant/element_type.go +++ b/common/constant/element_type.go @@ -18,6 +18,7 @@ type FightPropEnergy struct { var ELEMENT_TYPE_FIGHT_PROP_ENERGY_MAP map[int]*FightPropEnergy func init() { + ELEMENT_TYPE_FIGHT_PROP_ENERGY_MAP = make(map[int]*FightPropEnergy) ELEMENT_TYPE_FIGHT_PROP_ENERGY_MAP[ELEMENT_TYPE_FIRE] = &FightPropEnergy{ CurEnergy: FIGHT_PROP_CUR_FIRE_ENERGY, MaxEnergy: FIGHT_PROP_MAX_FIRE_ENERGY,