mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-25 19:49:50 +01:00
feat: override common data
This commit is contained in:
1 parent
0e0f4fbe9f
commit
48fbf59036
2 files changed
+2
-5
No files matched your search
@@ -99,10 +99,7 @@ function patch(stage0: StageParameters, stage1: StageParameters) {
|
|||||||
);
|
);
|
||||||
|
|
||||||
if (penetrationGroup0) {
|
if (penetrationGroup0) {
|
||||||
if (penetrationGroup0.common_data !== penetrationGroup1.common_data) {
|
penetrationGroup0.common_data = penetrationGroup1.common_data;
|
||||||
throw new Error("Common data is not the same");
|
|
||||||
}
|
|
||||||
|
|
||||||
penetrationGroup0.armor = penetrationGroup1.armor;
|
penetrationGroup0.armor = penetrationGroup1.armor;
|
||||||
} else {
|
} else {
|
||||||
penetrationGroupUpgrade0.penetration_groups.push(
|
penetrationGroupUpgrade0.penetration_groups.push(
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ function Content({ id }: { id: string }) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div style={{ display: "flex" }}>
|
<div style={{ display: "flex", flexWrap: "wrap" }}>
|
||||||
{times(tank.upgrade_stages.length, (index) => (
|
{times(tank.upgrade_stages.length, (index) => (
|
||||||
<button
|
<button
|
||||||
key={index}
|
key={index}
|
||||||
|
|||||||
Reference in new issue
Block a user