Opened 8 years ago
Last modified 4 months ago
#4000 new defect
Don't use BuildingAI for ships — at Initial Version
Reported by: | elexis | Owned by: | |
---|---|---|---|
Priority: | Must Have | Milestone: | Backlog |
Component: | Simulation | Keywords: | beta |
Cc: | b.jansen5@… | Patch: |
Description
Since ships were introduced they used BuildingAI
to shoot arrows when being garrisoned and use UnitAI
to have a stance, move around and get into attack range.
This resulted in inconsistencies like 1 arrow being shot from UnitAI
and N arrows being shot from BuildingAI
.
The code to determine the number of garrisoned arrows should be refactored so that both buildings and ships can call the same methods to shoot arrows without ships using BuildingAI logic to f.e. check for enemies in range.
Note:
See TracTickets
for help on using tickets.