mimo
05195d0692
apply leaveFoundation to enemies when under ceaseFire, fixes #3667 , patch by Sandarac
...
This was SVN commit r18488.
2016-07-05 17:13:35 +00:00
elexis
437cc13b95
Make charge attack unavailable from the simulation.
...
The order change to GetAttackTypes in a09c59e044 revealed that it was
only the GUI not triggering the buggy code.
Eliminate for-each of UnitAI calling that function.
This was SVN commit r18481.
2016-07-03 20:41:03 +00:00
mimo
04123e7725
some cleanup, reported by leper
...
This was SVN commit r18325.
2016-06-04 12:43:02 +00:00
mimo
ab4c656ff6
make healer more proactive, patch by causative, fixes #3932
...
decrease a bit the increase of heal range with techs, and also decrease
a bit the cost of such techs
This was SVN commit r18280.
2016-06-01 17:59:06 +00:00
mimo
0856dde011
fix a typo in 58e356babb, plus a missing semicolon
...
This was SVN commit r18234.
2016-05-26 17:58:08 +00:00
elexis
4b5f8dfca6
Remove trailing whitespace and simplify some length checks. Refs #252 .
...
This was SVN commit r18214.
2016-05-21 16:20:27 +00:00
mimo
6dbdaf1160
fix 58e356babb
...
This was SVN commit r18174.
2016-05-14 18:25:35 +00:00
mimo
58e356babb
allow trade with mirage markets, fixes #3894
...
This was SVN commit r18172.
2016-05-14 12:27:48 +00:00
mimo
b5ff5a6969
make the force explicit such that the previous order is recorded in the workOrders
...
This was SVN commit r18015.
2016-04-10 16:41:00 +00:00
Itms
e8decfbd2b
Amend fdf7dabe18: the foundation component won't exist for a mirage (foundation inside the fog-of-war) so the miraged interface to it should be queried.
...
Fixes #3849 .
This was SVN commit r17949.
2016-03-24 21:48:15 +00:00
mimo
81948477df
fix the test when changing markets, fixes #3838
...
This was SVN commit r17918.
2016-03-20 14:00:49 +00:00
mimo
028e573759
allow the use of allied dropsites using tech, fixes #3791
...
This was SVN commit r17875.
2016-03-13 13:33:21 +00:00
mimo
212d8e7dd0
cleanup of 98b4fe6d00
...
This was SVN commit r17856.
2016-03-09 21:45:14 +00:00
mimo
98b4fe6d00
fixes confusion between markets when doing trade, fixes #3812 , patch by leper and fatherbushido
...
This was SVN commit r17854.
2016-03-09 19:54:12 +00:00
mimo
652ec4f8e5
fix some resetting of gatherer walk animation
...
This was SVN commit r17802.
2016-02-24 18:57:23 +00:00
mimo
ec43274e2b
drop carried resources when finishing to build a dropsite
...
This was SVN commit r17801.
2016-02-24 18:49:28 +00:00
mimo
05cf535c58
do not drop resources when garrisoning in allied structure
...
This was SVN commit r17800.
2016-02-24 17:45:13 +00:00
elexis
97c3a166a8
Don't shoot an undocumented arrow from UnitAI if the entity also has a BuildingAI component shooting arrows. Fixes #3763 .
...
Instead, add the arrow to the affected unit templates (except bireme and
trireme, refs #3196 ).
This was SVN commit r17784.
2016-02-22 17:01:16 +00:00
mimo
fdf7dabe18
check that the target can be built or repaired inside the canRepair function
...
This was SVN commit r17685.
2016-01-21 20:49:57 +00:00
leper
cf7b8329fb
Use var instead of let, since this variable is defined with var in this function already.
...
This was SVN commit r17540.
2015-12-22 20:43:17 +00:00
mimo
0dda3b579c
drop resources before switching to next queued order, fixes #1670
...
This was SVN commit r17521.
2015-12-20 21:30:34 +00:00
mimo
423d26890a
fix cases where changes in unitai orders were not transmitted to the ai
...
This was SVN commit r17519.
2015-12-20 21:07:47 +00:00
leper
abd7b78b02
Return the boolean test instead of having an if-return return.
...
This was SVN commit r17394.
2015-12-06 20:51:30 +00:00
mimo
9f75b78a84
fix nearGatherPosition, fixes #3658
...
This was SVN commit r17322.
2015-11-29 14:43:28 +00:00
mimo
ca3828f9ac
some simulation cleanup
...
This was SVN commit r17308.
2015-11-28 11:43:14 +00:00
mimo
0d1b595fa0
fix UnitAI state, fix #3630
...
This was SVN commit r17304.
2015-11-28 11:09:29 +00:00
mimo
83191580c0
cleanup of 34fd23e920 to make l.... happy
...
This was SVN commit r17277.
2015-11-16 18:59:10 +00:00
mimo
34fd23e920
optimize the finding of new target (no changes on the output) when lots of units involved, fixes #3605
...
This was SVN commit r17264.
2015-11-15 13:19:21 +00:00
wraitii
1694913b16
Make "no formation" the default setting but keep formations activated to help pathfinding in A19. Use at your own risk. Refs #3505 and #3565 .
...
Also make rabbit, chicken and shark no longer obstruct movement, to
further help with pathfinding. These may or may not be udpated later.
Refs #3562 . Fixes #3497 .
This was SVN commit r17166.
2015-11-01 17:10:19 +00:00
mimo
32dafe707d
cleanup and simplification of 38af159598, fixes #3519
...
This was SVN commit r17130.
2015-10-12 17:12:36 +00:00
mimo
412779684c
improves 38af159598
...
This was SVN commit r17113.
2015-10-09 18:14:53 +00:00
mimo
38af159598
fix UnitAI state of turrets, fix #3481
...
This was SVN commit r17111.
2015-10-08 21:59:52 +00:00
mimo
ef4a1e261c
fix standGround units not attacking, patch by karamel, fixes #3284
...
This was SVN commit r17109.
2015-10-08 20:48:05 +00:00
mimo
03b00b0041
revert d5c758eef3 and better fix of #3430 , fixes #3466
...
This was SVN commit r17108.
2015-10-06 20:59:13 +00:00
mimo
86d81c5baa
fix attackAsFormation of special formations, fixes #3086
...
This was SVN commit r17106.
2015-10-05 20:40:14 +00:00
mimo
d5c758eef3
change immediately to IDLE state when no more orders, fixes #3430
...
This was SVN commit r17086.
2015-09-27 17:32:55 +00:00
mimo
a7e0dc1534
update attack and heal range queries, patch by leper, fixes #3080
...
This was SVN commit r17082.
2015-09-27 12:23:40 +00:00
mimo
1f5bb8d62e
fix some flaws revealed by the fix #3430
...
This was SVN commit r17079.
2015-09-26 21:41:35 +00:00
mimo
82f3ee7384
fix typo in previous commit
...
This was SVN commit r17076.
2015-09-24 21:57:43 +00:00
mimo
037fe8282e
fix initialization of this.oldAttackType used for resetting the attack anims, fix #3221
...
This was SVN commit r17075.
2015-09-24 21:55:09 +00:00
mimo
14aaa7c640
add some missing semicolon
...
This was SVN commit r17059.
2015-09-21 21:08:58 +00:00
mimo
0b86bbd424
another bunch of cleanup (mainly missing semicolon) signaled by jshint
...
This was SVN commit r17045.
2015-09-19 12:50:48 +00:00
Itms
0c043b5bdb
Fix edge case in the UnitAI state machine. Fixes #3429 .
...
This was SVN commit r17036.
2015-09-18 17:07:32 +00:00
Itms
b77ad821c2
Reenable formations and fix/improve the communication between UnitAI and UnitMotion. With the new pathfinder some path requests can be completed instantaneously, so UnitAI has to handle MoveStarted messages even in the IDLE state.
...
Please note that this commit makes #3410 really visible. Formation
members might pass through buildings.
Refs #3410 , #3337 .
This was SVN commit r17028.
2015-09-17 16:31:23 +00:00
mimo
00a51404c9
cleanup of some for ... in loops on arrays (replaced by for ... of)
...
This was SVN commit r16996.
2015-09-09 18:21:17 +00:00
Itms
0c4c6e499d
Fix the LeaveFoundation order in UnitAI in the case of animals. The code used was a hack using the fleeing tactics, so use the regular "Order.LeaveFoundation" code shared with non-animal units.
...
Fixes #3372
This was SVN commit r16973.
2015-09-02 17:36:20 +00:00
mimo
025391db35
fix behavior when under alert, fixes #3273
...
This was SVN commit r16968.
2015-08-31 19:54:06 +00:00
leper
a67b3b8942
UnitAI cleanup. Setup*RangeQuery. Refs #3080 .
...
Do not create range queries when being destructed.
rangeMan -> cmpRangeManager.
This was SVN commit r16952.
2015-08-29 22:49:52 +00:00
leper
6f0850f6bc
Improve UnitAI's FindNearby* functions.
...
Stop them from starting a range query in case we have no ownership (or
-1).
Make use of Array.find() to make them a bit nicer.
This was SVN commit r16950.
2015-08-29 22:49:46 +00:00
leper
31113cb8c3
UnitAI cleanup.
...
Use Array.{some,every,forEach,find} to simplify existing code.
Also make use of some fat arrow functions.
Some code style fixes.
Let FindNewHealTargets call RespondToHealableEntities to remove code
duplication.
This was SVN commit r16949.
2015-08-29 22:49:44 +00:00