Minor Namming Fixes

This commit is contained in:
2025-07-13 21:46:51 -03:00
parent 2c93b65b3d
commit 6ebf591d64
9 changed files with 8 additions and 12 deletions

View File

@@ -0,0 +1,8 @@
import { RoleDefinition } from "types/creeps";
export const get_role_cost = (role: RoleDefinition) => {
return role.body.reduce((cost, part) => {
cost += BODYPART_COST[part] || 0;
return cost;
}, 0);
};