Q: Several cities building a unique unit?

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

Q: Several cities building a unique unit?

Post by Corbeau »

Clarification needed. Suppose we have a unique unit and it is in action. Can other cities even start producing it while there is one active, or do you get some kind of message "can't build, got one in circulation already"?

If cities *can* produce it (but not finish), is there any mechanism in place to prevent abuse due to massive accumulation of shields?
--
* Freeciv LongTurn, a community of one-turn-per-day players and developers
* LongTurn Blog - information nexus with stuff and stuff and stuff
* Longturn Discord server; real-time chatting, discussing, quarrelling, trolling, gaslighting...
cazfi
Elite
Posts: 3077
Joined: Tue Jan 29, 2013 6:54 pm

Re: Q: Several cities building a unique unit?

Post by cazfi »

What kind of abuse you are thinking? This is far from the only way one can get shields saved instead of investing them.
User avatar
Corbeau
Elite
Posts: 1291
Joined: Mon Jan 13, 2014 11:13 pm

Re: Q: Several cities building a unique unit?

Post by Corbeau »

I can't really think of any other apart from building a very expensive wonder or continuing to build one that was already built, and for units, that would mean losing half the shields. But this one can be done anytime, anywhere, in multiple cities.
--
* Freeciv LongTurn, a community of one-turn-per-day players and developers
* LongTurn Blog - information nexus with stuff and stuff and stuff
* Longturn Discord server; real-time chatting, discussing, quarrelling, trolling, gaslighting...
Ignatus
Elite
Posts: 644
Joined: Mon Nov 06, 2017 12:05 pm
Location: St.Petersburg, Russia
Contact:

Re: Q: Several cities building a unique unit?

Post by Ignatus »

For small cities a usual way is building a settler; you can leave them in early game undefended and cheaply genetate a defender if an enemy approaches.

Probably, there should be shields fine for constructing the impossible analogous to food fine for inability to grow.

Added: sorted out the code: starting producing an unique unit if player has one is prohibited in can_player_build_unit_direct() in unittools.c (later used in city.c and cityturn.c), but player not having one can start multiple productions and finish one of them, and the others will then accumulate unit shields. This is possible in a similar way to accumulating wonder shields (described above) and building shields (like, you start build Bank and then sell the Marketplace).
Post Reply