Typing fix
This commit is contained in:
@@ -2698,7 +2698,7 @@ func _handle_board_click(mouse_pos: Vector2) -> void:
|
||||
if unit_id.is_empty() and coord.x >= 0:
|
||||
var _t := Game.get_tile(coord.x, coord.y)
|
||||
var _raw_occ = _t.get("occupantId")
|
||||
var _occ := _raw_occ if _raw_occ is String else ""
|
||||
var _occ : Variant = _raw_occ if _raw_occ is String else ""
|
||||
if not _occ.is_empty() and _occ != "null":
|
||||
unit_id = _occ
|
||||
# Show tile detail drawer and optionally pan camera.
|
||||
@@ -2769,7 +2769,7 @@ func _handle_board_click(mouse_pos: Vector2) -> void:
|
||||
if unit_id.is_empty() and coord.x >= 0:
|
||||
var _t2 := Game.get_tile(coord.x, coord.y)
|
||||
var _raw_occ2 = _t2.get("occupantId")
|
||||
var _occ2 := _raw_occ2 if _raw_occ2 is String else ""
|
||||
var _occ2 : Variant = _raw_occ2 if _raw_occ2 is String else ""
|
||||
if not _occ2.is_empty() and _occ2 != "null":
|
||||
unit_id = _occ2
|
||||
if not unit_id.is_empty():
|
||||
|
||||
Reference in New Issue
Block a user