PHP-Code:
if (GET_PLAYER(ePlayer).isGoldenAge())
{
if (iYield >= GC.getYieldInfo(eYield).getGoldenAgeYieldThreshold())
{
iYield += GC.getYieldInfo(eYield).getGoldenAgeYield();
}
}
PHP-Code:
if (GET_PLAYER(ePlayer).isGoldenAge())
{
if (iYield >= GC.getYieldInfo(eYield).getGoldenAgeYieldThreshold())
{
iYield += GC.getYieldInfo(eYield).getGoldenAgeYield();
}
}
Pucc's Lets Plays BASE 6.0: #1 #2 #3 #4 #5
Download von BASE 6.4 [D]: HIER (klick mich!) (Stand: 08.07.2022)
Wenn du das auch geschwindigkeitsoptimiert haben willst, musst du es coden. Ich muss nämlich u.a. den Yieldtype abfragen.
edit: und karthago muss auch gesetzt werden
Pucc's Lets Plays BASE 6.0: #1 #2 #3 #4 #5
Download von BASE 6.4 [D]: HIER (klick mich!) (Stand: 08.07.2022)
Das wird wohl in der CvPlot sein.
So vermutlich?PHP-Code:
if (GET_PLAYER(ePlayer).isGoldenAge())
{
if (iYield >= GC.getYieldInfo(eYield).getGoldenAgeYieldThreshold())
{
iYield += GC.getYieldInfo(eYield).getGoldenAgeYield();
// Cybah: BASE - ZE: Karthago START -------------------------------------------------------
if (GET_PLAYER(ePlayer).getCivilizationType() == GC.getCIVILIZATION_CARTHAGE())
{
TeamTypes eTeam = GET_PLAYER(ePlayer).getTeam();
if (GET_TEAM(eTeam).isHasTech((TechTypes)(GC.getTECH_CARTHAGE())))
{
if (eYield == Yield_COMMERCE)
iYield += 1;
}
}
}
// Cybah: BASE - ZE: Karthago END -------------------------------------------------------
}
}
Pucc's Lets Plays BASE 6.0: #1 #2 #3 #4 #5
Download von BASE 6.4 [D]: HIER (klick mich!) (Stand: 08.07.2022)
1>CvPlot.cpp(7366) : error C2065: 'Yield_COMMERCE' : undeclared identifier
Muss vielleicht groß geschrieben werden.
Pucc's Lets Plays BASE 6.0: #1 #2 #3 #4 #5
Download von BASE 6.4 [D]: HIER (klick mich!) (Stand: 08.07.2022)
jep groß, trotzdem kommt noch:
PHP-Code:
1>CvPlot.cpp(7382) : error C2059: syntax error : 'return'
1>CvPlot.cpp(7383) : error C2059: syntax error : '}'
1>CvPlot.cpp(7383) : error C2143: syntax error : missing ';' before '}'
1>CvPlot.cpp(7383) : error C2059: syntax error : '}'
1>CvPlot.cpp(7387) : error C2143: syntax error : missing ';' before '{'
1>CvPlot.cpp(7387) : error C2447: '{' : missing function header (old-style formal list?)
Pucc's Lets Plays BASE 6.0: #1 #2 #3 #4 #5
Download von BASE 6.4 [D]: HIER (klick mich!) (Stand: 08.07.2022)
ALLE BUCHSTARBEN GROß!
if (eYield == Yield_COMMERCE) danach fehlt öffnende Klammer {
edit: Setze mal außen rum die Abfrage! Nur bei Kommerz nach Karthago fragen.
ah, eine klammer vergessen.
Pucc's Lets Plays BASE 6.0: #1 #2 #3 #4 #5
Download von BASE 6.4 [D]: HIER (klick mich!) (Stand: 08.07.2022)
Schicke mir mal bitte das Patch L SDK. Ich habe meinen Code schon weiter erweitert und es wäre gut, den richtigen Code zum Beispiel beim Debuggen von Problemsaves zu haben.
Pucc's Lets Plays BASE 6.0: #1 #2 #3 #4 #5
Download von BASE 6.4 [D]: HIER (klick mich!) (Stand: 08.07.2022)
Aus Leistungstechnischer Sicht ist das nicht wurst.
Siehe meinen Beitrag über dir.
Pucc's Lets Plays BASE 6.0: #1 #2 #3 #4 #5
Download von BASE 6.4 [D]: HIER (klick mich!) (Stand: 08.07.2022)
Mir fällt gerade ein, hattest du das jetzt eigentlich noch getestet?
Ich nicht.Generäle geben nur noch der angeschlossenen Einheit Erfahrung, statt möglichen vielen auf dem Feld
edit: jetzt schon
Pucc's Lets Plays BASE 6.0: #1 #2 #3 #4 #5
Download von BASE 6.4 [D]: HIER (klick mich!) (Stand: 08.07.2022)