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