No gold & no science for a government

Contribute, display and discuss rulesets and modpacks for use in Freeciv here.
User avatar
Corbeau
Elite
Posts: 1039
Joined: Mon Jan 13, 2014 11:13 pm

No gold & no science for a government

Postby Corbeau » Sat Jan 19, 2019 7:52 pm

Under Anarchy there is no gold nor science gain from Trade. Is this a coded feature? I can't find it anywhere in the ruleset.

Wahazar
Hardened
Posts: 252
Joined: Mon Jul 02, 2018 1:49 pm

Re: No gold & no science for a government

Postby Wahazar » Sat Jan 19, 2019 9:23 pm

There is effect_max_rates_anarchy set to 100, but it must be hardcoded, that only luxury is produced.

Ignatus
Hardened
Posts: 230
Joined: Mon Nov 06, 2017 12:05 pm
Location: St.Petersburg, Russia
Contact:

Re: No gold & no science for a government

Postby Ignatus » Sat Jan 19, 2019 9:37 pm

Yes, it's hardcoded in common/city.c that the government governments.during_revolution spends 100% on luxuries (checked for 2.5 and 3.0). This parameter is set in governments.ruleset.

User avatar
Corbeau
Elite
Posts: 1039
Joined: Mon Jan 13, 2014 11:13 pm

Re: No gold & no science for a government

Postby Corbeau » Sat Jan 19, 2019 10:41 pm

Thanks.

Similar topic question so I won't open a new thread: if some (or all) cities are in revolt (more unhappy than happy citizens), does it in any way make it difficult or impossible to make a transition from Anarchy to a selected government if all conditions are met (enough turns have passed and government is available)?

Wahazar
Hardened
Posts: 252
Joined: Mon Jul 02, 2018 1:49 pm

Re: No gold & no science for a government

Postby Wahazar » Mon Jan 21, 2019 5:42 pm

Forcing revolts in a Anarchy is a bad idea, imagine poor country invaded and capital is taken - not only is broke apart, but you can't continue building anything including palace.
We have more subtle methods: Empire_Size_Base (set it 10 or smth) and Empire_Size_Step (propose 8 or smth) - small country would not suffer much from Anarchy, while big one can't abuse it.
Additionally you probably need to adjust Luxury Output_Bonus for Anarchy (-80 sound reasonable).

User avatar
Corbeau
Elite
Posts: 1039
Joined: Mon Jan 13, 2014 11:13 pm

Re: No gold & no science for a government

Postby Corbeau » Mon Jan 21, 2019 5:45 pm

Wahazar, this is a technical discussion about how to do something. Whether it should be done or not is discussed in another place ;) Among other things, because this other place lists other things that go along with the change.

Ignatus
Hardened
Posts: 230
Joined: Mon Nov 06, 2017 12:05 pm
Location: St.Petersburg, Russia
Contact:

Re: No gold & no science for a government

Postby Ignatus » Tue Jan 22, 2019 1:35 pm

As I can see from cityturn code, even if city disorder is set to cause a revolt during revolutionary government, the revolution length counter is not reset, and you probably can't revolt the turn revolution ended; but the code seems rather complicated and I am not sure.