wield_slots = ['wield1', 'wield2']
armor_slots = ['helm', 'necklace', 'cloak', 'torso',
'belt', 'bracers', 'gloves', 'ring1', 'ring2', 'boots']
clothing_slots = ['hat', 'accessory', 'overtop', 'bottom', 'belt2', 'accessory2',
'gloves2', 'accessory3', 'accessory4', 'shoes']
equip_message = """Wielding: {wielding}
Armors: {armor}
Clothing: {clothing}""".format(wielding="\n\t".join([self.equip.get(slot).key for slot in wield_slots if self.equip.get(slot)]),
armor="\n\t".join([self.equip.get(slot).key for slot in armor_slots if self.equip.get(slot)]),
clothing="\n\t".join([self.equip.get(slot).key for slot in clothing_slots if self.equip.get(slot)]))
looker.msg(equip_message)
Comments