# How do monster drops work?

**URL:** <https://discourse.cataclysmdda.org/t/how-do-monster-drops-work/14714>\
**Category:** The Toolbox\
**Created:** [December 27, 2017, 5:19pm UTC](https://discourse.cataclysmdda.org/t/how-do-monster-drops-work/14714 "2017-12-27T17:19:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Taberone](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/taberone/32/515_2.png) [@Taberone](https://discourse.cataclysmdda.org/u/Taberone)\
**Post date:** [December 27, 2017, 5:19pm UTC](https://discourse.cataclysmdda.org/t/how-do-monster-drops-work/14714/1 "2017-12-27T17:19:05Z")

</div>

How exactly do monster drops work? I’m working on a mod and trying to include an enemy based off of a Touhou character.

Under monster\_drops.json I have this:

> {  
> “type” : “item\_group”,  
> “id” : “moonrabbit\_drops”,  
> “items”:[  
> [“lunar\_rifle”, 3],  
> [“bra”, 1],  
> [“panties”, 1],  
> [“dress\_shirt”, 1],  
> [“suit\_reisen”, 1],  
> [“skirt”, 1],  
> [“lunar\_helmet”, 1],  
> [“dress\_shoes”, 1],  
> [“stockings”, 1]  
> ]  
> }

And under monsters.json I have this part:

> “death\_drops”: {  
> “subtype”: “collection”,  
> “groups”: [  
> [“moonrabbit\_drops”, 40]  
> ]  
> },

What exactly do the numbers mean? I kinda used existing code as a template, but don’t really know what it means.

Also, how does text formatting for code work on this new forum? It seemed to work better on the old forums, and the old forums didn’t mangle the spacing in my code.

---

<div class="post-metadata">

**Author:** ![Aggregate](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/aggregate/32/1484_2.png) [@Aggregate](https://discourse.cataclysmdda.org/u/Aggregate)\
**Post date:** [December 27, 2017, 11:02pm UTC](https://discourse.cataclysmdda.org/t/how-do-monster-drops-work/14714/2 "2017-12-27T23:02:51Z")

</div>

I’m fairly sure the numbers are percentage chance for the item to spawn, so your monster has a 40% chance to spawn a single item from the drop list. If an item is spawned the specific item it’ll be is determined semi randomly, with those with a higher number (again, percentage chance) being more likely.

In the following example the Zombie Grenadier will always drop items from two groups, and will always drop a (slightly to severely damaged) chest rig, 0 - 3 manhacks, and has a 50% chance to drop a flashbang hack and another 50% chance to drop a teargas hack, from the “mon\_zombie\_grenadier” group.

The zombie’s death drops:

```
    "death_drops": {
  "subtype": "collection",
  "groups": [
    ["mon_zombie_soldier_death_drops", 100],
    ["mon_zombie_grenadier", 100]
  ]
},

```

The “mon\_zombie\_grenadier” item group:

```
        {
    "type" : "item_group",
    "subtype": "collection",
    "id": "mon_zombie_grenadier",
    "entries":
    [
        { "item": "chestrig", "damage": [1, 4] },
        { "item": "bot_grenade_hack", "count": [0, 3] },
        { "item": "bot_flashbang_hack", "prob": 50},
        { "item": "bot_gasbomb_hack", "prob": 50}
    ]
},

```

I hope this helps!
