fix: typo
This commit is contained in:
@@ -178,7 +178,7 @@ public enum Item implements Buildable {
|
||||
@Getter
|
||||
private final String name;
|
||||
|
||||
private final boolean isPLaceable;
|
||||
private final boolean isPlaceable;
|
||||
|
||||
@Getter
|
||||
private final int price;
|
||||
@@ -188,17 +188,17 @@ public enum Item implements Buildable {
|
||||
@Getter
|
||||
private Function<Game, Boolean> canBeBoughtFunction;
|
||||
|
||||
Item(String name, boolean isPLaceable, int price) {
|
||||
Item(String name, boolean isPlaceable, int price) {
|
||||
this.name = name;
|
||||
this.isPLaceable = isPLaceable;
|
||||
this.canBeBuiltFunction = ignored -> isPLaceable;
|
||||
this.isPlaceable = isPlaceable;
|
||||
this.canBeBuiltFunction = ignored -> isPlaceable;
|
||||
this.price = price;
|
||||
this.canBeBoughtFunction = ignored -> true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canBuild(Game game) {
|
||||
if (!isPLaceable) {
|
||||
if (!isPlaceable) {
|
||||
return false;
|
||||
}
|
||||
return canBeBuiltFunction.apply(game);
|
||||
|
||||
Reference in New Issue
Block a user