- 好友
- 2
- 在线时间
- 401 小时
- 最后登录
- 2021-5-18
见习骑士
- UID
- 142215
- 第纳尔
- 1021
- 精华
- 0
- 互助
- 13
- 荣誉
- 4
- 贡献
- 0
- 魅力
- 19
- 注册时间
- 2009-7-13
鲜花( 68) 鸡蛋( 0)
|
楼主 |
发表于 2020-4-19 11:52:32
|
显示全部楼层
本帖最后由 peren717 于 2020-4-19 11:56 编辑
public PolicyObject Initialize(TextObject name, TextObject description, TextObject logEntryDescription, TextObject secondaryEffects, float authoritarianWeight, float oligarchyWeight, float egalitarianWeight);
每个政策有三个属性,分别是zhuanzhi,寡头,和平等。每个家族都有自己的偏好。每个家族投票的时候会通过自己的偏好,然后计算这个政策对自己家族的利弊来投票。
公民大会的代码:
this.Policies.Add(this._policyCouncilOfTheCommons.Initialize(new TextObject("{=bMSI9Bt3}Council of the Commons", null), new TextObject("{=55CsWKbg}Some kingdoms, especially those that evolved from a city-state or a tribe, had popular assemblies that most of its members had the right to attend. Its powers were often limited, since it could only meet periodically, but it still gave the public the right to participate in government.", null), new TextObject("{=srByX06Y}letting all citizens meet and vote on some issues", null), new TextObject("{=UZ0mPm8b}Each notable yields 1 influence per day to the settlement's owner clan\nDaily militia production is increased by 1 per notable in the settlement", null), -0.5f, 0.1f, 0.7f));
可以看出公民大会的zhuanzhi倾向是负的,寡头是0.1,平等主义占了0.7。所以支持平等主义的家族更倾向于投票支持。
|
|