feat(诸子列传): 添加功能

This commit is contained in:
luying
2023-07-12 17:38:19 +08:00
parent b1af8ad204
commit 1eb6f76cce
25 changed files with 5475 additions and 71 deletions

View File

@@ -63,6 +63,47 @@ export enum ABI_TYPE {
ABI_BLOOD_REBOUND = 27,
/** 反击伤害 */
ABI_STRIKE_BACK = 28,
/** 加怒气值 */
ABI_GAIN_AP = 29,
/** 怒气提升效率 / 1000*/
ABI_RAGE_ADD_PERCENT = 30,
/** 格挡减伤提升效率 / 1000*/
ABI_BLOCK_ADD_PERCENT = 31,
/** 护盾 */
ABI_SHIELD = 32,
/** 竞技增伤 */
ABI_PVP_ADD = 33,
/** 竞技减伤 */
ABI_PVP_MINUS = 34,
/** 对魏增伤 */
ABI_WEI_ADD = 35,
/** 对魏减伤 */
ABI_WEI_MINUS = 36,
/** 对蜀增伤 */
ABI_SHU_ADD = 37,
/** 对蜀减伤 */
ABI_SHU_MINUS = 38,
/** 对吴增伤 */
ABI_WU_ADD = 39,
/** 对吴减伤 */
ABI_WU_MINUS = 40,
/** 对群增伤 */
ABI_OTHER_ADD = 41,
/** 对群减伤 */
ABI_OTHER_MINUS = 42,
ABI_MAX,
}
@@ -95,8 +136,35 @@ export const ABI_TYPE_SUB = [
ABI_TYPE.ABI_ACCEPT_TREATMENT_DECREASE,
ABI_TYPE.ABI_BLOOD_REBOUND,
ABI_TYPE.ABI_STRIKE_BACK,
ABI_TYPE.ABI_GAIN_AP,
ABI_TYPE.ABI_RAGE_ADD_PERCENT,
ABI_TYPE.ABI_BLOCK_ADD_PERCENT,
ABI_TYPE.ABI_SHIELD,
ABI_TYPE.ABI_PVP_ADD,
ABI_TYPE.ABI_PVP_MINUS,
ABI_TYPE.ABI_WEI_ADD,
ABI_TYPE.ABI_WEI_MINUS,
ABI_TYPE.ABI_SHU_ADD,
ABI_TYPE.ABI_SHU_MINUS,
ABI_TYPE.ABI_WU_ADD,
ABI_TYPE.ABI_WU_MINUS,
ABI_TYPE.ABI_OTHER_ADD,
ABI_TYPE.ABI_OTHER_MINUS
];
export const ABI_TYPE_PVP = [
ABI_TYPE.ABI_PVP_ADD,
ABI_TYPE.ABI_PVP_MINUS,
ABI_TYPE.ABI_WEI_ADD,
ABI_TYPE.ABI_WEI_MINUS,
ABI_TYPE.ABI_SHU_ADD,
ABI_TYPE.ABI_SHU_MINUS,
ABI_TYPE.ABI_WU_ADD,
ABI_TYPE.ABI_WU_MINUS,
ABI_TYPE.ABI_OTHER_ADD,
ABI_TYPE.ABI_OTHER_MINUS
]
export enum SEID_TYPE {
/**属性固定值加成(数值) */
FIX = 1,

View File

@@ -40,6 +40,8 @@ export enum HERO_SYSTEM_TYPE {
ARTIFACT_QUALITY = 37, // 宝物品质
ARTIFACT_TRANSFER = 38, // 宝物转换
ARTIFACT_REBUILD = 39, // 宝物重铸
AUTHOR_BOOK_STAR = 40, // 诸子列传升星
AUTHOR_BOOK_SUB_RESET = 41, // 诸子列传重置
};
// 武将上限
@@ -66,4 +68,10 @@ export const HERO_INITIAL_QUALITY = {
UR: 4,
}
export const CHECK_HERO_CONSUME = true;
export const CHECK_HERO_CONSUME = true;
// 诸子列传解锁条件
export enum AUTHOR_BOOK_LIMIT_TYPE {
ALL = 1, // 所有的进度解锁
ASSIGN = 2, // 指定的进度解锁
}

View File

@@ -39,6 +39,7 @@ export const CONSUME_TYPE = {
DRAWING: 17, // 图纸
VOUCHER: 18, // 代金券
ARTIFACT_GENERAL: 19, // 宝物通用
SPIRIT_STONE: 20, // 灵石
};
export enum ROLE_TERAPH {
@@ -155,6 +156,7 @@ const itid_array = [
{ id: 64, name: '宝物', table: 'artifact' },
{ id: 65, name: '宝物通用材料', table: 'item', type: CONSUME_TYPE.ARTIFACT_GENERAL },
{ id: 66, name: '活动限时材料', table: 'activityItem' },
{ id: 67, name: '灵石', table: 'item', type: CONSUME_TYPE.SPIRIT_STONE },
];
export const ITID = new Map<number, { id: number, name: string, table: string, type?: number, isCurrency?: boolean, equipJewel?: number }>();

View File

@@ -57,7 +57,7 @@ export enum FRIEND_SHIP_SELECT {
GET_FRIEND_VALUE = 'friendValue friendLv'
}
export const ENTERY_ROLE_PICK = ['roleId', 'roleName', 'serverId', 'ce', 'topLineupCe', 'coin', 'lv', 'exp', 'vLv', 'gold', 'heros', 'jewels', 'artifacts', 'consumeGoods', 'title', 'teraphs', 'showLineup', 'heads', 'head', 'frames', 'frame', 'spines', 'spine', 'hasGuild', 'guildCode', 'todayZeroPoint', 'apJson', 'skins', 'totalPay', 'guide', 'hasInit', 'renameCnt', 'totalCost', 'guildName', 'isVip', 'createTime', 'ipLocation', 'activityItems', 'customerLink', 'isClosePush', 'hasComment'];
export const ENTERY_ROLE_PICK = ['roleId', 'roleName', 'serverId', 'ce', 'topLineupCe', 'coin', 'lv', 'exp', 'vLv', 'gold', 'heros', 'jewels', 'artifacts', 'consumeGoods', 'title', 'teraphs', 'showLineup', 'heads', 'head', 'frames', 'frame', 'spines', 'spine', 'hasGuild', 'guildCode', 'todayZeroPoint', 'apJson', 'skins', 'totalPay', 'guide', 'hasInit', 'renameCnt', 'totalCost', 'guildName', 'isVip', 'createTime', 'ipLocation', 'activityItems', 'customerLink', 'isClosePush', 'hasComment', 'authorBook'];
export enum SURVEY_SELECT {
FIND = '-__v -_id -surveyName -roleIndex -reward -mailContent -receivedRole -createdAt -updatedAt'

View File

@@ -646,6 +646,10 @@ export const FILENAME = {
DIC_GK_GVGBATTLE: 'dic_zyz_gk_GVGBattle',
DIC_GVG_VESTIGE_PLAYER_RANK: 'dic_zyz_GVGVestigePlayerRank',
DIC_PUSH_MESSAGE: 'dic_zyz_pushMessage',
DIC_AUTHORS_BOOK: 'dic_zyz_authorsBook',
DIC_AUTHORS_BOOK_POINT: 'dic_zyz_authorsBookPoint',
DIC_AUTHORS_BOOK_SUB: 'dic_zyz_authorsBookSub',
DIC_AUTHORS_GOODID: 'dic_zyz_authorsGoodId',
}
export const WAR_RELATE_TABLES = [
@@ -1194,6 +1198,11 @@ export enum ITEM_CHANGE_REASON {
ACT_DRAGON_BOAT_BUY_COST = 187, // 购买龙舟挑战奖励
ACT_ENTERTAIN = 188, // 宴请百家奖励
ACT_ENTERTAIN_BUY_COST = 189, // 宴请百家奖励花费
AUTHOR_BOOK_STAR_UP = 190, // 诸子列传升星
AUTHOR_BOOK_STAR_RETURN = 191, // 诸子列传升星并发返回
AUTHOR_BOOK_SUB_RESET = 192, // 重置列传
DECOMPOSE_SPIRIT = 193, // 分解英灵
BUY_SPIRIT = 194, // 分解英灵
}
export enum TA_EVENT {