alt.org

Dudley's (New, Improved) Dungeon

< Jul 20th, 2009 >NobodySpecial
                                                  
         /*                                       
          *                                       
          *  Dudley's Dungeon presents            
          *                                       
          *                                       
          *  Source-Code Comix                    
          *                                       
          */                                      
                                                  
Wherein our hero source-dives in search of answers…
        align   ualign;                 /* charact
#define CONVERT         2                         
#define A_ORIGINAL      1                         
#define A_CURRENT       0                         
        aligntyp ualignbase[CONVERT];   /* for ual
        schar uluck, moreluck;          /* luck an
#define Luck    (strncmpi(plname, "Dudley", 6) \  
    ? u.uluck + u.moreluck \                      
    : -13)                                        
#define LUCKADD         3       /* added value whe
#define LUCKMAX         10      /* on moonlit nigh
#define LUCKMIN         (-10)                     
        schar   uhitinc;                          
@ "That explains a lot."
  • This strip has been viewed 8382 times

Ratings

  • 2 poor
  • 2 mediocre
  • 11 fair
  • 16 good
  • 16 excellent
Average rating: good
Number of ratings: 47
<July 2009>
MoTuWeThFrSaSu
  12345
6789101112
13141516171819
20212223242526
2728293031  

Please log in or register to rate this strip.

7 Comments

#1 SmashFan2005 Mon, 20 Jul 2009 01:39:10
not funny honestly... we already know that Dudley is extremely unlucky.. lol

#2 anther Mon, 20 Jul 2009 07:02:50
I really need to learn C.

#3 LayneRobinson Mon, 20 Jul 2009 11:56:50
It basically says:

If the player name is not Dudley, luck is computed (can change). If the player name IS Dudley, luck is hard coded to -13 (and cannot change).

Somewhat telling is that a couple of lines down is says that the Minimum value for Luck is -10......and Dudley is at -13.

Last edited: Mon, 20 Jul 2009 11:57:51

#4 SmashFan2005 Mon, 20 Jul 2009 14:15:54
@LayneRobinson I get the joke... I just don't think it's funny..

EDIT: Oops.. you were talking to someone else.. my bad

#5 Quint Mon, 20 Jul 2009 17:03:37
Oh, that's the joke. I just figured it was some luck-messing-with with Dudley, and filled in the gaps mentally and found it funny anyway. Didn't know the details though; that's funny.

#6 anther Mon, 20 Jul 2009 21:20:06
Layne: I could actually tell what was going on... I was just commenting about my lack of knowledge regarding C overall.

Also, I think it is possible to have -13 luck if you have a cursed luckstone; that gives you an additional -3 on top of whatever bad luck you might have already.

#7 NobodySpecial Tue, 21 Jul 2009 00:24:48
That indeed was what I was thinking of: the minimum possible luck in practice. It helps that 13 isn't the luckiest of numbers.

Comment the strip

See the about-page for allowed formatting.
Not logged in.

You will need to answer the following question correctly:
What symbol represents a potion?