Spelunky Wiki
Advertisement

Point of contention: I've been unlucky enough to have my Mattock break after a single use (trying to escape the snake pit T.T) as well as being so lucky that my Mattock lasted over 45 uses before wearing out, (basically I dug up the entire bottom floor while counting the tiles). So it'd be nice if someone did some testing to see if the Mattock is on a randomly generated percentage based chance to break? Or if there's a random range between 1 and 50 or so uses.

It would be perfect if someone who has some knowledge about game maker coding looked up the object in the source code.
EDIT: Hey, I just found this line in the source code (oMattockhit):

// break mattock if (rand(1,20) == 1)

I think that means theres a chance of 20:1 that the Mattock survives the hit. Can anybody confirm this? --Bleagle 09:18, 23 January 2009 (UTC)

Ahah, so the breaking of the mattock head is equivalent to a "critical failure" (5% for terrible results), so to speak, nice find! No wonder I can break them on the first hit, my dice rolls in tabletop games are completely jinxed too. --MechanisMs 10:36, 23 January 2009 (UTC)

No, wait. My post was wrong. There is a chance of 20:1 that the Mattock breaks. Because in the other case in 95% of all cases the mattock would break on the first use. It breaks in 5% of all cases. --Bleagle 11:15, 23 January 2009 (UTC)

well, i guess your post was wrong, but i gleaned the right interpretation of it from my own experience, and isn't that what counts? :] --MechanisMs 12:18, 23 January 2009 (UTC)

Yeah, youre right, I had only my wrong post in mind ; ). I'll add it to the wiki article (if its not already added). --Bleagle 14:13, 23 January 2009 (UTC)

For what it's worth, I read through the bit of code you mentioned, and I agree that the break-probability-per-strike is 5%. --Interiot 14:38, 23 January 2009 (UTC)

Thanks and now I know you like probability calculation (probably ; ). --Bleagle 17:57, 23 January 2009 (UTC)

I'm pretty terrible at it, considering. Isn't it typical to memorize the expected-value equations for multiple-dice-throws and other common RPG distributions? --Interiot 20:21, 23 January 2009 (UTC)

Dont want to get this out of hand (chat) but I actually never played a "real" RPG like Dungeon and Dragons. The only games we play with dices are board games. My friend plays table top, but I dont like it that much. Maybe its just because I live in Germany, because I know not one person who plays RPGs (paper and pen style) : )

does "by bombing the floor at the bottom of the Snake pit from the "I hear snakes, I hate snakes" event in World 1." still happen in 0.99.9? I thought they were randomly placed in the walls

Seems to. MagFlare 22:38, 27 June 2009 (UTC)
Advertisement