Commit Graph

325 Commits

Author SHA1 Message Date
66194deedc Fixes player setup to set all diplomacy values (including self as ally).
Removes unnecessary checks from CmpPlayer diplomacy functions.
Fixes some inconsistent formatting.

This was SVN commit r11935.
2012-06-04 00:24:08 +00:00
4ee4f16793 Stop rearranging formations for orders carried out individually. Fixes #1476.
This was SVN commit r11934.
2012-06-03 23:00:36 +00:00
d7752438fe Do not count domestic animals as units in statistics, based on patch by Deiz. Fixes #1439
This was SVN commit r11922.
2012-05-29 04:04:41 +00:00
636896dd7f Pass template to gather-near-position. Fixes #1454.
Add order_trade sound.

This was SVN commit r11921.
2012-05-27 20:23:08 +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
8fd3fbc210 Fixes Attack.js error.
This was SVN commit r11892.
2012-05-20 22:51:51 +00:00
c4d6019599 Add garrison order sound and remove the old garrison sound.
Fix some map errors, tabs in templates and update docs.

This was SVN commit r11891.
2012-05-20 15:44:57 +00:00
f72d820cd4 Added randomized arrow positions with hit detection when the missile lands and splash damage. Fixes #18.
This was SVN commit r11886.
2012-05-19 23:07:41 +00:00
68d1cf167e Add repair order queueing to formations. Refs #592.
This was SVN commit r11876.
2012-05-18 21:31:57 +00:00
e7689342f8 Implements TerritoryDecay/HealthDecayRate and Promotion/RequiredXp tech modifications.
This was SVN commit r11875.
2012-05-18 03:58:37 +00:00
8fba8097ce Reverts bfb7526bcf.
This was SVN commit r11874.
2012-05-17 23:24:12 +00:00
6f2b90ba70 Default starting resources decreased.
This was SVN commit r11853.
2012-05-12 21:31:00 +00:00
ad87febd25 Improve gathering behaviour if the target is exhausted.
This was SVN commit r11827.
2012-05-10 22:02:59 +00:00
bfb35a6484 Add SetNextStateAlwaysEnter() function to reload a state when switching to it from itself. Fixes #1395.
This was SVN commit r11824.
2012-05-10 21:14:43 +00:00
89821855c7 Check that a nearby resource has >0 resources left. Fixes #1395.
Also added a check to TechnologyManager to see if player is defined.

This was SVN commit r11806.
2012-05-09 21:32:21 +00:00
f2515bec84 Fix some whitespace in scripts
This was SVN commit r11803.
2012-05-09 12:14:22 +00:00
a0f122bfd4 Fix #1394 (UnitAI FSM serialization error).
Replace evil eval/uneval with deepcopy.

This was SVN commit r11802.
2012-05-09 12:10:01 +00:00
ddd3e702d5 Fixes units ignoring player orders in most stances by expanding the concept of "forced" orders.
Documents more functions of UnitAI.

This was SVN commit r11798.
2012-05-08 23:00:14 +00:00
a40a12e794 Typo
This was SVN commit r11777.
2012-05-06 21:21:04 +00:00
8f762b8248 Fix error caused by e8cb2a71da. Refs #1220.
This was SVN commit r11776.
2012-05-06 21:17:29 +00:00
vts
e8cb2a71da Fix floating units when a building they were tasked to construct finishes while they're still en-route, based on a patch by mattlott.
This was SVN commit r11775.
2012-05-06 14:38:03 +00:00
3be4eb44fa fix global from commit c4efc223ed
This was SVN commit r11763.
2012-05-05 21:29:36 +00:00
c4efc223ed Don't serialize the technology modifications cache. Fixes #1384.
This was SVN commit r11761.
2012-05-05 21:21:36 +00:00
vts
490182ddd0 Wall placement. Closes #786.
This was SVN commit r11760.
2012-05-05 19:22:22 +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
a5713c1264 Try to fix tech error. Refs #1377.
This was SVN commit r11749.
2012-05-04 18:13:23 +00:00
58836c624a Read formations from civ JSON files. Fixes #1234, #601.
This was SVN commit r11735.
2012-05-03 23:32:10 +00:00
825e1ec7a3 Allow replace with 0.
This was SVN commit r11726.
2012-05-03 18:03:57 +00:00
d68d8cdee1 Added "class": "Foo", "number": 5 technology requirement
This was SVN commit r11724.
2012-05-02 20:31:25 +00:00
89978332de Fixes tests.
This was SVN commit r11718.
2012-05-01 23:58:03 +00:00
fc47098743 Implements TerritoryInfluence/Radius tech modification. Adds C++ interface for TechnologyManager. Renames its message to MT_TechnologyModification defined in TypeList.h. Refs #1357.
This was SVN commit r11711.
2012-05-01 22:44:27 +00:00
d4347a8466 Add Preferred and RestrictedClasses, based on patch by Zsol. Fixes #1144.
This was SVN commit r11710.
2012-05-01 22:20:08 +00:00
bfb7526bcf Fixes bug in tech modifications ("affects" was ignored in some situations).
This was SVN commit r11705.
2012-05-01 05:56:53 +00:00
68638a92b8 Updates TakeDamage to apply tech modifications.
This was SVN commit r11703.
2012-04-30 20:39:27 +00:00
363ac861de Stop dead sheep from walking
This was SVN commit r11702.
2012-04-29 22:20:25 +00:00
d03d36b1f3 Add attack ability to outposts.
Fix a issue with dying units with stance standground.

This was SVN commit r11697.
2012-04-29 18:43:10 +00:00
2f5b81a37e Fix broken test.
This was SVN commit r11695.
2012-04-29 17:39:16 +00:00
b3ef24b12d Change gathering behaviour to fix #1353, based on patch by mattlott.
This was SVN commit r11689.
2012-04-28 19:25:44 +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
e6641ad14f Make some healer modifiable by techs. Refs #1357.
This was SVN commit r11679.
2012-04-26 20:11:18 +00:00
4f905584c9 Clarify tech pairs. Refs #1356.
This was SVN commit r11669.
2012-04-25 17:02:41 +00:00
c6291403bd Fixed some javascript things because the names of the phases were changed. Changed thickness of mine selections.
This was SVN commit r11647.
2012-04-23 00:36:06 +00:00
0d81325cc7 Fixed Attack and Armour bug by removing Armour/All and Attack/.../All technology modifications.
This was SVN commit r11625.
2012-04-22 10:53:38 +00:00
vts
34fc883317 Pretty unit selection overlay rings. Fixes #824.
This was SVN commit r11623.
2012-04-22 04:04:02 +00:00
5ceea39a59 Added technology pairs.
This was SVN commit r11609.
2012-04-21 21:40:07 +00:00
03f04e54fc Fix garrisoning issue.
This was SVN commit r11607.
2012-04-21 20:12:52 +00:00
96549e0418 Modified caching behavior to work similarly to how k776 suggested. Also added modification level affects as also suggested by k776.
This was SVN commit r11604.
2012-04-21 16:37:35 +00:00
3e3a8d5414 Fix error when no items of a class exist and that class is used for techology requirements.
This was SVN commit r11598.
2012-04-21 10:55:02 +00:00
03d625dd2e Added tech modification for carrying capacity and fixed warning for min range
This was SVN commit r11588.
2012-04-20 20:37:12 +00:00