feat: add portal support

This commit is contained in:
2021-06-24 22:07:40 +02:00
parent 7b1ce8af8f
commit be7dd1ca94
10 changed files with 127 additions and 15 deletions

View File

@ -28,6 +28,16 @@ class Piece {
this.stone = null;
}
public Piece(PieceType type, EntityID id) {
this.type = type;
this.id = id;
this.hp = null;
this.mp = null;
this.ap = null;
this.inventory = null;
this.stone = null;
}
public Piece(PieceType type, EntityID id, int hp, int maxHP) {
this.type = type;
this.id = id;