editor ammo types - magemonkeystudio/divinity GitHub Wiki
🎯 Editor: Ammo Types
The Ammo Types editor option allows you to define which ammo types an item can roll with, and set the chance for each type to be assigned.
Ammo types are created manually in the Ammo module. This setting simply tells the item generator which types are allowed, and how likely each is to be selected during item creation.
⚙️ What It Does
- You define one or more ammo types and set a weight (chance) for each.
- The generator randomly picks one based on the weights.
- Does not define the ammo behavior — only which ammo the item can be linked to.
🛠️ How to Use
- Open the Item Generator Editor.
- Click Ammo Types.
- Click “Add New Ammo Type.”
- Enter the name of an existing ammo type (from the Ammo module).
- Set its drop chance as a percentage or weight.
🎯 Use Case
If you’re generating a bow, you can allow only specific arrow types to roll — like:
- Arrow: 70%
- FireArrow: 30%
This lets different weapons be linked to different ammo systems without having to create separate generator files.
🧠 Notes
- All ammo types must be predefined in the Ammo module.
- This is a simple way to tie weapon items to projectile behavior.
- Works with any item that uses ammo — including ranged weapons, launchers, or magic devices.
Return to: Item Generator Module