RingOfRaces/MiscCodes/Item.gd

10 lines
385 B
GDScript

extends Node2D
# Called when the node enters the scene tree for the first time.
# 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")