mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-16 06:06:11 +01:00
hasUpgrades
This commit is contained in:
1 parent
99965118b3
commit
99317c2075
2 files changed
+12
-4
No files matched your search
@@ -0,0 +1,10 @@
|
||||
import type { TankDefinition } from "@blitzkit/core";
|
||||
|
||||
export function hasUpgrades(tank: TankDefinition) {
|
||||
return (
|
||||
tank.tracks.length > 1 ||
|
||||
tank.engines.length > 1 ||
|
||||
tank.turrets.length > 1 ||
|
||||
tank.turrets.some((turret) => turret.guns.length > 1)
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user