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]:
| Ware | Roll | |
|---|---|---|
| Web Cannon | 1 in 12, if the level has none | [11] |
| Shotgun | 1 in 10, if the level has none | [12] |
| Bomb Box | 1 in 6 | [13] |
| Pistol | Otherwise 1 in 4, if the level has none | [14] |
| Machete | Otherwise 1 in 4, if the level has none | [15] |
| Bomb Bag | Otherwise 1 in 4 | [16] |
| Bow | Otherwise 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:
| Ware | Level 2 | Level 5 | Level 9 | Level 13 | Level 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
#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].
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
#scripts/scrRoomGen.gml:173-204scripts/scrRoomGen2.gml:160-189scripts/scrRoomGen3.gml:122-152scripts/scrRoomGen4.gml:155-188scripts/scrRoomGenMarket.gml:117-140objects/oShopkeeper/step.gml:128scripts/scrGetName.gml:24-60scripts/scrRoomGen.gml:173-191scripts/scrRoomGen.gml:448-451scripts/scrShopItemsGen.gml:36-67scripts/scrShopItemsGen.gml:43-46scripts/scrShopItemsGen.gml:47-50scripts/scrShopItemsGen.gml:51scripts/scrShopItemsGen.gml:52-55scripts/scrShopItemsGen.gml:56-59scripts/scrShopItemsGen.gml:60scripts/scrShopItemsGen.gml:61-64scripts/scrShopItemsGen.gml:41scripts/scrShopItemsGen.gml:179-191scripts/scrRoomGenMarket.gml:357-360objects/oShopkeeper/step.gml:72-85objects/oPlayer1/step.gml:1359-1389scripts/scrStealItem.gml:243-313- Clip weapon-shop/buy
objects/oPlayer1/step.gml:541-557objects/oBullet/collision_oEnemy.gml:1-36objects/oShopkeeper/step.gml:465-477objects/oShopkeeper/collision_oWhip.gml:1-19- Quirk 1 (docs/quirks.md)
objects/oShopkeeper/step.gml:337-408- Clip shotgun/shopkeeper
objects/oItem/step.gml:8-15objects/oShopkeeper/step.gml:486-499objects/oItem/step.gml:17-34scripts/scrInitLevel.gml:245-257scripts/scrLevelGen.gml:239-297scripts/scrRoomGenYeti.gml:149-181scripts/scrRoomGen.gml:182objects/oShopkeeper/step.gml:511-522
Source code
scripts/scrShopItemsGen.gmlscripts/scrRoomGen.gmlscripts/scrRoomGenMarket.gmlobjects/oShopkeeper/step.gmlscripts/scrStealItem.gml