RingOfRaces/MiscCodes/Item.gd
2020-10-06 15:19:38 +02:00

10 lines
321 B
GDScript

extends Node2D
# Many thanks to Arkeve! https://github.com/arkeve
func _ready():
if randi() % 3 == 0:
$TextureRect.texture = load("res://pictures/inventory_iconpictures/miscellaneous/magic_formulae.png")
else:
$TextureRect.texture = load("res://pictures/inventory_iconpictures/tools_and_weapons/tools/ploeg.png")