60c5f584a8
AI: GATHER_TROOPS improvements and fixes
2018-11-14 22:10:02 +02:00
9a0b5a0afc
AI: fix freeze when AI has a win condition to control own town
2018-11-06 21:45:29 +02:00
bd0f8f840a
Merge pull request #497 from nullkiller/ai-pathfinder-boat
...
AI pathfinding: buy boat
2018-10-28 14:29:09 +03:00
72aff02418
AI pathfinding: buy boat
2018-10-21 14:17:55 +03:00
e13e88bf5c
ResourceManager-compliant money saving for income buildings
2018-10-16 19:52:36 +02:00
12e1e5b315
Disable building from army goals, re-fix building capitol prereqs
2018-10-16 19:52:35 +02:00
cf213a5acf
#2983б #2910 and a few other bugs fixed
2018-10-06 16:35:31 +03:00
49c872e4ec
AI: replace SectorMap with new PathfinderManager
2018-10-06 16:35:31 +03:00
99f167a44c
AIhelper should be owned by AI instance.
2018-09-02 18:04:38 +03:00
383c9a20af
A bunch of fixes for recent branch.
2018-08-22 07:51:35 +02:00
6503830bde
Important fixes:
...
- AI will not always trade resources if it has better options
- Do not use reserved objects for CollectRes
2018-08-21 13:48:19 +02:00
2f4b463459
- Fixed major bugs with building dwellings. ResourceManager doesn't support building in future turns.
...
- Tweaks for trading
2018-08-21 12:55:31 +02:00
35d2af2e7d
Simplified CollectRes - rely on VisitObj now
2018-08-20 21:31:58 +02:00
d41741251f
Fix VisitObj bugs / logic flaws
2018-08-19 20:41:29 +02:00
72b206347f
Split Fuzzy.cpp/h
2018-08-10 18:27:57 +02:00
bd3d27c79b
Leftover stuff: rename GET_OBJ
2018-08-10 16:48:42 +02:00
3961b4ac93
Rename GetObj->VisitObj to reflect new functionality
2018-08-10 16:45:00 +02:00
787f4032b4
fulfillsMe change revert, tweaks
2018-08-10 13:42:15 +02:00
5065f5a104
Fixes
2018-08-10 00:33:18 +02:00
c0821495e5
GetObj tweak
2018-08-09 22:07:02 +02:00
616a6bbdf7
New object target handling in wander
2018-08-09 16:28:15 +02:00
41df9d8283
Move away subgoal collection logic for GetObj
2018-08-09 13:17:58 +02:00
2365946b62
Elementar GetObj - first attempt
2018-08-09 13:17:58 +02:00
d07a77f34b
- Tweaks for GatherArmy
...
- Tweaks for exploration
- Increased default priority of BuyArmy, SIGNIFICANT improvement!
2018-08-08 12:38:32 +02:00
a9ef8fe32f
- Fixed Border Gates logic
...
- VCAI may now walk onto removable objects when exploring
2018-08-08 10:52:52 +02:00
8eec7d71ad
Little tweak - prioritize instant buildings over ones we can't afford. May be useful with multiple towns.
2018-08-06 17:42:58 +02:00
36e44adc8c
rebase
2018-08-06 10:02:59 +02:00
6615870045
Rebase
2018-08-04 15:59:59 +02:00
aa9c6d3716
Cleanup
2018-08-04 13:18:05 +02:00
9e34ef5534
AI will not try to sell reserved resources.
2018-08-04 11:51:19 +02:00
2aa0a6fe2f
More fixes for trading. Seems to work now.
2018-08-04 10:20:40 +02:00
a5ca32ad38
Some checks and log for CollectRes goal.
2018-08-04 09:24:43 +02:00
f17783cfb5
[c::b] Updated projects, applied fixes
2018-07-29 22:07:40 +03:00
70549197b6
Naah, revert my changes.
2018-07-28 09:08:53 +02:00
e7cb8d7d17
Fixed GetObj (TRADING_POST) incorrectly set to elementar.
2018-07-28 06:47:37 +02:00
a8696a9957
formatting
2018-07-27 09:22:07 +02:00
e5b979d4ad
- ResourceManager now returns abstract goal so it can be decomposed many times
2018-07-26 16:15:37 +02:00
b687688f5a
Do not add duplicate objectives to GatherArmy pool (or any other, if it ever exist)
2018-07-26 13:29:46 +02:00
273802c92c
I have no idea what I'm doing
2018-07-26 12:14:29 +02:00
25dea1a599
Code style: formatting and refactoring of VCAI code
2018-04-08 17:43:20 +07:00
3795985de9
Eliminate warnings / errors. Pull request #388
2018-02-11 15:17:14 +03:00
324717acbe
Spelling fixes: privilaged -> privileged, retreive -> retrieve
2018-02-10 21:52:23 +03:00
0a2b04709f
Fixed https://bugs.vcmi.eu/view.php?id=2873
2018-02-09 22:12:21 +03:00
15138c23de
Finished conversion to new logging API
...
* removed logger streams
* (float3|int3)::operator() -> (float3|int3)::toString(), it was too ugly and confusing.
2017-08-11 23:06:27 +03:00
cdd9dbc7f1
Code style: avoid some ambiguous else if indentation
...
If some code intentionally want to break else if to achieve specific indentation there must be braces.
2017-07-19 03:42:26 +03:00
0cb6515ae8
VCAI tweaks ( #311 )
...
* Add extra priority support for town capture evaluation
* Improve building algorithm
* GatherArmy: check free gold instead of total for when hiring heroes
2017-07-15 01:15:08 +03:00
f1e5797834
Code style: move or add licensing information on top of every file
2017-07-14 01:26:03 +03:00
a85b4cf2a5
* WIP on event condition format
...
* Hero portrait serialization
* Fix town spells serialization
* Added support for float exponential part in Json
* Added support for int64 in Json
* Added basic Hero definitions serialization
* Added rumors serialization
* Advanced player info serialization.
* Added Disposed heroes serialization, (!) not covered with tests yet
* Added Local event serialization
* Added Pandoras box serialization
* Added Seer hut reward serialization
* Added CQuest serialization
* Added API for map object instance names serialization.
* Added random dwelling options serialization
* Advanced town options serialization
* Advanced hero options serialization
* More map format tests
* A lot of fixes, cleanup and refactoring
2017-05-27 00:23:19 +03:00
eaf14f6429
Should fix #2624 .
2016-11-29 22:07:35 +01:00
fd3992ddc9
GatherTroops: avoid crash if nearest dwelling wasn't found. Issue 2624
2016-11-29 21:57:00 +03:00