Skip to content

Commit

Permalink
Fix policy reminder popup with the future tech
Browse files Browse the repository at this point in the history
The policy reminder popup is no longer shown if the completed civic is Future Tech. Closes #274
  • Loading branch information
Azurency committed Feb 3, 2018
1 parent 4e06f2f commit b3b8b12
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Assets/UI/actionpanel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -476,9 +476,12 @@ function CQUI_CheckPolicyCanBeChanged()
if CQUI_PolicyReminderClosed or not CQUI_ShowPolicyReminder then
return false
end

-- AURENCY : get the Index of the future tech
local futureCivicIndex = GameInfo["Civics"]["CIVIC_FUTURE_CIVIC"].Index

local PRD:table = pPlayer:GetCulture()
if(PRD:CivicCompletedThisTurn() and not PRD:PolicyChangeMade()) then
if(PRD:CivicCompletedThisTurn() and PRD:GetCivicCompletedThisTurn() ~= futureCivicIndex and not PRD:PolicyChangeMade()) then
return true
end
return false
Expand Down

0 comments on commit b3b8b12

Please sign in to comment.