Temple of The Roguelike Forums
Development => Development Process & non-technical => Topic started by: Shaggy on November 06, 2012, 10:31:40 PM
-
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 ::)
-
Best rpg joke of the age!
-
That owns.
-
Crap. Didn't get it. Is it the 'self head' angle?
-
Oh, was it supposed to be a *dirty* joke? I totally missed looking at it that way... no wonder I didn't get it!