Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Item Category custom properties to automate adding custom properties to individual items #114

Open
EnigmaEmmy opened this issue May 10, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@EnigmaEmmy
Copy link

EnigmaEmmy commented May 10, 2024

Item Categories should have a section to add 'Custom Properties' to.

The reasoning for this is to automate the creation of custom properties for each item. Instead of manually adding the same properties to each item, or duplicating existing items and amending the existing fields, simply assign or unassign a category and all of the associated custom properties will be added/removed from the item.

For example:
If I have the following categories with custom properties:

  • Food
    • Hunger : int
    • Spoiled : bool
  • Weapon
    • Damage : float
    • Durability : float

And if I have the following items:

  • Apple
  • Bread
  • Stick
  • Sword
  • Breadstick

Assigning the 'Food' category to Apple and Bread would automatically add the 'Hunger' and 'Spoiled' custom properties to them.

Assigning the 'Weapon' category to Stick and Sword would automatically add the 'Damage' and 'Durability' custom properties to them.

Assigning both the 'Food' and 'Weapon' categories to Breadstick would automatically add all four custom properties ('Hunger', 'Spoiled', 'Damage' and 'Durability') to the Breadstick item.

@scriptsengineer
Copy link
Member

Very interesting, I don't know why I didn't think of this before, I'm going to put this feature in the plan!

@scriptsengineer scriptsengineer self-assigned this May 11, 2024
@scriptsengineer scriptsengineer added the enhancement New feature or request label May 11, 2024
@MimiVRC
Copy link

MimiVRC commented May 20, 2024

I was digging around for something similar and think that a good solution would be if we could save "presets" for all of the "new" buttons in the database. at any time we can go to an item, recipe, station or category, and on any existing item click something to "save a preset". now when you push "new" for that type it has that preset as an option

example, add an item, add all properties armor could ever use, set it up as much as you can and then "save as preset". name it "armor" now in the "new inventory item" button it would have "new item with new resource" "new item from existing resource" "new 'armor' item"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

3 participants