mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
fix: remove shot after module change
This commit is contained in:
1 parent
291b93b7d7
commit
26ae7bcbdf
2 files changed
+7
No files matched your search
@@ -150,6 +150,9 @@ export function AntagonistBar() {
|
|||||||
draft.antagonist!.shell =
|
draft.antagonist!.shell =
|
||||||
draft.antagonist!.gun.shells[0];
|
draft.antagonist!.gun.shells[0];
|
||||||
});
|
});
|
||||||
|
mutateTankopediaTemporary((draft) => {
|
||||||
|
draft.shot = undefined;
|
||||||
|
});
|
||||||
}}
|
}}
|
||||||
selected={antagonist.turret.id === turret.id}
|
selected={antagonist.turret.id === turret.id}
|
||||||
discriminator={
|
discriminator={
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import { Flex, Heading } from '@radix-ui/themes';
|
|||||||
import { ModuleButton } from '../../../../../../../components/ModuleButtons/ModuleButton';
|
import { ModuleButton } from '../../../../../../../components/ModuleButtons/ModuleButton';
|
||||||
import { TIER_ROMAN_NUMERALS } from '../../../../../../../core/blitzkrieg/tankDefinitions';
|
import { TIER_ROMAN_NUMERALS } from '../../../../../../../core/blitzkrieg/tankDefinitions';
|
||||||
import { mutateDuel, useDuel } from '../../../../../../../stores/duel';
|
import { mutateDuel, useDuel } from '../../../../../../../stores/duel';
|
||||||
|
import { mutateTankopediaTemporary } from '../../../../../../../stores/tankopedia';
|
||||||
import { ConfigurationChildWrapper } from './ConfigurationChildWrapper';
|
import { ConfigurationChildWrapper } from './ConfigurationChildWrapper';
|
||||||
|
|
||||||
export function Modules() {
|
export function Modules() {
|
||||||
@@ -29,6 +30,9 @@ export function Modules() {
|
|||||||
draft.protagonist!.gun = turret.guns.at(-1)!;
|
draft.protagonist!.gun = turret.guns.at(-1)!;
|
||||||
draft.protagonist!.shell = turret.guns.at(-1)!.shells[0];
|
draft.protagonist!.shell = turret.guns.at(-1)!.shells[0];
|
||||||
});
|
});
|
||||||
|
mutateTankopediaTemporary((draft) => {
|
||||||
|
draft.shot = undefined;
|
||||||
|
});
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in new issue
Block a user