refactor(map): 移除计算金币奖励中的多余空行
简化代码结构,删除不必要的空行使逻辑更紧凑。
This commit is contained in:
@@ -135,9 +135,7 @@ export class MissionComp extends CCComp {
|
|||||||
cal_gold_reward(data: any, type: MonType) {
|
cal_gold_reward(data: any, type: MonType) {
|
||||||
const cost = MonsterCost[data.uuid] || 1;
|
const cost = MonsterCost[data.uuid] || 1;
|
||||||
const level = data.lv || 1;
|
const level = data.lv || 1;
|
||||||
|
|
||||||
let add_gold = calculateMonsterGold(data.uuid, level, type);
|
let add_gold = calculateMonsterGold(data.uuid, level, type);
|
||||||
|
|
||||||
smc.updateGold(add_gold, false);
|
smc.updateGold(add_gold, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user