物品消耗
This commit is contained in:
@@ -132,6 +132,24 @@ for(let obj of currencyArr) {
|
||||
CURRENCY_BY_TYPE.set(obj.type, obj.gid);
|
||||
}
|
||||
|
||||
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';
|
||||
}
|
||||
}
|
||||
|
||||
export const WAR_TYPE = {
|
||||
NORMAL: 1, // 主线本
|
||||
VESTIGE: 2, // 遗迹本
|
||||
|
||||
Reference in New Issue
Block a user