Fix warnings

This commit is contained in:
blinry 2020-11-10 22:37:10 +01:00
parent d57674acca
commit 4d97430d44
7 changed files with 15 additions and 18 deletions
scenes

View file

@ -102,9 +102,12 @@ func set_energy(new_energy):
func set_id(new_id):
id = new_id
var texture = load("res://cards/%s.svg" % new_id)
if texture:
$Image.texture = texture
var art_path = "res://cards/%s.svg" % new_id
var file = File.new()
if file.file_exists(art_path):
var texture = load(art_path)
if texture:
$Image.texture = texture
func move_back():
position = _home_position