✨ feat(任务): 添加任务类型

This commit is contained in:
luying
2022-12-29 10:46:44 +08:00
parent cd5fd0c074
commit a87ab664e4
8 changed files with 68 additions and 25 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ export const WAR_TYPE = {
GUILD_ACTIVITY: 10, // 军团活动
GUILD_TRAIN: 11, // 军团练兵场
MAIN_ELITE: 12, // 主线精英
MYSTERY_ELITE: 13, // 秘境精英
BRANCH_ELITE: 13, // 秘境精英
BRANCH: 14, // 支线
ACT_TREASURE_HUNT: 15, // 神州探秘
ACT_SELF_SHOP: 16, // 糜家商队
+2
View File
@@ -788,6 +788,8 @@ export enum TASK_TYPE {
ARTIFACT_LV = 127, // 强化X件宝物至X级
ARTIFACT_QUALITY_EQUIP = 128, // 穿戴X件品质为X的宝物
ARTIFACT_COMPOSE = 129, // 合成X次宝物
STAR_UP_SUM = 130, // 总计升星次数
BATTLE_BRANCH_ELITE = 131, // 通关
}
// 任务累积类型
+2 -1
View File
@@ -658,6 +658,7 @@ export function getReasonByWarType(warType: number) {
// case WAR_TYPE.MYSTERY_ELITE:
// return ITEM_CHANGE_REASON.MYSTERY_ELITE_BATTLE_END;
case WAR_TYPE.BRANCH:
case WAR_TYPE.BRANCH_ELITE:
return ITEM_CHANGE_REASON.BRANCH_BATTLE_END;
case WAR_TYPE.ACT_TREASURE_HUNT:
return ITEM_CHANGE_REASON.ACT_TREASURE_HUNT_BATTLE_END;
@@ -692,7 +693,7 @@ export function getWarTypeName(warType: number) {
case WAR_TYPE.GUILD_ACTIVITY: return '军团活动';
case WAR_TYPE.GUILD_TRAIN: return '训练场';
case WAR_TYPE.MAIN_ELITE: return '主线精英';
case WAR_TYPE.MYSTERY_ELITE: return '秘境精英';
case WAR_TYPE.BRANCH_ELITE: return '梦魇支线';
case WAR_TYPE.BRANCH: return '支线';
case WAR_TYPE.ACT_TREASURE_HUNT: return '运营活动-神州探秘';
case WAR_TYPE.ACT_SELF_SHOP: return '运营活动-糜家商队';
+31 -11
View File
@@ -72,10 +72,10 @@
{
"id": 8,
"name": "武将",
"info": "x名x品质升至x星",
"info": "x名x初始品质升至x星",
"param": "herocount&quality&star&",
"string": "武将数量&品质&星级&",
"content": "升至x星是只算普通升星的;品质是使用等号判断的,紫色的升星不能达成蓝色的条件",
"content": "升星可算彩星,但需加上普通升星的星数,比如彩6星填12=6+6;品质是使用等号判断的,紫色的升星不能达成蓝色的条件",
"condition": "herocount",
"sumType": 1
},
@@ -325,7 +325,7 @@
"info": "通关秘境x次",
"param": "count&",
"string": "秘境挑战次数&",
"content": "只计算warType为6或13的关卡;必须挑战胜利才计算;扫荡也算",
"content": "只计算warType为6的关卡;必须挑战胜利才计算;扫荡也算",
"condition": "count",
"sumType": 2
},
@@ -335,7 +335,7 @@
"info": "秘境通关x关x难度",
"param": "warcount&warid&…",
"string": "填几个warid&关卡id&…",
"content": "只计算warType为6或13的关卡;必须挑战胜利才计算;扫荡也算",
"content": "只计算warType为6的关卡;必须挑战胜利才计算;扫荡也算",
"condition": "warcount",
"sumType": 1
},
@@ -362,7 +362,7 @@
{
"id": 48,
"name": "关卡",
"info": "通关遗迹x关",
"info": "通关支线x关",
"param": "warcount&warid",
"string": "挑战次数&",
"content": "只计算warType为2的关卡;必须挑战胜利才计算;扫荡也算",
@@ -571,11 +571,11 @@
},
{
"id": 73,
"name": "精英任务",
"info": "精英通关第x关",
"param": "warcount&warid&",
"name": "梦魇关卡",
"info": "梦魇通关第x关",
"param": "warcount&warid&…",
"string": "关卡id",
"content": 0,
"content": "只计算warType为12的关卡;必须挑战胜利才计算;计算扫荡;主线基金是算这个type的",
"condition": "warcount",
"sumType": 1
},
@@ -605,7 +605,7 @@
"info": "x名武将觉醒后升至x星",
"param": "herocount&star&",
"string": "武将数量&星级",
"content": 0,
"content": "只算彩星,填1,不用计算黄星的6",
"condition": "herocount",
"sumType": 1
},
@@ -1087,6 +1087,26 @@
"string": "次数&",
"content": 0,
"condition": "count",
"sumType": 2
"sumType": 1
},
{
"id": 130,
"name": "武将",
"info": "武将升星X次",
"param": "count&",
"string": "升星次数&",
"content": "星级上升了才算是1次;升彩星也是算入的;算所有武将的",
"condition": "count",
"sumType": 1
},
{
"id": 131,
"name": "关卡",
"info": "通关梦魇支线X关",
"param": "warcount&warid",
"string": "挑战次数&",
"content": "只计算warType为13的关卡;必须挑战胜利才计算;扫荡也算",
"condition": "count",
"sumType": 1
}
]