text: // Item class
  export class Item {
      constructor() {
          this.ID;
          this.name;
          this.price;
          this.buy;
      }
  
  }
  
  export class Toy extends Item {
      constructor() {
          super();
          this.ID = 0;
          this.name = 'toy';
          this.price = 100;
          this.buy = 1;
      }
      use(pet) {
          pet.intimacy += 1;
          if (pet.intimacy > 100)
              pet.intimacy = 100;
      }
  
  }
  export class Fish extends Item {
      constructor() {
          super();
          this.ID = 1;
          this.name = 'fish';
          this.price = 0;
          this.buy = 0;
      }
      use(user) {
          user.money += 10;
  
      }
  }
  
  export class Potion extends Item {
      constructor() {
          super();
          this.ID = 2;
          this.name = 'potion';
          this.price = 150;
          this.buy = 1;
      }
      use(pet) {
          pet.HP = pet.maxHP[pet.level-1];
          pet.MP = pet.maxMP[pet.level-1];
  
      }
  }
  
  export class Food extends Item {
      constructor() {
          super();
          this.ID = 3;
          this.name = 'food';
          this.price = 50;
          this.buy = 1;
      }
      use(pet) {
          pet.hunger -= 10;
          if (pet.hunger < 0)
              pet.hunger = 0;
      }
  }
  
  export class HiddenItem extends Item {
      constructor() {
          super();
          this.ID = 4;
          this.name = 'hiddenItem';
          this.price = 0;
          this.buy = 0;
      }
  
  }
  