Magil
Monarch
- Joined
- Sep 26, 2010
- Messages
- 1,622
There's something I'm wondering about Civ VI modding and the modifier system. Is there a reason to use a separate modifier for each element you wish to apply it to instead of just making one modifier and apply it to each element?
Let's say you have three buildings which, among other effects, provide +25% Gold. How Civ VI base code seems to do it is make a separate modifier for each one, like BuildingOne25PercentGold, BuildingTwo25PercentGold, and BuildingThree25PercentGold, and attach it to each building appropriately. My testing, however, has shown little downside to simply making one modifier like "25PercentGold" and attach it to each building. Even if all three are built in the same city, they seem to stack correctly.
But maybe I'm missing something (something obvious?), so I'd appreciate a second pair of eyes to confirm or deny this.
Let's say you have three buildings which, among other effects, provide +25% Gold. How Civ VI base code seems to do it is make a separate modifier for each one, like BuildingOne25PercentGold, BuildingTwo25PercentGold, and BuildingThree25PercentGold, and attach it to each building appropriately. My testing, however, has shown little downside to simply making one modifier like "25PercentGold" and attach it to each building. Even if all three are built in the same city, they seem to stack correctly.
But maybe I'm missing something (something obvious?), so I'd appreciate a second pair of eyes to confirm or deny this.