# \[0.C-5285\] Vault armory guns spawn with no magazines

**URL:** https://discourse.cataclysmdda.org/t/0-c-5285-vault-armory-guns-spawn-with-no-magazines/12266
**Category:** The Garage
**Created:** [July 25, 2016, 1:57am UTC](https://discourse.cataclysmdda.org/t/0-c-5285-vault-armory-guns-spawn-with-no-magazines/12266 "2016-07-25T01:57:59Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Lazy\_lizard](https://avatars.discourse-cdn.com/v4/letter/l/f475e1/32.png) [@Lazy\_lizard](https://discourse.cataclysmdda.org/u/Lazy_lizard)
#### Post date: [July 25, 2016, 1:57am UTC](https://discourse.cataclysmdda.org/t/0-c-5285-vault-armory-guns-spawn-with-no-magazines/12266/1 "2016-07-25T01:57:59Z")

</div>

Just like it says on the tin. Weapons spawned in the Vault armory have no magazines even though their item groups in necropolis\_c\_2 and necropolis\_c\_3 indicate that they should.

I’ve noticed a lot of weapons spawning without mags since they were implemented, survivor zed’s guns don’t have mags nor do guns dropped around the science map special.

---

<div class="post-metadata">

### Author: ![BeerBeer](https://avatars.discourse-cdn.com/v4/letter/b/c67d28/32.png) [@BeerBeer](https://discourse.cataclysmdda.org/u/BeerBeer)
#### Post date: [July 25, 2016, 5:45am UTC](https://discourse.cataclysmdda.org/t/0-c-5285-vault-armory-guns-spawn-with-no-magazines/12266/2 "2016-07-25T05:45:44Z")

</div>

Also, guns found on crash sites never have magazines, I think.

---

<div class="post-metadata">

### Author: ![Lazy\_lizard](https://avatars.discourse-cdn.com/v4/letter/l/f475e1/32.png) [@Lazy\_lizard](https://discourse.cataclysmdda.org/u/Lazy_lizard)
#### Post date: [August 5, 2016, 9:21pm UTC](https://discourse.cataclysmdda.org/t/0-c-5285-vault-armory-guns-spawn-with-no-magazines/12266/3 "2016-08-05T21:21:45Z")

</div>

[0.C-5335]

Map extras, survivor zombies, and the necropolis armory still spawn firearms with no magazines. The weapons spawned in these locations are so rare that the absence of magazines make them only useful as blunt instruments. The survivor zed is particularly easy to fix as the death drop item group just needs to have the “magazine” and “ammo”, added, as the commit that changed their death drops seems to indicate should have been the case.

---

<div class="post-metadata">

### Author: ![Soyweiser](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/soyweiser/32/37_2.png) [@Soyweiser](https://discourse.cataclysmdda.org/u/Soyweiser)
#### Post date: [August 6, 2016, 1:55am UTC](https://discourse.cataclysmdda.org/t/0-c-5285-vault-armory-guns-spawn-with-no-magazines/12266/4 "2016-08-06T01:55:17Z")

</div>

Do you perhaps have a link to the commit? That would make it a LOT easier to fix.

Thanks for reporting btw, these are indeed problems that should be fixed.

---

<div class="post-metadata">

### Author: ![Lazy\_lizard](https://avatars.discourse-cdn.com/v4/letter/l/f475e1/32.png) [@Lazy\_lizard](https://discourse.cataclysmdda.org/u/Lazy_lizard)
#### Post date: [August 6, 2016, 8:44am UTC](https://discourse.cataclysmdda.org/t/0-c-5285-vault-armory-guns-spawn-with-no-magazines/12266/5 "2016-08-06T08:44:55Z")

</div>

[https://github.com/CleverRaven/Cataclysm-DDA/pull/15637/commits/f3b6709b6a40149e5b0805dba435ace484196ca3](https://github.com/CleverRaven/Cataclysm-DDA/pull/15637/commits/f3b6709b6a40149e5b0805dba435ace484196ca3)

This is the specific commit that migrated the survivor zombie’s death drops. Mugling mentions in the pull request that he/she was migrating because the zed’s drops were over powered and lacked magazines, but seems to have forgotten to add the “magazine” field to the start of the item group. The problems with map extras, (drug dealers, supply crates, etc.), is that the place item command in src lacks the arguments for magazines or ammo. This problem also exists for spider basements (calls item group “rare” which contains some firearms) and spider pits (same deal as the basements but with item group “spider”). And finally, the Necropolis armory seems to have a problem with place\_item vs. place\_loot calling a magazine field.

for example  
basement\_gun

` "place_loot": [
                { "group": "guns_pistol_common", "chance": 75, "x": 12, "y": 9, "magazine": 100 },`  
spawns guns with mags

necropolis\_c\_2

` "place_items": [
                { "item": "guns_rifle_milspec", "chance": 85, "x": [11,23], "y": [8,8], "magazine": 100 },`  
No mags (sad\_face.png)

just changing place\_items to place\_loot in the map gen file throws a hissy fit when I tried it, so I don’t know how to fix that.
