i checked the tutorial you send to me and I think it's better to incorporate the dictionnary into a script. So I've something like :
extends Node
const ANIMALS = {
1:{
"class":1,
"name":"dog",
"rarity":2
},
2:{
"class":2,
"name":"cat",
"rarity":1
}
(...)
}
Is it a clean way of doing this ?