Program: 171254
Project: 171254
Buggy source:
@Override public void dailyReset(){
  clearNonEquippedInventory();
  Main.game.getDialogueFlags().resetNyanActions();
  commonFemaleClothing.clear();
  commonFemaleUnderwear.clear();
  commonFemaleAccessories.clear();
  commonMaleClothing.clear();
  commonMaleLingerie.clear();
  commonMaleAccessories.clear();
  commonAndrogynousClothing.clear();
  commonAndrogynousLingerie.clear();
  commonAndrogynousAccessories.clear();
  specials.clear();
  boolean enchantedGear=Main.game.getPlayer().isQuestCompleted(QuestLine.RELATIONSHIP_NYAN_HELP);
  for (  AbstractClothingType clothing : ClothingType.getAllClothing()) {
    if (clothing.getItemTags().contains(ItemTag.SOLD_BY_NYAN)) {
      if (clothing.getRarity() == Rarity.COMMON) {
        if (clothing.getFemininityRestriction() == Femininity.FEMININE) {
          if (ClothingType.getCoreClothingSlots().contains(clothing.getSlot())) {
            commonFemaleClothing.add(AbstractClothingType.generateClothing(clothing,false));
          }
 else           if (ClothingType.getLingerieSlots().contains(clothing.getSlot())) {
            commonFemaleUnderwear.add(AbstractClothingType.generateClothing(clothing,false));
          }
 else {
            commonFemaleAccessories.add(AbstractClothingType.generateClothing(clothing,false));
          }
        }
 else         if (clothing.getFemininityRestriction() == Femininity.MASCULINE) {
          if (ClothingType.getCoreClothingSlots().contains(clothing.getSlot())) {
            commonMaleClothing.add(AbstractClothingType.generateClothing(clothing,false));
          }
 else           if (ClothingType.getLingerieSlots().contains(clothing.getSlot())) {
            commonMaleLingerie.add(AbstractClothingType.generateClothing(clothing,false));
          }
 else {
            commonMaleAccessories.add(AbstractClothingType.generateClothing(clothing,false));
          }
        }
 else {
          if (ClothingType.getCoreClothingSlots().contains(clothing.getSlot())) {
            commonAndrogynousClothing.add(AbstractClothingType.generateClothing(clothing,false));
          }
 else           if (ClothingType.getLingerieSlots().contains(clothing.getSlot())) {
            commonAndrogynousLingerie.add(AbstractClothingType.generateClothing(clothing,false));
          }
 else {
            commonAndrogynousAccessories.add(AbstractClothingType.generateClothing(clothing,false));
          }
        }
      }
 else {
        specials.add(AbstractClothingType.generateClothing(clothing,false));
      }
    }
  }
  if (enchantedGear) {
    for (int i=0; i < 3; i++) {
      commonFemaleClothing.add(AbstractClothingType.generateClothingWithEnchantment(ClothingType.getCommonFemaleClothing().get(Util.random.nextInt(ClothingType.getCommonFemaleClothing().size()))));
      commonFemaleUnderwear.add(AbstractClothingType.generateClothingWithEnchantment(commonFemaleUnderwear.get(Util.random.nextInt(commonFemaleUnderwear.size())).getClothingType()));
      commonFemaleAccessories.add(AbstractClothingType.generateClothingWithEnchantment(ClothingType.getCommonFemaleAccessories().get(Util.random.nextInt(ClothingType.getCommonFemaleAccessories().size()))));
      commonMaleClothing.add(AbstractClothingType.generateClothingWithEnchantment(ClothingType.getCommonMaleClothing().get(Util.random.nextInt(ClothingType.getCommonMaleClothing().size()))));
      commonMaleLingerie.add(AbstractClothingType.generateClothingWithEnchantment(ClothingType.getCommonMaleLingerie().get(Util.random.nextInt(ClothingType.getCommonMaleLingerie().size()))));
      commonMaleAccessories.add(AbstractClothingType.generateClothingWithEnchantment(ClothingType.getCommonMaleAccessories().get(Util.random.nextInt(ClothingType.getCommonMaleAccessories().size()))));
      commonAndrogynousClothing.add(AbstractClothingType.generateClothingWithEnchantment(ClothingType.getCommonAndrogynousClothing().get(Util.random.nextInt(ClothingType.getCommonAndrogynousClothing().size()))));
      commonAndrogynousLingerie.add(AbstractClothingType.generateClothingWithEnchantment(ClothingType.getCommonAndrogynousLingerie().get(Util.random.nextInt(ClothingType.getCommonAndrogynousLingerie().size()))));
      commonAndrogynousAccessories.add(AbstractClothingType.generateClothingWithEnchantment(ClothingType.getCommonAndrogynousAccessories().get(Util.random.nextInt(ClothingType.getCommonAndrogynousAccessories().size()))));
    }
    commonFemaleClothing.add(generateRareClothing(ClothingType.getCommonFemaleClothing().get(Util.random.nextInt(ClothingType.getCommonFemaleClothing().size()))));
    commonFemaleUnderwear.add(generateRareClothing(commonFemaleUnderwear.get(Util.random.nextInt(commonFemaleUnderwear.size())).getClothingType()));
    commonFemaleAccessories.add(generateRareClothing(ClothingType.getCommonFemaleAccessories().get(Util.random.nextInt(ClothingType.getCommonFemaleAccessories().size()))));
    commonMaleClothing.add(generateRareClothing(ClothingType.getCommonMaleClothing().get(Util.random.nextInt(ClothingType.getCommonMaleClothing().size()))));
    commonMaleLingerie.add(generateRareClothing(ClothingType.getCommonMaleLingerie().get(Util.random.nextInt(ClothingType.getCommonMaleLingerie().size()))));
    commonMaleAccessories.add(generateRareClothing(ClothingType.getCommonMaleAccessories().get(Util.random.nextInt(ClothingType.getCommonMaleAccessories().size()))));
    commonAndrogynousClothing.add(generateRareClothing(ClothingType.getCommonAndrogynousClothing().get(Util.random.nextInt(ClothingType.getCommonAndrogynousClothing().size()))));
    commonAndrogynousLingerie.add(generateRareClothing(ClothingType.getCommonAndrogynousLingerie().get(Util.random.nextInt(ClothingType.getCommonAndrogynousLingerie().size()))));
    commonAndrogynousAccessories.add(generateRareClothing(ClothingType.getCommonAndrogynousAccessories().get(Util.random.nextInt(ClothingType.getCommonAndrogynousAccessories().size()))));
  }
  for (  AbstractClothing c : commonFemaleClothing) {
    c.setEnchantmentKnown(true);
  }
  for (  AbstractClothing c : commonFemaleUnderwear) {
    c.setEnchantmentKnown(true);
  }
  for (  AbstractClothing c : commonFemaleAccessories) {
    c.setEnchantmentKnown(true);
  }
  for (  AbstractClothing c : commonMaleClothing) {
    c.setEnchantmentKnown(true);
  }
  for (  AbstractClothing c : commonMaleLingerie) {
    c.setEnchantmentKnown(true);
  }
  for (  AbstractClothing c : commonMaleAccessories) {
    c.setEnchantmentKnown(true);
  }
  for (  AbstractClothing c : commonAndrogynousClothing) {
    c.setEnchantmentKnown(true);
  }
  for (  AbstractClothing c : commonAndrogynousLingerie) {
    c.setEnchantmentKnown(true);
  }
  for (  AbstractClothing c : commonAndrogynousAccessories) {
    c.setEnchantmentKnown(true);
  }
}

Fixed version (ground truth):
@Override public void dailyReset(){
  clearNonEquippedInventory();
  Main.game.getDialogueFlags().resetNyanActions();
  commonFemaleClothing.clear();
  commonFemaleUnderwear.clear();
  commonFemaleAccessories.clear();
  commonMaleClothing.clear();
  commonMaleLingerie.clear();
  commonMaleAccessories.clear();
  commonAndrogynousClothing.clear();
  commonAndrogynousLingerie.clear();
  commonAndrogynousAccessories.clear();
  specials.clear();
  for (  AbstractClothingType clothing : ClothingType.getAllClothing()) {
    if (clothing.getItemTags().contains(ItemTag.SOLD_BY_NYAN)) {
      if (clothing.getRarity() == Rarity.COMMON) {
        if (clothing.getFemininityRestriction() == Femininity.FEMININE) {
          if (ClothingType.getCoreClothingSlots().contains(clothing.getSlot())) {
            commonFemaleClothing.add(AbstractClothingType.generateClothing(clothing,false));
          }
 else           if (ClothingType.getLingerieSlots().contains(clothing.getSlot())) {
            commonFemaleUnderwear.add(AbstractClothingType.generateClothing(clothing,false));
          }
 else {
            commonFemaleAccessories.add(AbstractClothingType.generateClothing(clothing,false));
          }
        }
 else         if (clothing.getFemininityRestriction() == Femininity.MASCULINE) {
          if (ClothingType.getCoreClothingSlots().contains(clothing.getSlot())) {
            commonMaleClothing.add(AbstractClothingType.generateClothing(clothing,false));
          }
 else           if (ClothingType.getLingerieSlots().contains(clothing.getSlot())) {
            commonMaleLingerie.add(AbstractClothingType.generateClothing(clothing,false));
          }
 else {
            commonMaleAccessories.add(AbstractClothingType.generateClothing(clothing,false));
          }
        }
 else {
          if (ClothingType.getCoreClothingSlots().contains(clothing.getSlot())) {
            commonAndrogynousClothing.add(AbstractClothingType.generateClothing(clothing,false));
          }
 else           if (ClothingType.getLingerieSlots().contains(clothing.getSlot())) {
            commonAndrogynousLingerie.add(AbstractClothingType.generateClothing(clothing,false));
          }
 else {
            commonAndrogynousAccessories.add(AbstractClothingType.generateClothing(clothing,false));
          }
        }
      }
 else {
        specials.add(AbstractClothingType.generateClothing(clothing,false));
      }
    }
  }
  if (Main.game.getPlayer().isQuestCompleted(QuestLine.RELATIONSHIP_NYAN_HELP)) {
    addEnchantedClothing(commonFemaleClothing);
    addEnchantedClothing(commonFemaleUnderwear);
    addEnchantedClothing(commonFemaleAccessories);
    addEnchantedClothing(commonMaleClothing);
    addEnchantedClothing(commonMaleLingerie);
    addEnchantedClothing(commonMaleAccessories);
    addEnchantedClothing(commonAndrogynousClothing);
    addEnchantedClothing(commonAndrogynousLingerie);
    addEnchantedClothing(commonAndrogynousAccessories);
  }
}