Currently I’m just using a table inside a modulescript, which basically contains all the info for each of my classes, like below (kept only 1 class to keep it short)
classItems.Weapons = {
Knight = {
['Sword'] = {
Cost = 0,
Currency = '',
Rarity = 'Common'
},
['Claymore'] = {
Cost = 100,
Currency = 'Gold',
Rarity = 'Common'
},
['Highlander'] = {
Cost = 200,
Currency = 'Gold',
Rarity = 'Common'
},
['Light'] = {
Cost = 250,
Currency = 'Gold',
Rarity = 'Rare'
},
['Long Sword'] = {
Cost = 500,
Currency = 'Gold',
Rarity = 'Rare'
},
['Trusty'] = {
Cost = 50,
Currency = 'Gems',
Rarity = 'Epic'
},
['Riptide'] = {
Cost = 100,
Currency = 'Gems',
Rarity = 'Epic'
},
['Shai'] = {
Cost = 200,
Currency = 'Gems',
Rarity = 'Legendary'
},
['Judgement'] = {
Cost = 250,
Currency = 'Gems',
Rarity = 'Legendary'
},
},
}
classItems.Armours = {
Knight = {
['Griswold'] = {
Cost = 0,
Currency = '',
Rarity = 'Common'
},
['Redcliff'] = {
Cost = 100,
Currency = 'Gold',
Rarity = 'Common'
},
['Jahrfyre'] = {
Cost = 150,
Currency = 'Gold',
Rarity = 'Rare'
},
['Enchanted'] = {
Cost = 75,
Currency = 'Gems',
Rarity = 'Rare'
},
['Empyrean'] = {
Cost = 150,
Currency = 'Gems',
Rarity = 'Epic'
},
},
}
So my question is, is there any other way I can store this data? Using 3rd pata sources like google spread sheets or something? As atm I have only 4 classes, but just those 4 classes take up about 400 lines of code and I’m worried in the future when I have more it may become difficult to easily navigate around and find what I need to find. Does anyone have suggestions on how can I tidy this up? if I could seperate it into 2 modules? Or a module for each classes?