✨ feat(gvg): 添加贡献等接口
This commit is contained in:
5
game-server/app/services/gvg/gvgPrepareService.ts
Normal file
5
game-server/app/services/gvg/gvgPrepareService.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
export function calProduce(obj: { food: number, mineral: number, wood: number }) {
|
||||
let { food = 0, mineral = 0, wood = 0 } = obj||{};
|
||||
return food + mineral + wood;
|
||||
}
|
||||
Reference in New Issue
Block a user