airlift between team nations

What would you like to see in Freeciv? Do you have a good idea what should be improved or how?
Post Reply
Dino the Dinosore
Hardened
Posts: 171
Joined: Sun Dec 31, 2017 3:41 am

airlift between team nations

Post by Dino the Dinosore »

In 3.0 you can airlift to/from allies, if airliftingstyle allows it. But team nations can't ally. Would like to be able to airlift to/from team nations.
cazfi
Elite
Posts: 3069
Joined: Tue Jan 29, 2013 6:54 pm

Re: airlift between team nations

Post by cazfi »

Dino the Dinosore wrote:But team nations can't ally.
They are considered always allied.
Dino the Dinosore
Hardened
Posts: 171
Joined: Sun Dec 31, 2017 3:41 am

Re: airlift between team nations

Post by Dino the Dinosore »

Tried it again and it worked - dunno why it didn't before.

Tangent - "DiplRel" req has separate values for "Alliance" and "Team", which means you have to have annoying almost duplicated action enablers. If teams are always considered allied, should be no need for the separate value "Team".
Ignatus
Elite
Posts: 644
Joined: Mon Nov 06, 2017 12:05 pm
Location: St.Petersburg, Russia
Contact:

Re: airlift between team nations

Post by Ignatus »

Dino the Dinosore wrote:Tangent - "DiplRel" req has separate values for "Alliance" and "Team", which means you have to have annoying almost duplicated action enablers. If teams are always considered allied, should be no need for the separate value "Team".
But in a game where there are present both teams and alliances you may allow teams some more options than you give to alliances. And any req set for "Alliance" will also work for any teamed nations unless coupled with a negative req of "Team" range (so, Player<Team<Alliance<World).
Dino the Dinosore
Hardened
Posts: 171
Joined: Sun Dec 31, 2017 3:41 am

Re: airlift between team nations

Post by Dino the Dinosore »

Thanks, I didn't know that. So I don't need to have semi-duplicate action enablers like this -

Code: Select all

[actionenabler_017]
action="Help Wonder"
actor_reqs={"type","name","range","present"
"UnitFlag","HelpWonder","Local",TRUE
"DiplRel","Alliance","Local",TRUE
}
target_reqs={"type","name","range"
"BuildingGenus","GreatWonder","Local"
}
[actionenabler_0017]
action="Help Wonder"
actor_reqs={"type","name","range","present"
"UnitFlag","HelpWonder","Local",TRUE
"DiplRel","Team","Local",TRUE
}
target_reqs={"type","name","range"
"BuildingGenus","GreatWonder","Local"
}
and only the "Alliance" one is needed?
Ignatus
Elite
Posts: 644
Joined: Mon Nov 06, 2017 12:05 pm
Location: St.Petersburg, Russia
Contact:

Re: airlift between team nations

Post by Ignatus »

Likely so.
Dino the Dinosore
Hardened
Posts: 171
Joined: Sun Dec 31, 2017 3:41 am

Re: airlift between team nations

Post by Dino the Dinosore »

Tested and found that you do need both action enablers. So "DiplRel" req value of "Alliance" isn't true for teams. Is it worth filing an enhancement request ticket?
Ignatus
Elite
Posts: 644
Joined: Mon Nov 06, 2017 12:05 pm
Location: St.Petersburg, Russia
Contact:

Re: airlift between team nations

Post by Ignatus »

Dino the Dinosore wrote:Tested and found that you do need both action enablers. So "DiplRel" req value of "Alliance" isn't true for teams. Is it worth filing an enhancement request ticket?
Ah, sorry, I made a mistake. "Team" is a subset of "Alliance" as a range of requirements (of any kind, not necessary "DiplRel"). The "name" component of "DiplRel" requirement does not act this way but makes the requirement fulfilled for a given pair of players (set of such pairs depends on the requirements' range) for exactly this diplomatic relation. Probably, nothing to fix here.
Post Reply