支付:代金券功能
This commit is contained in:
@@ -37,6 +37,7 @@ export const CONSUME_TYPE = {
|
||||
AP: 15, // 回复体力道具
|
||||
DICE: 16, // 骰子
|
||||
DRAWING: 17, // 图纸
|
||||
VOUCHER: 18, // 代金券
|
||||
};
|
||||
|
||||
export enum ROLE_TERAPH {
|
||||
@@ -147,6 +148,7 @@ const itid_array = [
|
||||
{ id: 60, name: '衣服天晶石', table: 'jewel' },
|
||||
{ id: 61, name: '头饰天晶石', table: 'jewel' },
|
||||
{ id: 62, name: '行具天晶石', table: 'jewel' },
|
||||
{ id: 63, name: '代金券', table: 'item', type: CONSUME_TYPE.VOUCHER }
|
||||
];
|
||||
|
||||
export const ITID = new Map<number, { id: number, name: string, table: string, type?: number, isCurrency?: boolean, equipJewel?: number }>();
|
||||
@@ -167,7 +169,8 @@ export const CURRENCY_TYPE = {
|
||||
DUNGEON: "dungeon",
|
||||
NORMAL_DICE: "normalDice",
|
||||
SPECIAL_DICE: "specialDice",
|
||||
KING_EXP: 'kingExp'
|
||||
KING_EXP: 'kingExp',
|
||||
VOUCHER: 'voucher',
|
||||
}
|
||||
|
||||
const currencyArr = [
|
||||
@@ -183,7 +186,8 @@ const currencyArr = [
|
||||
{ "gid": 40007, "name": "秘境币", "type": CURRENCY_TYPE.DUNGEON },
|
||||
{ "gid": 72011, "name": "普通骰子", "type": CURRENCY_TYPE.NORMAL_DICE },
|
||||
{ "gid": 72021, "name": "天机骰子", "type": CURRENCY_TYPE.SPECIAL_DICE },
|
||||
{ "gid": 72030, "name": "主公经验", "type": CURRENCY_TYPE.KING_EXP }
|
||||
{ "gid": 72030, "name": "主公经验", "type": CURRENCY_TYPE.KING_EXP },
|
||||
{ "gid": 81000, "name": "代金券", "type": CURRENCY_TYPE.VOUCHER}
|
||||
];
|
||||
export const CURRENCY = new Map<number, { gid: number, name: string, type: string }>();
|
||||
export const CURRENCY_BY_TYPE = new Map<string, number>();
|
||||
|
||||
Reference in New Issue
Block a user