isnorden
Amnesiac Modder
As soon as I get the kinks out of my new resources code, I'd like to update the brewery building that I've already modded in. Instead of just generating Gold the way it does now, I plan on making these changes:
Thanks to several of you, I learned where to check for some code that would help with upgrades #1 and #2. Upgrade #3, though, is another matter: can any existing manufactured resources be improved by mastering a technology? If any mod for Civ5 has code I could use as a starting point, please let me know!
- Have the Brewery turn out Beer (a new luxury resource) as long as there's a Barley farm within the city limits. (I was thinking of adding a fresh-water restriction too, since real-life brewers are picky about the water they use as a base ingredient--but having three restrictions would make a relatively common luxury too difficult to produce.)
- Add a second, hidden and indestructible freebie building to the Brewery (for now, I've christened it the Annex). This phantom building would generate Mead (a second luxury resource) as long as Honey plantations existed within the city limits.
- Improve the Brewery and its Annex when the player has researched Refrigeration: either product yield, a Gold bonus, or both. (A brew that stays cold longer stays fresh longer, and brings a higher price.)
Thanks to several of you, I learned where to check for some code that would help with upgrades #1 and #2. Upgrade #3, though, is another matter: can any existing manufactured resources be improved by mastering a technology? If any mod for Civ5 has code I could use as a starting point, please let me know!