Player.GetJONSCulture (Civ5 API)

From Civilization Modding Wiki
Jump to: navigation, search

This page is a part of the Lua and UI Reference (Civ5).


Function.png This function is a member of Player.

This is an instance method, invoke it with a colon.


Usage

int Player:GetJONSCulture()


Returned Value

No description available.


Source code samples

Redundant occurences have been removed.

SocialPolicyPopup.lua

UI/InGame/Popups/SocialPolicyPopup.lua
0232
szText = Locale.ConvertTextKey("TXT_KEY_CURRENT_CULTURE_LABEL", player:GetJONSCulture());
0239
local iCultureNeeded = player:GetNextPolicyCost() - player:GetJONSCulture();
0284
if player:GetJONSCulture() >= player:GetNextPolicyCost() then


TopPanel.lua

UI/InGame/TopPanel.lua
0136
strCultureStr = string.format("%i/%i (+%i)", pPlayer:GetJONSCulture(), pPlayer:GetNextPolicyCost(), pPlayer:GetTotalJONSCulturePerTurn());
0138
strCultureStr = string.format("%i (+%i)", pPlayer:GetJONSCulture(), pPlayer:GetTotalJONSCulturePerTurn());
0749
local iCultureNeeded = pPlayer:GetNextPolicyCost() - pPlayer:GetJONSCulture();
0765
strText = strText .. Locale.ConvertTextKey("TXT_KEY_TP_CULTURE_ACCUMULATED", pPlayer:GetJONSCulture());


TopPanel.lua (G&K)

DLC/Expansion/Scenarios/FallOfRomeScenario/TopPanel.lua
0065
if (pPlayer:GetTotalJONSCulturePerTurn() + pPlayer:GetJONSCulture() > 0) then
0066
iGoldPerTurn = iGoldPerTurn + math.floor((pPlayer:GetTotalJONSCulturePerTurn() + pPlayer:GetJONSCulture()) / 3);
0475
iGoldPerTurnFromCulture = math.floor((pPlayer:GetTotalJONSCulturePerTurn() + pPlayer:GetJONSCulture()) / 3);


TurnsRemaining.lua (G&K)

DLC/Expansion/Scenarios/FallOfRomeScenario/TurnsRemaining.lua
0258
if (Players[iPlayer]:GetJONSCulture() > 0) then
0259
local iDiv = Players[iPlayer]:GetJONSCulture() / 3;
0260
local iMod = Players[iPlayer]:GetJONSCulture() % 3;



The initial version of this page was created by the Civ5 API Bot, see the Civ5 API Reference FAQ. Some of the texts come from the 2kgames' wiki and most of code samples are copyrighted to Firaxis.
Functions' signatures were either copied from the 2kgames' wiki, or infered from the Lua source files and the binaries. Errors are possible.
Contributors may find help in the Contributors guide to the Civ5 API.