Wrighting

struct _potion {

char *name; //the name that should appear in the player inventory, stores etc.//

// int price;// how much this item cost in a shop?

int power; //how much effect this does in a player//

// int type;// what does this potion heals ? HP/M } potion;

const MAX_POTIONS = 20; //the max of different potions you might have. 20 is more than enough for this example//

! just kidding I will only write a few :) const HEALING = 0;

const MAGIC_RESTORE = 1;

const LIFE_RESTORING = 2;

potion potions[MAX_POTIONS]; potions[0].name = "Magic Potion LV 2";

potion [0].price = 200;

potion [0].type = HEALING;

potion [0].power = 40; potions[1].name = "Fenix the bringer of life LV 1";

potion [1].price = 1500;

potion [1].type = LIFE;

potion [1].power = 20; //power in this case might be the amount of life// the player would have after is return from dead

potions[2].name = "HP potion LV 1";

potion [2].price = 150;

potion [2].type = HEALING;

potion [2].power = 20; 