Sid Meier's Civilization V

Sid Meier's Civilization V

Touhou - Aran's Alice Civ
aranicar  [udvikler] 3. apr. 2016 kl. 20:23
Bugs / Typos
Feel free to add a bug or typo to this discussion. I don't have that much time to test the mod past one or two games on the latest version so any bugs / typos not noted here will probably never be fixed.
< >
Viser 1-4 af 4 kommentarer
ST 16. apr. 2016 kl. 3:28 
if you wanna give dummy policy, you should use this code

player:SetNumFreePolicies(1)
player:SetNumFreePolicies(0)

ex)
if player:GetCivilizationType() == dollCiv then
if not player:HasPolicy(dollPolicy) then
player:SetNumFreePolicies(1)
player:SetNumFreePolicies(0)
player:SetHasPolicy(dollPolicy, true)
--print("Set to DOLL")
end
else
if not player:HasPolicy(nonDollPolicy) then
player:SetNumFreePolicies(1)
player:SetNumFreePolicies(0)
player:SetHasPolicy(nonDollPolicy, true)
--print("Set to NONDOLL")
end
end
aranicar  [udvikler] 16. apr. 2016 kl. 8:04 
Oprindeligt skrevet af Liberty:
if you wanna give dummy policy, you should use this code

Is there a specific reason to use this method? Through my tests, just using the player.SetHasPolicy method would give that player the policy. It seems redundant to set the free policies to 1 then to 0 when we grant the policy, especially when we still grant them the policy when free policies = 0.
ST 16. apr. 2016 kl. 17:00 
originally quick speed first policy cost is 15
but if this code doesn't exist, first policy cost will increase to 20
aranicar  [udvikler] 17. apr. 2016 kl. 8:35 
That's interesting how SetHasPolicy also adds one to the number of total policies, it has been fixed. Thanks!
< >
Viser 1-4 af 4 kommentarer
Per side: 1530 50