SpelunkyFan wiki

Rare Shop

Verified against the spelunky.ai port v0.1.10 on .

The Rare Shop is a shop in Spelunky Classic that sells eleven pieces of equipment, the Jetpack and the Teleporter among them, and Bomb Boxes.

Its Shopkeeper welcomes the player with "WELCOME TO HAMISH'S SPECIALTY SHOP!", his name one of 32 drawn at random [6] [7]. It sells the widest range of any shop: eleven pieces of equipment, the only shop with the Jetpack and the Teleporter, and Bomb Boxes. Like every shop it's a side room off the way through a level, with four wares on its floor and the Shopkeeper beside them.

Stock

#

The shop has four wares, and each is rolled on its own [8] [9]. Each try first rolls for a Bomb Box, 1 in 20; failing that, it picks one of the eleven pieces of equipment, each as likely, and takes it if the level hasn't got one. A try that picks a piece the level has makes the next try's Bomb Box roll likelier, 1 in 19, then 1 in 18 and so on, so by the twentieth try a Bomb Box is certain [10]:

WareRoll
Bomb Box1 in 20 on the first try, 1 in 19 on the second...[11]
Spring ShoesOtherwise 1 in 11, if the level has none[12]
CompassOtherwise 1 in 11, if the level has none[13]
MattockOtherwise 1 in 11, if the level has none[14]
SpectaclesOtherwise 1 in 11, if the level has none[15]
JetpackOtherwise 1 in 11, if the level has none[16]
Climbing GlovesOtherwise 1 in 11, if the level has none[17]
Pitcher's MittOtherwise 1 in 11, if the level has none[18]
Web CannonOtherwise 1 in 11, if the level has none[19]
CapeOtherwise 1 in 11, if the level has none[20]
TeleporterOtherwise 1 in 11, if the level has none[21]
Spike ShoesOtherwise 1 in 11, if the level has none[22]

So a Rare Shop sells each piece once at most, and Bomb Boxes more often the more pieces the level already has. The check is for the piece on the level, not the player's, so the shop sells a piece the player already wears, and buying it again changes nothing [23]. The Mattock, the Web Cannon and the Teleporter are the player's to hold and use rather than to wear [24].

Prices

#

A ware costs its base price on level 2, and 10% of that more for each level after it [25]. Each ware's own page has its price on every level:

WareLevel 2Level 5Level 9Level 13Level 15
Web Cannon$2,000$2,600$3,400$4,200$4,600
Compass$3,000$3,900$5,100$6,300$6,900
Pitcher's Mitt$4,000$5,200$6,800$8,400$9,200
Spike Shoes$4,000$5,200$6,800$8,400$9,200
Spring Shoes$5,000$6,500$8,500$10,500$11,500
Mattock$8,000$10,400$13,600$16,800$18,400
Spectacles$8,000$10,400$13,600$16,800$18,400
Climbing Gloves$8,000$10,400$13,600$16,800$18,400
Bomb Box$10,000$13,000$17,000$21,000$23,000
Teleporter$10,000$13,000$17,000$21,000$23,000
Cape$12,000$15,600$20,400$25,200$27,600
Jetpack$20,000$26,000$34,000$42,000$46,000

The Jetpack is the dearest ware an ordinary shop sells. A Black Market's Rare Shop prices its wares by the level the market is on [26].

Shopkeeper

#

The Shopkeeper sells as in every shop (the General Store has the details): he names the price of a ware the player holds, and the pay key buys it [27] [28]. A piece of equipment to wear goes on as it's bought, one to use stays in the player's hands, his own, and a Bomb Box adds its bombs [29] [30]. A theft, a bomb lit in the shop or a block of its walls broken angers him, and he gives the wares away and attacks with his Shotgun [31] [32].

Stealing

#
Shoplifting from a Rare Shop. In a Rare Shop on level 5 that opens to the left, the player picks up the spike shoes, priced at $5200, and runs and jumps out of the shop with them. The shopkeeper turns on him, but the shoes, out of the shop first, stay in his hands rather than going on.

Carrying a ware out of the shop's room unpaid angers the Shopkeeper ("COME BACK HERE, THIEF!") and gives it to the player as if bought. A piece to wear goes on at once only if the player leaves the room before it, held in front of him, does; otherwise he's left holding it, free, and picking it up again puts it on [33] [34] [23]. In the clip, in a Rare Shop that opens to the left, the player picks up the Spike Shoes, priced at $5,200, and runs and jumps out with them; the Shopkeeper turns on him and fires, and the shoes, out of the shop first, stay in his hands rather than going on [35].

A Rare Shop on a thief's next level. On the level after the player stole from a shop, a Rare Shop has a Wanted poster of him on its wall. Its shopkeeper doesn't greet him, but leaves his place and walks about the shop.

A theft marks the player a thief into the next level: its exit has a Shopkeeper waiting by it, and a shop's Shopkeeper doesn't greet him but walks about, ready to attack, under a Wanted poster of the player (the General Store has the rules) [36] [37] [38]. The second clip shows a Rare Shop on such a level [39]. Its wares are free, and each counts as stolen in the end-of-game statistics as it comes on screen, though the player touches none [40] [23].

Locations

#

A level from 2 to 15 that rolls a shop builds one of seven kinds, each as likely, so a shop is a Rare Shop one time in seven (one in six on a Temple sacrifice pit level, which never has a Kissing Parlor) [41] [1] [42] [4]. The Mines has how levels roll shops. A Black Market has five shops that sell items, as a rule one of each kind, a Rare Shop among them (the General Store has the exception) [5] [23] [43].

Trivia

#
  • The source calls it the "Rare" shop, and its Shopkeeper a "SPECIALTY SHOP" [44] [6]. Its sign shows a magnifying glass.
  • On level 2, the Shopkeeper calls the Jetpack "JETPACK FOR $20000."; past level 2, the message is rebuilt from the ware's type, "A JETPACK FOR ...", as for the Spectacles and the Spike Shoes [23] [45].

FAQ

#
What does the Rare Shop sell in Spelunky Classic?

Four wares, each one of eleven pieces of equipment, at most one of each a level, or a Bomb Box. The eleven are Spring Shoes, the Compass, the Mattock, Spectacles, the Jetpack, Climbing Gloves, the Pitcher's Mitt, the Web Cannon, the Cape, the Teleporter and Spike Shoes.

Where can you buy a Jetpack in Spelunky Classic?

Only in a Rare Shop, for $20,000 on level 2 and 10% of that more on each level after it, up to $46,000 on level 15.

Why is the Rare Shop called a specialty shop?

Its Shopkeeper welcomes the player to his "SPECIALTY SHOP". The source calls it the "Rare" shop.

See also

#

References

#
  1. scripts/scrRoomGen.gml:173-204
  2. scripts/scrRoomGen2.gml:160-189
  3. scripts/scrRoomGen3.gml:122-152
  4. scripts/scrRoomGen4.gml:155-188
  5. scripts/scrRoomGenMarket.gml:117-140
  6. objects/oShopkeeper/step.gml:130
  7. scripts/scrGetName.gml:24-60
  8. scripts/scrRoomGen.gml:173-191
  9. scripts/scrRoomGen.gml:448-451
  10. scripts/scrShopItemsGen.gml:102-155
  11. scripts/scrShopItemsGen.gml:108
  12. scripts/scrShopItemsGen.gml:109-112
  13. scripts/scrShopItemsGen.gml:113-116
  14. scripts/scrShopItemsGen.gml:117-120
  15. scripts/scrShopItemsGen.gml:121-124
  16. scripts/scrShopItemsGen.gml:125-128
  17. scripts/scrShopItemsGen.gml:129-132
  18. scripts/scrShopItemsGen.gml:133-136
  19. scripts/scrShopItemsGen.gml:137-140
  20. scripts/scrShopItemsGen.gml:141-144
  21. scripts/scrShopItemsGen.gml:145-148
  22. scripts/scrShopItemsGen.gml:149-152
  23. Quirk 1 (docs/quirks.md)
  24. scripts/scrStealItem.gml:243-292
  25. scripts/scrShopItemsGen.gml:179-191
  26. scripts/scrRoomGenMarket.gml:357-360
  27. objects/oShopkeeper/step.gml:72-85
  28. objects/oPlayer1/step.gml:1359-1389
  29. scripts/scrStealItem.gml:80-91
  30. scripts/scrStealItem.gml:126-313
  31. scripts/scrShopkeeperAnger.gml:7-23
  32. objects/oShopkeeper/step.gml:337-408
  33. objects/oPlayer1/step.gml:541-557
  34. objects/oItem/step.gml:17-34
  35. Clip rare-shop/theft
  36. scripts/scrInitLevel.gml:245-257
  37. objects/oShopkeeper/step.gml:121-124
  38. scripts/scrRoomGen2.gml:427-435
  39. Clip rare-shop/wanted
  40. objects/oItem/step.gml:8-15
  41. scripts/scrLevelGen.gml:239-297
  42. scripts/scrRoomGenYeti.gml:149-181
  43. Replay fidelity/replays/shop-seed-9-market-two-general-stores.txt
  44. scripts/scrRoomGen.gml:183
  45. scripts/scrShopItemsGen.gml:187-188

Source code

  • scripts/scrShopItemsGen.gml
  • scripts/scrRoomGen.gml
  • scripts/scrRoomGenMarket.gml
  • objects/oShopkeeper/step.gml
  • scripts/scrStealItem.gml
#