Oddity with CityBoughtPlot GameEvent

DarkScythe

Hunkalicious Holo
Joined
May 6, 2014
Messages
804
Hey guys,

I am wondering if anyone else could confirm what I am seeing here with regard to this "new" game event, which I assume came from whoward.

For clarification, I am not using DVMC, or any other DLL mod, in case implementation changed when Firaxis put it into the base game.

I'm about to start rewriting / revamping the entire Lua file for my Civ, and I was looking at replacing a few of the existing functions with potential candidates for better event triggers.

CityBoughtPlot seemed like it would be useful, as it may allow me to redirect my current function which fires on SerialEventCityInfoDirty to catch when a player has purchased a plot.

However, in my testing with a listener, it seems like it's not quite doing what I expect it to do. Specifically, whenever I purchase a plot manually using gold, the X and Y coordinates the event gives me are the coordinates of the City itself, rather than the coordinates of the plot that was purchased. However, when I let the City buy the plot normally with Culture, it seems to return the coordinates of that plot correctly.

Is this intended behavior? If so, there's really no benefit I can see to using this over my existing solution for catching gold-purchased-plots.
 
Haha. Leave it to me to find random bugs in people's code.

I suppose that's good to hear, and at least you know about it, but I also assume this means it will never be fixed in the base game, considering how slowly Firaxis moves on these things.

I suppose then I'll just leave my current function in there.. it's sloppy, but it works, and I don't have to write new code to do the same thing it currently does.
 
Back
Top Bottom