PaulKart
Newbie
- Dec 27, 2023
- 25
- 33
Incorrect logic, since each object has a count string, to which the amount is added.like this, or wrong logic?

Use this code: next(item for item in g_InventoryItem if item.pKey == "ore4").count += 50
Since there are a lot of lines with items stored in the game files, this code searches for all the lines with the name of the item and adds the required amount to them.