feat: add portal support
This commit is contained in:
@ -65,6 +65,9 @@ class Board {
|
||||
Rock rock = (Rock)entity;
|
||||
data[y][x] = new Piece(PieceType.Rock, entity.id, rock.getHp(), rock.maxHP);
|
||||
}
|
||||
case Portals -> {
|
||||
data[y][x] = new Piece(PieceType.Portal, entity.id);
|
||||
}
|
||||
case InfinityStones -> {
|
||||
InfinityStone stone = (InfinityStone)entity;
|
||||
data[y][x] = new Piece(PieceType.InfinityStone, entity.id, stone.type);
|
||||
|
Reference in New Issue
Block a user