mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 03:07:04 +02: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.common_data !== penetrationGroup1.common_data) {
|
||||
throw new Error("Common data is not the same");
|
||||
}
|
||||
|
||||
penetrationGroup0.common_data = penetrationGroup1.common_data;
|
||||
penetrationGroup0.armor = penetrationGroup1.armor;
|
||||
} else {
|
||||
penetrationGroupUpgrade0.penetration_groups.push(
|
||||
|
||||
@@ -24,7 +24,7 @@ function Content({ id }: { id: string }) {
|
||||
|
||||
return (
|
||||
<>
|
||||
<div style={{ display: "flex" }}>
|
||||
<div style={{ display: "flex", flexWrap: "wrap" }}>
|
||||
{times(tank.upgrade_stages.length, (index) => (
|
||||
<button
|
||||
key={index}
|
||||
|
||||
Reference in new issue
Block a user