DefbeatCZ / DefsLTS

Long Term Survival Mod for Project Zomboid
MIT License
11 stars 8 forks source link

Implemented Gunpowder #27

Open g3ksmithington opened 3 years ago

g3ksmithington commented 3 years ago

I wanted to check out the process for writing mods and I stumbled upon your mod while perusing GitHub repositories!

I saw that you wanted to implement gunpowder so I went ahead and did it!

According to WikiHow (https://www.wikihow.com/Make-Gunpowder) gunpowder is 74.8% saltpeter, 13.3% charcoal and 11.9% elemental Sulphur. I added sulphur as a new item (added it to spawn locations, but lazily: registerAsLoot(iReg, 4, "toolstore", "all");), created a recipe for saltpeter from sourcing coldpacks (since that is a source) using a mortar and pestle, and then a recipe for gunpowder that includes your already implemented woodash! I was also considering using your drying mechanism for getting Saltpeter from Coldpacks, but went with mortal and pestle instead.

I haven't tested it yet, but looking through your code I think I've implemented it correctly. I'll be able to test it in game later on today.

DefbeatCZ commented 3 years ago

Going to move this into a new issue.