online multiplayer chess game (note server currently down)
Diffstat (limited to 'pieces/Knight.gd')
-rw-r--r--pieces/Knight.gd6
1 files changed, 3 insertions, 3 deletions
diff --git a/pieces/Knight.gd b/pieces/Knight.gd
index b9e91e5..dfb05c8 100644
--- a/pieces/Knight.gd
+++ b/pieces/Knight.gd
@@ -2,8 +2,8 @@ extends Piece
class_name Knight, "res://assets/pieces/california/wN.png"
-func get_moves(no_enemys = false, check_spots_check = true) -> Array:
- var moves := [
+func get_moves(no_enemys := false, check_spots_check := true) -> PoolVector2Array:
+ var moves: PoolVector2Array = [
pos_around(Vector2(-2, -1)),
pos_around(Vector2(-2, 1)),
pos_around(Vector2(2, -1)),
@@ -13,7 +13,7 @@ func get_moves(no_enemys = false, check_spots_check = true) -> Array:
pos_around(Vector2(-1, 2)),
pos_around(Vector2(1, 2))
]
- var final := []
+ var final: PoolVector2Array = []
for i in moves:
if is_on_board(i):
if no_enemys and at_pos(i):