diff --git a/cv/cp_cv/space.go b/cv/cp_cv/space.go index da85cda67c11c7e7e6a1a635aa25db61bff57d7e..86e43280885b6156ac2fba220becaef6b166e40e 100644 --- a/cv/cp_cv/space.go +++ b/cv/cp_cv/space.go @@ -31,8 +31,10 @@ type CvCpLevel struct { // 资源等级 type CvResLevel struct { - Level cp_e.CpLevel `json:"level"` // 等级 - Icon string `json:"icon"` // 等级icon图 + Level cp_e.CpLevel `json:"level"` // 等级 + Icon string `json:"icon"` // 等级icon图 + StartPoints uint32 `json:"startPoints"` // 上个等级所需CP值 + EndPoints uint32 `json:"endPoints,omitempty"` // 下个等级所需CP值 } // 特权信息 @@ -56,12 +58,12 @@ type CvSpace struct { } var CvResLevelList = []CvResLevel{ - {cp_e.CpLevel0, cp_e.CpLevelIcon[cp_e.CpLevel0]}, - {cp_e.CpLevel1, cp_e.CpLevelIcon[cp_e.CpLevel1]}, - {cp_e.CpLevel2, cp_e.CpLevelIcon[cp_e.CpLevel2]}, - {cp_e.CpLevel3, cp_e.CpLevelIcon[cp_e.CpLevel3]}, - {cp_e.CpLevel4, cp_e.CpLevelIcon[cp_e.CpLevel4]}, - {cp_e.CpLevel5, cp_e.CpLevelIcon[cp_e.CpLevel5]}, + {cp_e.CpLevel0, cp_e.CpLevelIcon[cp_e.CpLevel0], cp_e.CpLevelPoints[cp_e.CpLevel0], cp_e.CpLevelPoints[cp_e.CpLevel1]}, + {cp_e.CpLevel1, cp_e.CpLevelIcon[cp_e.CpLevel1], cp_e.CpLevelPoints[cp_e.CpLevel1], cp_e.CpLevelPoints[cp_e.CpLevel2]}, + {cp_e.CpLevel2, cp_e.CpLevelIcon[cp_e.CpLevel2], cp_e.CpLevelPoints[cp_e.CpLevel2], cp_e.CpLevelPoints[cp_e.CpLevel3]}, + {cp_e.CpLevel3, cp_e.CpLevelIcon[cp_e.CpLevel3], cp_e.CpLevelPoints[cp_e.CpLevel3], cp_e.CpLevelPoints[cp_e.CpLevel4]}, + {cp_e.CpLevel4, cp_e.CpLevelIcon[cp_e.CpLevel4], cp_e.CpLevelPoints[cp_e.CpLevel4], cp_e.CpLevelPoints[cp_e.CpLevel5]}, + {cp_e.CpLevel5, cp_e.CpLevelIcon[cp_e.CpLevel5], cp_e.CpLevelPoints[cp_e.CpLevel5], cp_e.CpLevelPoints[cp_e.CpLevelMax]}, } var (