diff --git a/_const/enum/cp_e/level.go b/_const/enum/cp_e/level.go index e6e76ddbe34f36273adffdca356b678bd2d3c616..014ffe047d77fea81f8585d16e4c904c0d7ffc9e 100644 --- a/_const/enum/cp_e/level.go +++ b/_const/enum/cp_e/level.go @@ -38,16 +38,16 @@ var ( CpLevel4: "icon4.png", CpLevel5: "icon5.png", } - // cp特权名称 // todo 翻译 + // cp特权名称 CpPrivilegeNameMsgId = map[CpPrivilege]uint{ - CpPrivilegeSpace: 0, - CpPrivilegeBanner: 0, - CpPrivilegeMedal: 0, - CpPrivilegeCert: 0, - CpPrivilegeRoomEffect: 0, - CpPrivilegeHeadwear: 0, - CpPrivilegeActiveProfile: 0, - CpPrivilegeMicEffect: 0, + CpPrivilegeSpace: 234, + CpPrivilegeBanner: 235, + CpPrivilegeMedal: 236, + CpPrivilegeCert: 237, + CpPrivilegeRoomEffect: 238, + CpPrivilegeHeadwear: 239, + CpPrivilegeActiveProfile: 240, + CpPrivilegeMicEffect: 241, } // cp特权描述 // todo 翻译 CpPrivilegeDescMsgId = map[CpPrivilege]uint{ diff --git a/cv/cp_cv/space.go b/cv/cp_cv/space.go index 8dd601bbf7dca00e8fcc1e7f95b021cd1f5bac05..83d3fd7bcc15bc458cc4a392ed8626b0825b88e6 100644 --- a/cv/cp_cv/space.go +++ b/cv/cp_cv/space.go @@ -94,6 +94,7 @@ func CopyCpLevelPrivilegeList(Level cp_e.CpLevel, lang string) []CvPrivilege { copy(privileges, CpLevelPrivilegeList[Level]) for i, v := range privileges { privileges[i].Name = GetTranslate(v.NameMsgId, lang) + privileges[i].Desc = GetTranslate(v.DescMsgId, lang) } return privileges }