SwitchbladeBot / switchblade

The open source Discord bot that solves all of your problems.
https://switchblade.xyz/
BSD 4-Clause "Original" or "Old" License
427 stars 220 forks source link

User inventory #777

Open metehus opened 5 years ago

metehus commented 5 years ago

How itens will be classified?

They will be classified mainly with rarity, category, and type. The rarity prop. will classify the item as common, rare 'n stuff. The category prop. will classify the item just for view/filter and etc like themes, badges and others. The type prop. will define the item in a more exclusive group, inside the category, and some types will be have a choosen item, like a tictactoeTheme type that every user will have to have one tictactoeTheme item selected

How they gonna be saved

The itens will be saved on the database at the repository items and user inventory will be saved on the db too that will have an array of InventoryItemType

InventoryItemType {
  "name": "tictactoeTheme",
  "category": "theme",
  "choosenAmount": 1 (0 for no choosen system)
  "defaultSelected": "blue",
  "items": [ InventoryItem ]
}
pedrofracassi commented 5 years ago

I don't like the idea of having items as JSON. Would love to be able to add them to the database instead. Types could be on a JSON file tho.

Doges commented 5 years ago

SKRRR SKRR SKRRRRRRRRRRRRR

metehus commented 5 years ago

I don't like the idea of having items as JSON. Would love to be able to add them to the database instead. Types could be on a JSON file tho.

@pedrofracassi hum like the idea

metehus commented 5 years ago

nvm, i think will be more hard and cant translate displayName and description

pedrofracassi commented 5 years ago

Oh, that's true. I didn't think about translations.