Question: Different defence bonuses for units?

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

Question: Different defence bonuses for units?

Postby Corbeau » Tue Jul 24, 2018 10:26 am

Asking for v2.5.

Is it possible to define different bonuses for different terrains for different units?For example, I want Marines to have bigger defence bonus than, say, Riflemen.

Also, is it possible to define differentdefence bonuses AGAINST different units? For example, when infantry is defending against armour in the forest, to give it bigger defence bonus than if it's defending against another infantry.

User avatar
Caedo
Elite
Posts: 463
Joined: Sun Feb 10, 2013 10:21 pm
Location: Stuttgart, Germany

Re: Question: Different defence bonuses for units?

Postby Caedo » Sat Jul 28, 2018 2:17 pm

Short answer: no.

Long answer: no to the first question (the functionality simply doesn't exist). As for the second question, the Defend_Bonus effects (which are usually used for City Walls etc.) can depend both on the terrain of the defender, as well as the attacking unit's type, class or flags; however, it cannot depend on the defending unit. So you could make armor weaker when attacking forests in general, but not specifically when attacking infantry.
~S.C. L.

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

Re: Question: Different defence bonuses for units?

Postby Corbeau » Sat Jul 28, 2018 8:15 pm

Hm, that may also work well.

User avatar
vodot
Veteran
Posts: 79
Joined: Thu May 17, 2018 4:54 pm

Re: Question: Different defence bonuses for units?

Postby vodot » Sun Jul 29, 2018 4:06 am

it's fun to see you two replying to each other in the same thread, I get your names confused :p

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

Re: Question: Different defence bonuses for units?

Postby Corbeau » Sun Jul 29, 2018 11:26 am

I thought you were supposed to discover Alphabet early in the game.

User avatar
vodot
Veteran
Posts: 79
Joined: Thu May 17, 2018 4:54 pm

Re: Question: Different defence bonuses for units?

Postby vodot » Mon Jul 30, 2018 3:21 am

I play ancients; alphabet is a long way off :lol: