2102648f7c
Allows autogarrison of newly trained units, fixes #1044
...
This was SVN commit r14144.
2013-11-11 15:37:16 +00:00
3a278df3f7
Move ship to shoreline when tasking units to garrison inside, fixes #1391
...
This was SVN commit r14115.
2013-11-08 23:22:59 +00:00
e0161bd355
small code style fix
...
This was SVN commit r14075.
2013-11-03 13:15:44 +00:00
6dca6910c3
Recursively count garrisoned units to avoid overcapacity
...
This was SVN commit r14074.
2013-11-03 13:13:30 +00:00
3173722099
Copy this.entites in GarrisonHolder before passing and modifying it. Patch by mimo. Fixes #2238 .
...
This was SVN commit r14049.
2013-10-27 16:37:51 +00:00
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
379a7b208f
Implement the js side of auras. Refs #2048 . Patch with the help of Alpha123. Only the temple aura is added as example, all other aura components are removed from the templates to be created from scratch again.
...
This was SVN commit r13998.
2013-10-14 15:51:21 +00:00
5afb18dda4
fix units ejecting on destroying structure
...
This was SVN commit r13887.
2013-09-21 19:41:13 +00:00
9eedd22b9a
fix garrisoned units count for some special cases. Refs #2096 . Patch by mimo
...
This was SVN commit r13857.
2013-09-15 16:47:40 +00:00
c3f7a929e0
better garrison flag handling. Refs #2096 .
...
This was SVN commit r13815.
2013-09-09 18:27:20 +00:00
f051426a76
fix garrisonHolder flags when units are ejected
...
This was SVN commit r13812.
2013-09-08 19:51:16 +00:00
08514f68be
small clean up of GarrisonHolder code
...
This was SVN commit r13811.
2013-09-08 18:46:29 +00:00
d1a376fd06
fix ejection of garrisoned units on resign. Fix ejection or killing on ownership and deplomacy changes. Patch by mimo. Fixes #2096
...
This was SVN commit r13810.
2013-09-08 16:02:41 +00:00
0c16980408
Fix tests.
...
This was SVN commit r13709.
2013-08-19 10:55:35 +00:00
557c1fc067
fix (dis)allowing of garrisoning by other components. Refs #2067
...
This was SVN commit r13697.
2013-08-18 08:23:36 +00:00
a18262e7b1
Make planes about 20% cooler. Fixes #2067 .
...
This was SVN commit r13694.
2013-08-17 22:55:16 +00:00
b5888f4e45
generalise kill vs eject garrisoned entities on death of garrisonHolder
...
This was SVN commit r13676.
2013-08-17 09:26:17 +00:00
fd2245c53c
Improved building AI. Refs #2010
...
This was SVN commit r13670.
2013-08-16 11:17:36 +00:00
2ea7fb18ea
Backport c011875c5a
to the older APIs and allow for empty buildable entites token list.
...
This was SVN commit r13569.
2013-07-16 21:22:05 +00:00
623f5d9a9f
Small garrison code clean-up
...
This was SVN commit r13505.
2013-06-26 19:24:56 +00:00
9ea830c855
Handle empty token list gracefully.
...
This was SVN commit r13477.
2013-06-14 16:13:59 +00:00
4356badfa9
Pause production if the producing entity is garrisoned. Fixes #1931 .
...
This was SVN commit r13414.
2013-05-21 23:01:53 +00:00
d0a695f7fb
Allow mutual allies to garrison in each others buildings. Patch by mimo. Fixes #1807 .
...
This was SVN commit r13357.
2013-04-14 00:34:14 +00:00
5caddcdd20
Make technology code cleaner with helper functions. Refs #1692 .
...
This was SVN commit r13056.
2013-01-08 00:00:21 +00:00
8bd54eef71
Handle nested garrison holder death properly.
...
This was SVN commit r12672.
2012-09-13 22:47:47 +00:00
7d8ef7a2ef
Add support for non-integer GarrisonHolder regen rates; round health up in the GUI. Refs #1633 .
...
This was SVN commit r12651.
2012-09-09 00:52:10 +00:00
78e9fecf92
Added support for ungarrisoning units by template name and for ungarrisoning from multiple entities at once. Fixes #910 .
...
This was SVN commit r12443.
2012-08-16 01:15:04 +00:00
137b6dd338
Queued orders for rally points. Fixes #1053 and #1211 .
...
This was SVN commit r11909.
2012-05-24 18:25:31 +00:00
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
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
eda4c082fd
Add tech support to BuildingAI, GarrisonHolder and Builder.
...
This was SVN commit r11682.
2012-04-26 21:58:05 +00:00
c56f96040e
Implement healing. Fixes #999 .
...
This was SVN commit r11536.
2012-04-17 20:22:13 +00:00
4b7a5ac814
Allows garrison heal rate of "0" (disables healing).
...
This was SVN commit r11296.
2012-03-10 04:08:15 +00:00
d1ed264c9b
Fixes stance change during garrison causing instant garrison. Fixes #1184 .
...
Adds range check to garrisoning, with <LoadingRange> element added to
GarrisonHolder. Adds maximum range values to templates (2 for land
units/structures, 10 for ships).
Adds retry to garrison failure due to unreachable target.
Cleans up a few templates.
This was SVN commit r11292.
2012-03-09 23:33:55 +00:00
acf63afeaa
Fix some whitespace, and spelling, and capitalisation, and unnecessary array wrapping.
...
This was SVN commit r11218.
2012-03-01 23:16:01 +00:00
bc76b0568e
Fix healing for garrisoned units. Fixes #1098 .
...
This was SVN commit r10882.
2012-01-07 07:13:27 +00:00
42f0aec84a
Allows setting rally points on resources and buildings. closes #745
...
This was SVN commit r10744.
2011-12-16 16:08:26 +00:00
5ae93ddae7
Makes AIProxy keep the garrisoned units array up to date. Fixes #1019
...
This was SVN commit r10531.
2011-11-13 23:23:58 +00:00
81191a6ea7
Fixes garrisoned units disappearing when eject occurs too frequently. See #910 .
...
This was SVN commit r10192.
2011-09-06 03:11:16 +00:00
7679d1073b
Fixes garrison behavior for ships - they no longer unload units underwater. See #893 .
...
Fixes behavior when ships are destroyed (garrisoned units at the time
will also be killed).
Updates ship templates accordingly.
This was SVN commit r10020.
2011-08-17 01:43:23 +00:00
f378e2e651
Implements building restrictions (by terrain, territory, category, and distance). See #41 . Fixes #804 , #287 .
...
Implements build limits. See #687 .
Implements autorotation for dock placement.
Fixes unit spawning to consider terrain passability. See #893 .
Adds new passability criteria based on distance from shore.
Updates build restrictions on some templates.
Changes unit spawning search to 4 tiles away from foundation.
Changes garrison/training spawn failure to nicer UI notification.
This was SVN commit r9970.
2011-08-06 08:11:05 +00:00
afd8a79f9c
fix #842
...
This was SVN commit r9499.
2011-05-11 16:10:40 +00:00
025a00340e
Fixes garrisoned units being found as idle (even if they are, we can't select them, so skip them instead). Fixes #844 .
...
Garrisoned units now remain in the GARRISONED state until explicitly
ungarrisoned
This was SVN commit r9498.
2011-05-11 04:05:05 +00:00
1420a229ff
Fix various position-related errors with garrisoned units.
...
Fix some formatting consistency.
This was SVN commit r9494.
2011-05-09 02:02:00 +00:00
7499b23991
Units promotion. Closes #697 .
...
This was SVN commit r9391.
2011-05-02 15:03:01 +00:00
f39f279132
Add AI script code to provide a cleaner API around the engine interface.
...
Handle AIProxy entirely through scripts.
Support structured clones of script values.
Improve performance.
Support multiple script contexts sharing a runtime.
Use a separate context per AI player.
This was SVN commit r8866.
2011-01-15 23:35:20 +00:00
549a4fc51a
Garrisoning bug fixes
...
This was SVN commit r8821.
2010-12-08 20:12:24 +00:00
e853dd1079
Display "garrisoned" prop on buildings containing units
...
This was SVN commit r8817.
2010-12-08 19:03:57 +00:00
f1f1a44031
Made changes to BuildingAI based on Philip's comments
...
This was SVN commit r8639.
2010-11-17 18:25:00 +00:00
222095fa44
Added Building AI, and some small changes to GarrisonHolder
...
This was SVN commit r8636.
2010-11-17 07:30:25 +00:00