SpelunkyFan wiki

Weapon Shop

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

The Weapon Shop is a shop in Spelunky Classic that sells the Pistol, Shotgun, Machete, Bow and Web Cannon, and bombs.

Its Shopkeeper welcomes the player with "WELCOME TO ANDY'S ARMORY!", his name one of 32 drawn at random [6] [7]. It's the one shop that sells weapons: the Pistol, Shotgun, Machete, Bow and Web Cannon, with Bomb Bags and Bomb Boxes among them. 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]. The rolls go down the table until one hits. A hit on a weapon the level already has rolls again from the top, and after twenty such tries the ware is a Bomb Bag [10]:

WareRoll
Web Cannon1 in 12, if the level has none[11]
Shotgun1 in 10, if the level has none[12]
Bomb Box1 in 6[13]
PistolOtherwise 1 in 4, if the level has none[14]
MacheteOtherwise 1 in 4, if the level has none[15]
Bomb BagOtherwise 1 in 4[16]
BowOtherwise 1 in 4, if the level has none[17]

So a Weapon Shop sells each weapon once at most, and bombs as often as its rolls give. The last four rows share one roll, made at the start of each try [18].

Prices

#

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

WareLevel 2Level 5Level 9Level 13Level 15
Bow$1,000$1,300$1,700$2,100$2,300
Web Cannon$2,000$2,600$3,400$4,200$4,600
Bomb Bag$2,500$3,250$4,250$5,250$5,750
Pistol$5,000$6,500$8,500$10,500$11,500
Machete$7,000$9,100$11,900$14,700$16,100
Bomb Box$10,000$13,000$17,000$21,000$23,000
Shotgun$15,000$19,500$25,500$31,500$34,500

A Black Market's Weapon Shop prices its wares by the level the market is on [20].

Shopkeeper

#
Buying a pistol in a Weapon Shop. The player walks into a Weapon Shop on level 2, which its shopkeeper calls his armory. He picks up the pistol, the shopkeeper names its price, $5000, and he pays for it.

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 [21] [22]. A weapon bought stays in the player's hands, his own [23]; a Bomb Bag or Box is used up, adding its bombs. In the clip, the player walks into the shop, picks up the Pistol, which the Shopkeeper prices at $5,000, and pays [24].

A weapon held unpaid can be used inside the shop: only leaving the shop's room with it is theft [25]. Using it on the Shopkeeper is another matter. A bullet or a pellet takes 4 of his hit points and stuns him, and he gets up angry; the Whip, the Machete's slash or a thrown item makes him attack at once [26] [27] [28]. None of these marks the player a thief, though the wares he gives away can then be carried out (the General Store has the rules) [29]. Angered, he gives the wares away and attacks with his own Shotgun [30].

Shotgun blast. The player picks up a shop's shotgun and fires it once to the left, at the wall, and once to the right into the shopkeeper. All six pellets hit him: he loses 24 hit points at once, drops his own shotgun and dies, and each shot pushes the player back.

In the second clip, the player fires the shop's unpaid Shotgun, first away from the Shopkeeper and then into him: the six pellets take more than his hit points, and he drops his own Shotgun and dies, which leaves the wares free [31] [32]. A dead Shopkeeper marks the player a murderer for the rest of the game, whatever killed him [33] [29].

Stealing

#

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 [25] [34]. A theft marks the player a thief into the next level, whose exit has a Shopkeeper waiting by it and whose shops' wares are free (the General Store has the rules) [35].

Locations

#

A level from 2 to 15 that rolls a shop builds one of seven kinds, each as likely, so a shop is a Weapon Shop one time in seven (one in six on a Temple sacrifice pit level, which never has a Kissing Parlor) [36] [1] [37] [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 Weapon Shop among them (the General Store has the exception) [5] [29].

Trivia

#
  • The source calls it the "Weapon" shop, and its Shopkeeper an "ARMORY" [38] [6]. Its sign shows a pistol.
  • Every Shopkeeper carries a Shotgun, and drops it, free, when he's stunned or killed, so any shop's Shopkeeper can be made to give one up [39].

FAQ

#
What does the Weapon Shop sell in Spelunky Classic?

Four wares, each a Pistol, Machete, Bow, Shotgun or Web Cannon, at most one of each a level, or a Bomb Bag or a Bomb Box.

How much does the Shotgun cost in Spelunky Classic?

$15,000 on level 2, and 10% of that more on each level after it, up to $34,500 on level 15: the dearest ware a Weapon Shop sells.

Can you use a weapon in a shop before paying for it in Spelunky Classic?

Yes. Using it inside the shop isn't stealing. Only carrying it out of the shop's room unpaid is, or hitting the Shopkeeper with it, which makes him attack.

Why is the Weapon Shop called an armory?

Its Shopkeeper welcomes the player to his "ARMORY". The source calls it the "Weapon" 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:128
  7. scripts/scrGetName.gml:24-60
  8. scripts/scrRoomGen.gml:173-191
  9. scripts/scrRoomGen.gml:448-451
  10. scripts/scrShopItemsGen.gml:36-67
  11. scripts/scrShopItemsGen.gml:43-46
  12. scripts/scrShopItemsGen.gml:47-50
  13. scripts/scrShopItemsGen.gml:51
  14. scripts/scrShopItemsGen.gml:52-55
  15. scripts/scrShopItemsGen.gml:56-59
  16. scripts/scrShopItemsGen.gml:60
  17. scripts/scrShopItemsGen.gml:61-64
  18. scripts/scrShopItemsGen.gml:41
  19. scripts/scrShopItemsGen.gml:179-191
  20. scripts/scrRoomGenMarket.gml:357-360
  21. objects/oShopkeeper/step.gml:72-85
  22. objects/oPlayer1/step.gml:1359-1389
  23. scripts/scrStealItem.gml:243-313
  24. Clip weapon-shop/buy
  25. objects/oPlayer1/step.gml:541-557
  26. objects/oBullet/collision_oEnemy.gml:1-36
  27. objects/oShopkeeper/step.gml:465-477
  28. objects/oShopkeeper/collision_oWhip.gml:1-19
  29. Quirk 1 (docs/quirks.md)
  30. objects/oShopkeeper/step.gml:337-408
  31. Clip shotgun/shopkeeper
  32. objects/oItem/step.gml:8-15
  33. objects/oShopkeeper/step.gml:486-499
  34. objects/oItem/step.gml:17-34
  35. scripts/scrInitLevel.gml:245-257
  36. scripts/scrLevelGen.gml:239-297
  37. scripts/scrRoomGenYeti.gml:149-181
  38. scripts/scrRoomGen.gml:182
  39. objects/oShopkeeper/step.gml:511-522

Source code

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