Heiß und Fettig gibt es heute eine Pythonerwrapperfunktionen im Angebot. Schlagen sie sofort zu.
Möglichkeiten für Civeigenschaften unabhängig von Code-Erweiterung:
Code:
int getSpecialistExtraYield(SpecialistTypes eIndex1, YieldTypes eIndex2) const; // Exposed to Python
void changeSpecialistExtraYield(SpecialistTypes eIndex1, YieldTypes eIndex2, int iChange);
int getImprovementYieldChange(ImprovementTypes eIndex1, YieldTypes eIndex2) const; // Exposed to Python
void changeImprovementYieldChange(ImprovementTypes eIndex1, YieldTypes eIndex2, int iChange);
/* Enhanced Python API (Asaf) - Start */
int getExtraTerrainYield(TerrainTypes eTerrain, YieldTypes eYield); // Exposed to Python
void setExtraTerrainYield(TerrainTypes eTerrain, YieldTypes eYield, int iValue); // Exposed to Python
int getExtraPlotTypeYield(PlotTypes ePlotType, YieldTypes eYield); // Exposed to Python
void setExtraPlotTypeYield(PlotTypes ePlotType, YieldTypes eYield, int iValue); // Exposed to Python
int getExtraFeatureYield(FeatureTypes eFeatureType, YieldTypes eYield); // Exposed to Python
void setExtraFeatureYield(FeatureTypes eFeatureType, YieldTypes eYield, int iValue); // Exposed to Python
int getCitiesCultureStrengthModifier() const; // Exposed to Python
void setCitiesCultureStrengthModifier(int iValue); // Exposed to Python
int getExCitiesCultureStrengthModifier() const; // Exposed to Python
void setExCitiesCultureStrengthModifier(int iValue); // Exposed to Python
/* Enhanced Python API (Asaf) - End */
// rucivfan_specialist_extra_x rsex[
int getSpecialistExtraCommerce(SpecialistTypes eIndex1, CommerceTypes eIndex2) const;
void changeSpecialistExtraCommerce(SpecialistTypes eIndex1, CommerceTypes eIndex2, int iChange);
// ]rucivfan_specialist_extra_x rsex
edit:
Code:
void changeDistanceMaintenanceModifier(int iChange);
void changeNumCitiesMaintenanceModifier(int iChange);
Das kann alles per Python aufgerufen werden, wenn wir mal was brauchen.