mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-20 04:14:12 +01:00
add skills
This commit is contained in:
1 parent
bc6257a0c3
commit
1416d64e34
20 files changed
+196
-55
No files matched your search
+2
-2
@@ -2,7 +2,7 @@ import {
|
||||
alias,
|
||||
formatCompact,
|
||||
tankIcon,
|
||||
TIER_ROMAN_NUMERALS,
|
||||
romanize,
|
||||
} from "@blitzkit/core";
|
||||
import {
|
||||
EngineDefinition,
|
||||
@@ -93,7 +93,7 @@ function ModuleButton({
|
||||
top: isTank ? 8 : 4,
|
||||
}}
|
||||
>
|
||||
{TIER_ROMAN_NUMERALS[tier]}
|
||||
{romanize(tier)}
|
||||
</Text>
|
||||
|
||||
{unlock.cost!.value > 0 && (
|
||||
|
||||
+2
-1
@@ -1,3 +1,4 @@
|
||||
import { MAX_SKILL_LEVEL } from "@blitzkit/core";
|
||||
import { InfoCircledIcon } from "@radix-ui/react-icons";
|
||||
import {
|
||||
Button,
|
||||
@@ -59,7 +60,7 @@ export function Skills() {
|
||||
onClick={() => {
|
||||
Tankopedia.mutate((draft) => {
|
||||
Object.keys(draft.skills).forEach((skill) => {
|
||||
draft.skills[skill] = 7;
|
||||
draft.skills[skill] = MAX_SKILL_LEVEL;
|
||||
});
|
||||
});
|
||||
}}
|
||||
|
||||
Reference in new issue
Block a user