任务:添加每日主公经验
This commit is contained in:
@@ -147,6 +147,7 @@ const itid_array = [
|
||||
{ id: 55, name: '回复体力道具', table: 'item', type: CONSUME_TYPE.AP },
|
||||
{ id: 56, name: '普通骰子', table: 'item', type: CONSUME_TYPE.DICE },
|
||||
{ id: 57, name: '天机骰子', table: 'item', type: CONSUME_TYPE.DICE },
|
||||
{ id: 58, name: '主公经验', table: 'role' },
|
||||
|
||||
];
|
||||
|
||||
@@ -162,12 +163,13 @@ export const CURRENCY_TYPE = {
|
||||
TREASURE_POINT: "treasurePoint",
|
||||
EXPEDITION_POINT: "expeditionPoint",
|
||||
DUNGEON_POINT: "dungeonPoint",
|
||||
FRIEND_POINT: "friendPoint",
|
||||
FRIEND_POINT: "frdCnt",
|
||||
HONOUR: "honour",
|
||||
SKIN_COIN: "skinCoin",
|
||||
DUNGEON: "dungeon",
|
||||
NORMAL_DICE: "normalDice",
|
||||
SPECIAL_DICE: "specialDice"
|
||||
SPECIAL_DICE: "specialDice",
|
||||
KING_EXP: 'kingExp'
|
||||
}
|
||||
|
||||
|
||||
@@ -187,7 +189,8 @@ const currencyArr = [
|
||||
{ "gid": 40006, "name": "蜀锦", "type": CURRENCY_TYPE.SKIN_COIN },
|
||||
{ "gid": 40007, "name": "秘境币", "type": CURRENCY_TYPE.DUNGEON },
|
||||
{ "gid": 72011, "name": "普通骰子", "type": CURRENCY_TYPE.NORMAL_DICE },
|
||||
{ "gid": 72021, "name": "天机骰子", "type": CURRENCY_TYPE.SPECIAL_DICE }
|
||||
{ "gid": 72021, "name": "天机骰子", "type": CURRENCY_TYPE.SPECIAL_DICE },
|
||||
{ "gid": 72030, "name": "主公经验", "type": CURRENCY_TYPE.KING_EXP }
|
||||
];
|
||||
export const CURRENCY = new Map<number, { gid: number, name: string, type: string }>();
|
||||
export const CURRENCY_BY_TYPE = new Map<string, number>();
|
||||
@@ -196,6 +199,14 @@ for (let obj of currencyArr) {
|
||||
CURRENCY_BY_TYPE.set(obj.type, obj.gid);
|
||||
}
|
||||
|
||||
export function getCurNameById(gid: number) {
|
||||
let currency = CURRENCY.get(gid);
|
||||
if (!currency) {
|
||||
return '';
|
||||
}
|
||||
return currency.name;
|
||||
}
|
||||
|
||||
export enum QUALITY_TYPE {
|
||||
BLUE = 1, // 蓝
|
||||
PURPLE = 2, // 紫
|
||||
@@ -225,27 +236,6 @@ export enum HERO_QUALITY_TYPE {
|
||||
|
||||
export const FIX_ATTRIBUTES_RAN = 20; // 固定属性值+-20%随机
|
||||
|
||||
|
||||
export function getCurNameById(gid) {
|
||||
let currency = CURRENCY.get(gid);
|
||||
if (!currency) {
|
||||
return;
|
||||
}
|
||||
if (currency.type == CURRENCY_TYPE.COIN) {
|
||||
return 'coin';
|
||||
} else if (currency.type == CURRENCY_TYPE.GOLD) {
|
||||
return 'gold';
|
||||
} else if (currency.type == CURRENCY_TYPE.ACTION_POINT) {
|
||||
return 'ap';
|
||||
} else if (currency.type == CURRENCY_TYPE.FRIEND_POINT) {
|
||||
return 'frdCnt';
|
||||
} else if (currency.type == CURRENCY_TYPE.EXPEDITION_POINT) {
|
||||
return 'expeditionPoint';
|
||||
} else if (currency.type == CURRENCY_TYPE.HONOUR) {
|
||||
return 'honour'
|
||||
}
|
||||
}
|
||||
|
||||
export function getDropItems() {
|
||||
let items = [
|
||||
{ id: 25, count: 1 }, { id: 225, count: 1 }, { id: 625, count: 1 }, { id: 2025, count: 1 }, { id: 3025, count: 1 }, { id: 4025, count: 1 }, { id: 5025, count: 1 }, { id: 6025, count: 1 },
|
||||
|
||||
@@ -452,7 +452,8 @@ export const FILENAME = {
|
||||
DIC_GK_FES: 'dic_zyz_gk_activity_festival',
|
||||
DIC_AP: 'dic_zyz_ap',
|
||||
DIC_AP_BUY_COST: 'dic_zyz_daliyAP',
|
||||
DIC_GK_NEWHERO: 'dic_zyz_gk_newhero'
|
||||
DIC_GK_NEWHERO: 'dic_zyz_gk_newhero',
|
||||
DIC_TASK_EXP: 'dic_zyz_mainTaskExp'
|
||||
}
|
||||
|
||||
export const WAR_RELATE_TABLES = [
|
||||
|
||||
Reference in New Issue
Block a user