Item structure represents an item in the game.
This struct represents an item in the game. It can be a weapon, armor, potion or gold. Items are drawn in the map if the cell is visible. They are picked up by the player when he steps on them. And they are added to the player inventory.
- Parameters
-
| name | the name of the item |
| symbol | the symbol that represents the item |
| type | the type of item |
| value | the value of the item in gold |
| x | the x coordinate of the item |
| y | the y coordinate of the item |
| damage | the damage of the item if it is a weapon |
| defense | the defense of the item if it is armor |
| hp | the hp of the item if it is a healing potion |
| count | the number of the same items |
| range | the range of the item if it is a projectile |
| color | the color of the item |