chainsol

Untitled

Feb 9th, 2018
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.75 KB | None | 0 0
  1. wield_slots = ['wield1', 'wield2']
  2. armor_slots = ['helm', 'necklace', 'cloak', 'torso',
  3.                'belt', 'bracers', 'gloves', 'ring1', 'ring2', 'boots']
  4. clothing_slots = ['hat', 'accessory', 'overtop', 'bottom', 'belt2', 'accessory2',
  5.                   'gloves2', 'accessory3', 'accessory4', 'shoes']
  6.  
  7. equip_message = """Wielding: {wielding}
  8. Armors: {armor}
  9. Clothing: {clothing}""".format(wielding="\n\t".join([self.equip.get(slot).key for slot in wield_slots if self.equip.get(slot)]),
  10.                      armor="\n\t".join([self.equip.get(slot).key for slot in armor_slots if self.equip.get(slot)]),
  11.                      clothing="\n\t".join([self.equip.get(slot).key for slot in clothing_slots if self.equip.get(slot)]))
  12. looker.msg(equip_message)
Advertisement
Add Comment
Please, Sign In to add comment