elexis
ebfd214a19
Return Infinity instead of undefined in BuildingAI.GetMaxArrowCount. Refs #3196 , #3846 and 82fa9d8f5b.
...
Notice the previous check `if (count > this.GetMaxArrowCount())`
implicitly relied on
numerical comparisons returning false if one of the two arguments is
undefined.
This was SVN commit r17944.
2016-03-24 13:25:47 +00:00
sanderd17
82fa9d8f5b
Fix counting issue with previous commit
...
This was SVN commit r17939.
2016-03-23 10:01:27 +00:00
sanderd17
63d276b73b
Fix counting of arrows in buildings: don't remove entities twice from the garrisonholder. Fixes #3846
...
This was SVN commit r17938.
2016-03-23 09:04:02 +00:00
Itms
d84ad7799a
Limit arrows on certain buildings and ships. Patch by sanderd17, fixes #3196 .
...
Balancing by elexis, reverts fcf7344537 in favor of the new total arrow
limit.
This was SVN commit r17882.
2016-03-13 17:02:18 +00:00
elexis
b68654b52d
Inlining this is not possible due to the closure.
...
This was SVN commit r17785.
2016-02-22 17:23:46 +00:00
elexis
94ccb153a6
BuildingAI style fixes, refs #3763 .
...
Remove a duplicate targetUnits-, some useless length-checks and unneeded
comments.
This was SVN commit r17783.
2016-02-22 16:44:57 +00:00
leper
e4834e8a0d
Some JS component cleanup.
...
This was SVN commit r17301.
2015-11-28 08:27:38 +00:00
leper
870237cce4
Do not create range queries in case we aren't at war with anyone. Fixes #3382 .
...
This was SVN commit r16957.
2015-08-30 02:49:49 +00:00
sanderd17
604538a63a
Fix issue with preferences in BuildingAI. Refs #1731
...
This was SVN commit r16580.
2015-04-26 08:21:43 +00:00
sanderd17
4d1dee171e
Explicitely add the UnitAI target to the BuildingAI target list to circumvent the range mismatch. Refs #1731
...
This was SVN commit r16577.
2015-04-25 12:54:34 +00:00
sanderd17
8712ad835c
Fix buildingAI in case of modifications (techs, auras, ownership changes, ...) + clean up the code a bit
...
This was SVN commit r16472.
2015-03-30 09:25:20 +00:00
Itms
1564a10120
Move back the computation of most of the visibilities from JS to engine, to improve performance.
...
Also fix the remaining TODO left by #958 , as a use case of the scripted
Visibility component.
Refs #2913 , #958 .
This was SVN commit r16248.
2015-01-30 15:28:06 +00:00
Itms
f7e591c9f2
Hide changes to buildings in the fog-of-war.
...
To achieve this, mirage entities are created per player, to replace the
real entities when these ones fall into the fog-of-war. These mirage
entities are created on-the-fly, and destroyed when they get back in
sight.
This depends heavily on the VisibilityChanged message added in
2174eaaeee .
As a temporary adjustment, territories do not explore the map anymore
when their borders change. See #2709 .
Fixes #599
This was SVN commit r15612.
2014-08-04 22:49:19 +00:00
leper
a96a333b47
Small cleanup.
...
This was SVN commit r14274.
2013-12-03 01:01:12 +00:00
sanderd17
f3968c0d4c
fix some flaws in the preferred classes. Patch by Jammus, Fixes #1985
...
This was SVN commit r14011.
2013-10-16 19:08:01 +00:00
sanderd17
5f5eedc513
Rename technology related files, methods and messages so their names represent the shared data flow between technologies and auras (and maybe future components). Implement the C++ part of auras through these generalised files. Fixes #2154
...
This was SVN commit r14001.
2013-10-15 10:05:08 +00:00
sanderd17
87753bf3fd
forgot to commit extra change for 508cc0d4c7
...
This was SVN commit r13824.
2013-09-11 18:59:51 +00:00
sanderd17
508cc0d4c7
Add preferred classes to BuildingAI. Patch by jammus. Fixes #1985
...
This was SVN commit r13823.
2013-09-11 17:50:49 +00:00
sanderd17
fe0ec1c720
fix coding style for buildingAI. Refs #2010
...
This was SVN commit r13671.
2013-08-16 12:17:18 +00:00
sanderd17
fd2245c53c
Improved building AI. Refs #2010
...
This was SVN commit r13670.
2013-08-16 11:17:36 +00:00
alpha123
8c74df2acd
Give an elevation advantage to ranged units. Patch by sanderd17. Fix #1960 .
...
This was SVN commit r13626.
2013-08-03 19:20:20 +00:00
quantumstate
5caddcdd20
Make technology code cleaner with helper functions. Refs #1692 .
...
This was SVN commit r13056.
2013-01-08 00:00:21 +00:00
leper
18b532a195
Remove current targets when changing ownership. Fixes #1794 .
...
This was SVN commit r13014.
2012-12-23 20:03:00 +00:00
leper
a0e13d9625
Fix tests. BuildingAI now handles DiplomacyChanged messages.
...
This was SVN commit r12812.
2012-11-02 17:20:32 +00:00
Deiz
66012e2e2c
Destroy dying 'remain' entities and replace them with visually-identical resources. Fixes #1600 .
...
This was SVN commit r12486.
2012-08-20 01:38:39 +00:00
Deiz
1120701351
Substantially rework how Gaia is handled by UnitAI, BuildingAI. Dangerous animals and combat units will be attacked like regular enemies.
...
This was SVN commit r12317.
2012-08-08 05:32:53 +00:00
historic_bruno
0463068947
Adds more checks for tech manager before using it. Refs #1377 .
...
This was SVN commit r11751.
2012-05-04 22:51:14 +00:00
historic_bruno
21caaa4573
Fixes some bugs in tech modifications relating to data types. Explicitly convert template data to numbers before calling ApplyModifications (using + operator).
...
This was SVN commit r11685.
2012-04-27 23:06:40 +00:00
leper
eda4c082fd
Add tech support to BuildingAI, GarrisonHolder and Builder.
...
This was SVN commit r11682.
2012-04-26 21:58:05 +00:00
leper
46bf2cac22
Fix remaining issue
...
This was SVN commit r11539.
2012-04-17 21:05:01 +00:00
Ykkrosh
1771545a3b
Stop BuildingAI picking up messages for other components' range queries
...
This was SVN commit r9782.
2011-07-07 23:07:36 +00:00
historic_bruno
4d188452f8
Adds ownership checks to UI selections.
...
Adds ownership and diplomacy checks to Commands.js (fixes #880 ).
Adds control all units setting to Player component (network synced).
Adds helpers for diplomacy checks - use these instead of directly
accessing diplomacy array.
Fixes tests according to these changes.
This was SVN commit r9726.
2011-07-02 00:06:39 +00:00
evanssthomas
fe5c7cb978
Buildings now target units randomly. Firing interval also made random
...
This was SVN commit r8677.
2010-11-21 18:41:13 +00:00
evanssthomas
f1f1a44031
Made changes to BuildingAI based on Philip's comments
...
This was SVN commit r8639.
2010-11-17 18:25:00 +00:00
evanssthomas
222095fa44
Added Building AI, and some small changes to GarrisonHolder
...
This was SVN commit r8636.
2010-11-17 07:30:25 +00:00