Skip to content

Commit

Permalink
desync fix part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
QmelZ authored Sep 24, 2021
1 parent 8b40654 commit f11df56
Showing 1 changed file with 23 additions and 19 deletions.
42 changes: 23 additions & 19 deletions scripts/features/v2.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,27 +26,31 @@ const wallbuild = {
}
};

const wall = extend(Wall, "hackusated-wall", {
localizedName: "Hackusated Wall",
category: Category.defense,
buildVisibility: BuildVisibility.hidden,
inEditor: false,
size: 1,

health: Integer.MAX_VALUE
});
wall.buildType = () => extend(Wall.WallBuild, wall, wallbuild);
let wall, largewall;

const largewall = extend(Wall, "hackusated-wall-large", {
localizedName: "Large Hackusated Wall",
category: Category.defense,
buildVisibility: BuildVisibility.hidden,
inEditor: false,
size: 2,

health: Integer.MAX_VALUE
Events.on(ContentInitEvent, () => {
wall = extend(Wall, "hackusated-wall", {
localizedName: "Hackusated Wall",
category: Category.defense,
buildVisibility: BuildVisibility.hidden,
inEditor: false,
size: 1,

health: Integer.MAX_VALUE
});
wall.buildType = () => extend(Wall.WallBuild, wall, wallbuild);

largewall = extend(Wall, "hackusated-wall-large", {
localizedName: "Large Hackusated Wall",
category: Category.defense,
buildVisibility: BuildVisibility.hidden,
inEditor: false,
size: 2,

health: Integer.MAX_VALUE
});
largewall.buildType = () => extend(Wall.WallBuild, largewall, wallbuild);
});
largewall.buildType = () => extend(Wall.WallBuild, largewall, wallbuild);

/*
const mender = extend(MendProjector, "hackusated-mender", {
Expand Down

0 comments on commit f11df56

Please sign in to comment.