Extends Resource
Class_name Item
@export var sellable: bool
And a child resource script:
Extends Item
Class_Name FoodItem
Is there a way for me to set sellable to true in the FoodItem script, so all resources that are created with the FoodItem script have sellable = true in the inspector by default?
I can’t set sellable to true in the Item script because not all resources that inherit from Item are sellable (eq. A QuestItem won’t be sellable), but I don’t want to have to manually tick the bool to true in the inspector every time I create a new FoodItem resource.
Same with exported enums and ints. Thanks!
I want the first thing in the item_type array in any FoodItems created to always be FOOD. I tried passing in an array as an argument in the script like this: