229 {
230 if (context == 16)
231 {
232 Main.Achievements.GetCondition("HOLD_ON_TIGHT", "Equip").Complete();
233 }
234 if (context == 17)
235 {
236 Main.Achievements.GetCondition("THE_CAVALRY", "Equip").Complete();
237 }
238 if ((context == 10 || context == 11) &&
item.wingSlot > 0)
239 {
240 Main.Achievements.GetCondition("HEAD_IN_THE_CLOUDS", "Equip").Complete();
241 }
242 if (context == 8 && player.armor[0].stack > 0 && player.armor[1].stack > 0 && player.armor[2].stack > 0)
243 {
244 Main.Achievements.GetCondition("MATCHING_ATTIRE", "Equip").Complete();
245 }
246 if (context == 9 && player.armor[10].stack > 0 && player.armor[11].stack > 0 && player.armor[12].stack > 0)
247 {
248 Main.Achievements.GetCondition("FASHION_STATEMENT", "Equip").Complete();
249 }
250 if (context != 12 && context != 33)
251 {
252 return;
253 }
254 for (
int i = 0;
i < 10;
i++)
255 {
256 if (player.IsItemSlotUnlockedAndUsable(i) && (player.dye[i].type < 1 || player.dye[i].stack < 1))
257 {
258 return;
259 }
260 }
261 for (int j = 0; j < player.miscDyes.Length; j++)
262 {
263 if (player.miscDyes[j].type < 1 || player.miscDyes[j].stack < 1)
264 {
265 return;
266 }
267 }
268 Main.Achievements.GetCondition("DYE_HARD", "Equip").Complete();
269 }