Resource icon

Sphinx Wonder (XML+Python) 2016-10-05

I made this for my Thomas' War mod:

Here's my version of the Sphinx wonder. I know there's already plenty of Sphinx wonders floating around, but I decided to add a Python component and give mine a unique bonus. Obviously, the point of this modcomp is the python code itself, so if you already have a Sphinx wonder or simply want a different wonder it's simple enough to change the XML art files and apply this benefit to any wonder.

Sphinx Wonder

SphinxNew.jpg


Spoiler :
Movie.jpg

-25% Cost of Wonders in All Cities.


Now the idea behind this wonder might sound a little redundant. Then again there's already wonders like the Parthenon and Cristo that gives smaller versions of the Phi and Spi bonus, so why not one for Ind.

A small note oh how this wonder works. It doesn't give you a production bonus for wonders. Instead it lowers the actual cost of the wonders. It's a subtle difference and functions very much the same way except production bonuses are dependent on how many hammers your city produces and this is independent of such. Coincidently, hovering over the production won't show +25% from Sphinx. Instead, hovering over say the Stonehenge icon on Epic speed, the cost will change from 0/180 to 0/135 once you build the Sphinx.

To people wishing to add this to other mods. You'll have to edit the PythonCallbackDefines XML file in addition to the standard Art and Text files. You'll be changing:

Spoiler :
Code:
	<Define>
		<DefineName>USE_GET_BUILDING_COST_MOD_CALLBACK</DefineName>
		<iDefineIntVal>0</iDefineIntVal>
	</Define>

to:

Code:
	<Define>
		<DefineName>USE_GET_BUILDING_COST_MOD_CALLBACK</DefineName>
		<iDefineIntVal>1</iDefineIntVal>
	</Define>
Everything else is marked in the CvGameUtils python file.

Enjoy!

Credits:
Python+XML: me (tsentom1)
Model: Taken from EE2 uploaded by Walter Hawkwood
Movie: I know this movie is 'stolen' from the Call to Power intro movie but I have no idea who originally uploaded it.

Edit: Fixed the model
Edit 2: Fixed it calling for the League of Nations instead of United Nations, changed to -20% cost (which equals +25% production)
Edit 3: Updated with better art, special thanks to Walter Hawkwood
Edit 4: Greatly cleaned up the code
Edit 5: Added a line of code so the Sphinx bonus doesn't apply to the Sphinx itself which was causing large amounts of free production overflow upon construction of the Sphinx

Thread
  • sphinxnew_BAw.jpg
    sphinxnew_BAw.jpg
    116.1 KB · Views: 138
Author
tsentom1
Downloads
967
Views
967
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from tsentom1

Back
Top Bottom