Temple of The Roguelike Forums

Development => Development Process & non-technical => Topic started by: Shaggy on November 06, 2012, 10:31:40 PM

Title: Got time for a joke?
Post 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.

Code: [Select]
   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  ::)
Title: Re: Got time for a joke?
Post by: Nekoninja on July 10, 2013, 11:57:25 PM
Best rpg joke of the age!
Title: Re: Got time for a joke?
Post by: Vanguard on July 11, 2013, 09:18:03 AM
That owns.
Title: Re: Got time for a joke?
Post by: guest509 on July 12, 2013, 05:15:06 AM
Crap. Didn't get it. Is it the 'self head' angle?
Title: Re: Got time for a joke?
Post by: ekolis on July 13, 2013, 09:16:45 PM
Oh, was it supposed to be a *dirty* joke? I totally missed looking at it that way... no wonder I didn't get it!