Play Home Contribute Github Join Us! Discourse Staff Members Github Contribution Guides Team

The types of items

#1

I would like to know the types of items there is in the game and I need an if statement like

if item.type == coin:

Can some one help?

#2

Well here’s the list of collectable $ earning items.
1 is if item.type=='gold-coin':Code for checking if it is a gold coin.
2 is if item.type=='silver-coin':Code for checking if it is a silver coin.
3 is if item.type=='bronze-coin':Code for checking if it is a bronze coin.
4 is if item.type=='chest':Code for checking if it is a chest.
5 is if item.type == "gem":Code for checking if it is a gem.

1 Like
#3

And if item.type == "gem":

1 Like
#4

I need one for the healing potion

#5
if item.type=='potion':
2 Likes
#6

Thank you! This will help a lot