A question about modifying resources

Godot Version

4.3

Question

I was working on a simple card game for fun. Each card is a resource attached to a card node. I thought I should try and add a way to upgrade cards like giving +1 to damage. My first thought is to modify the resource itself after duplicating it but I keep reading online that modifying resources at runtime isn’t good practice. What is the right way to approach this? and why is modifying resource not considered good?

you can add some parameter in your resource and give them some default value. For upgrading the card you simple change the value of that parameter of the resource. This way you do not need to duplicate your resource for upgrading your card. Hope you find it helpful. :smile:

Wouldn’t that change all instances of that card instead of just the one I’m upgrading?