强化装备栏

This commit is contained in:
luying
2020-12-17 21:37:05 +08:00
parent b3ec0c85da
commit d2097a4264
9 changed files with 133 additions and 18 deletions

View File

@@ -5,8 +5,8 @@ export const IT_TYPE = {
// 大类型,区分存到哪张表里
export const GOOD_TYPE = {
EQUIP: 1,
CONSUMES: 2,
EQUIP: 2,
CONSUMES: 1,
SCRIPT: 3
};
@@ -131,4 +131,23 @@ export const RANDOM_SE_COUNT = new Map<number, number>([
[QUALITY_TYPE.GOLD, 4]
]);
export const FIX_ATTRIBUTES_RAN = 20; // 固定属性值+-20%随机
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';
}
}