Sid Meier's Civilization V

Sid Meier's Civilization V

Touhou - Aran's Alice Civ
aranicar  [开发者] 2016 年 4 月 3 日 下午 8: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.
< >
正在显示第 1 - 4 条,共 4 条留言
ST 2016 年 4 月 16 日 上午 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  [开发者] 2016 年 4 月 16 日 上午 8:04 
引用自 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 2016 年 4 月 16 日 下午 5:00 
originally quick speed first policy cost is 15
but if this code doesn't exist, first policy cost will increase to 20
aranicar  [开发者] 2016 年 4 月 17 日 上午 8:35 
That's interesting how SetHasPolicy also adds one to the number of total policies, it has been fixed. Thanks!
< >
正在显示第 1 - 4 条,共 4 条留言
每页显示数: 1530 50