Weird bombardment behaviour

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

Weird bombardment behaviour

Postby Corbeau » Wed Jan 15, 2020 9:58 am

So, this is the second quirk I have encountered.

The "Bombarder" flag should allow a unit to attack a neighbouring unit, give it some damage, NOT able to kill it, but in return not receive any damage.

The first quirk is a rumour: Battleships are able to baombard cities even without this flag. Can someone confirm this?

The second quirk I just confirmed. Cannon has a "Bombarder" flag and also has the ability to attack non-native tiles, namely, ships.

So my cannon just attacked a Destroyer and died in the attack. Which is directly in opposition to the "Bombarder" flag.

Does anyone have an explanation? Is this intended behaviour or a bug?

Wahazar
Elite
Posts: 321
Joined: Mon Jul 02, 2018 1:49 pm

Re: Weird bombardment behaviour

Postby Wahazar » Wed Jan 15, 2020 11:51 am

No idea about first issue, at least in 2.6 it works fine (direct attack without bombarder flag).
Second issue is hardcoded. Bombarder flag works only on land. Same with airplanes.
Augmented2 ruleset/modpack for freeciv2.6: viewtopic.php?f=11&t=91047

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

Re: Weird bombardment behaviour

Postby Corbeau » Wed Jan 15, 2020 1:15 pm

Wahazar wrote:Bombarder flag works only on land.

So if I give "Bombarder" flag to ships, they will still be attacking each other normally while at sea?

Wahazar
Elite
Posts: 321
Joined: Mon Jul 02, 2018 1:49 pm

Re: Weird bombardment behaviour

Postby Wahazar » Wed Jan 15, 2020 3:38 pm

Corbeau wrote:
Wahazar wrote:Bombarder flag works only on land.

So if I give "Bombarder" flag to ships, they will still be attacking each other normally while at sea?

Yes, it is a freeciv feature. Same with artillery with AttackNonNative+bombarder flag - it is bombarding objects on land, but directly attacking ships near coast. Check your own ruleset :)

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

Re: Weird bombardment behaviour

Postby Corbeau » Wed Jan 15, 2020 8:23 pm

Why? Does it say in the ruleset that NonNative attack is regular, and not bombardment??

Wahazar
Elite
Posts: 321
Joined: Mon Jul 02, 2018 1:49 pm

Re: Weird bombardment behaviour

Postby Wahazar » Wed Jan 15, 2020 10:41 pm

Corbeau wrote:Why? Does it say in the ruleset that NonNative attack is regular, and not bombardment??

It doesn't say, but it work as above. Just check your cannon vs ship.
Augmented2 ruleset/modpack for freeciv2.6: viewtopic.php?f=11&t=91047

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

Re: Weird bombardment behaviour

Postby Corbeau » Thu Jan 16, 2020 12:13 am

So, I notice this behaviour seeing a situation with the cannon and the ship and you answer by pointing at the situation with the cannon and the ship...

You're a funny guy.

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

Re: Weird bombardment behaviour

Postby Caedo » Thu Jan 16, 2020 7:40 am

Depending on your game version, this might still be hardcoded behavior (bombardment only against land), or it might be part of the respective action enabler (or both).
~S.C. L.

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

Re: Weird bombardment behaviour

Postby Ignatus » Thu Jan 16, 2020 8:11 pm

Corbeau wrote:The first quirk is a rumour: Battleships are able to baombard cities even without this flag. Can someone confirm this?

This is just a rumour. It comes from the so-called "coastal bombardment rule": if a unit attacks a non-native tile and the defender can't exist at the attacker's tile, both sides' firepower is set to 1. It has been named so before the bombardment attack was developed.

Hardcoded bombardment rules in 2.5, other then "Bombarder" flag, nonzero bombard rate, no actions forced primarily and general attack legality, are:
* target is not an empty city, or it is conquered/destroyed;
* target is not on sea, or the attack is regular;
* bombarder is not transported, or it just gives an excuse
(all three unhardcoded in 3.0, and ranged bombardment introduced).

nef
Hardened
Posts: 187
Joined: Mon Jun 25, 2018 5:01 pm

Re: Weird bombardment behaviour

Postby nef » Sun Jan 19, 2020 11:59 am