LoneGazebo / Community-Patch-DLL

Community Patch for Civilization V - Brave New World
Other
289 stars 160 forks source link

FreeBuildings column in Buildings question. #1561

Closed TechpriestEnginseer closed 8 years ago

TechpriestEnginseer commented 8 years ago

If I had a building that duplicated itself using the FreeBuildings, how would it react over time? Ex. (We have only two cities and Building1. Building1 in City1 duplicated Building1 in City2 Would Building1 in City2 duplicate itself again in City1 creating errors?)

I'm trying to reduce the amount of turn processing by removing PlayerDoTurn to add buildings when someone settle or capture another cities. By having the FreeBuilding column of a building add itself. That way I don't need to worry about original capital cities lost or having to fire up functions for cities recaptured or founded.

LoneGazebo commented 8 years ago

I'm honestly not sure.

TechpriestEnginseer commented 8 years ago

Because what I'm afraid of is when they duplicate the same building, the duplicated building will duplicate the original building and hit a loop of duplicating until a global scale of duplication occurs.

LoneGazebo commented 8 years ago

There's only one way to find out...

TechpriestEnginseer commented 8 years ago

So, far I've played the game for 50 turns and it doesn't seem to be game-crashing yet.

TechpriestEnginseer commented 8 years ago

So, ironically a user did find a problem with FreeBuilding that was difficult to see. It has duplicate properties, but only on some of the tables. Apparently, a building that has the freebuilding of itself(but it won't show itself as two buildings) will double the unitcombatproduction modifier (+33% becomes +66%). This isn't an issue(I'll just have to import the buildings into events now) since I knew that a bug would break, but just for future documentation.

LoneGazebo commented 8 years ago

Interesting!