#4194 closed defect (fixed)
Missing PreferredClasses
Reported by: | elexis | Owned by: | fatherbushido |
---|---|---|---|
Priority: | Must Have | Milestone: | Alpha 21 |
Component: | UI & Simulation | Keywords: | simple, patch |
Cc: | fatherbushido | Patch: |
Description
Many unit templates, especially champions have no PreferredClasses
entry. Thus they attack buildings, if they are closer than soldiers. But since nearly all champion types aren't suited to destroy buildings, the entry should be added.
Attachments (2)
Change History (18)
comment:1 by , 8 years ago
Keywords: | patch review added |
---|---|
Milestone: | Backlog → Alpha 21 |
by , 8 years ago
Attachment: | prefclasses.diff added |
---|
by , 8 years ago
Attachment: | prefclasses.2.diff added |
---|
comment:3 by , 8 years ago
It doesn't appear in the patch but for unit_infantry_melee_swordsman it's Human Siege (by tokens concatenation).
comment:6 by , 8 years ago
Any reason why you've not inverted the order of the preferred classes? I would have expected ships to target primarily enemy ships rather than land units when both are in range.
comment:7 by , 8 years ago
Well, garrisoning catapults on a quinquereme makes it highly useful against buildings, but from an economic point triremes garrisoned with 10 men are more efficient in sea battle. The given order means that fighting near an enemy shoreline, the quinquereme will wipe out the towers, walls and forts while the trireme ships kill the human attackers and ships, see also r18427.
Another reason why quinquereme ships are not good in naval battles is that they have a very slow repeat rate (one shot every 5 seconds), a very long range, thus a high chance of missing the target. This means if one wants to wipeout the shoreline, enemy ships can undermine the attack more easily.
comment:8 by , 8 years ago
I was talking about land units, not structures. I understand for quinquereme, but what about bireme and trireme? A ship should first counter its more dangereous enemies, which are the other ships and not land units (specially if melee units). In addition, they should protect the quinquereme from being attack by other ships rather than trying to kill a few land units.
comment:9 by , 8 years ago
Land units are easy kills, it gets a lot of loot. Usually these units die off within seconds or the enemy pay enough attention to immediately retreat them from the attack.
comment:10 by , 8 years ago
If i have a fully garrisoned ship, it has a very high value, and i would not like to loose it because it has used a big part of its arrows to kill a few land units while an enemy ship was targeting it with all its arrows. The final solution will be to remove this BuildingAI arrows for ships (there is a ticket about it), but in the meantime, i think that making "kamikaze" ships with priority to kill a few units instead of assuring their own safety is forcing the players to a certain kind of fight he does not necessarily want (and usually not my way of playing).
comment:11 by , 8 years ago
Feel free to change the order. Similarly, there are some swordsmen with "Human Siege" and others with "Siege Human".
follow-up: 15 comment:12 by , 8 years ago
It is less important for standard units ruled by UnitAI, as when attacked, UnitAI will make them retaliate independantly of the preferredClasses (So I would rather put "Siege Human" there). But ships are ruled by BuildingAI!
comment:14 by , 8 years ago
Keywords: | review removed |
---|
comment:15 by , 8 years ago
Replying to mimo:
ships are ruled by BuildingAI!
Indeed fail (I just noticed yesterday that a catapult ship decided to attack random moving animals on the shoreline rather than the dock and storehouse in that area, annihilating the purpose of the ship). So our commits don't have an effect on the game besides becoming relevant in case BuildingAI is rewritten.
From http://www.ancient.eu/Carthaginian_Naval_Warfare/
Catapults could be mounted on the deck of these large vessels but were probably limited to siege warfare and not used in ship-to-ship battles
But I agree that ships should be targetted before buildings. (Perhaps we can even prefer military buildings and docks over other buildings like storehouses and houses.)
let ship without pref classes