While writing the class that handles equipment, I ended up writing this function. First time in a while that I've written code that made me literally laugh out loud. I thought a few of you might enjoy that.
It is meant to return the name of whatever this person is wearing on their head.
def GetHead(self):
if self.ArmorHead:
return self.owner.name
else:
return 'Nothing'
Edit :: Meant to post this in the other general board! Oops! Could someone move this for me? Thanks