Ivan Savenko
|
97f1a310df
|
Fix miscellaneous issues discovered by Sonar
|
2024-08-12 18:26:30 +00:00 |
|
Andrii Danylchenko
|
683c363946
|
NKAI: whirlpool
|
2024-07-21 17:20:54 +03:00 |
|
Andrii Danylchenko
|
6f5710e809
|
Merge pull request #4110 from vcmi/rewardables
NKAI: rewardables
|
2024-07-14 09:02:37 +03:00 |
|
Ivan Savenko
|
6b8f94e6e7
|
Merge remote-tracking branch 'vcmi/master' into develop
|
2024-07-11 17:43:44 +00:00 |
|
Andrii Danylchenko
|
1be36e1ad4
|
NKAI: rewardables
|
2024-07-07 21:58:39 +03:00 |
|
Ivan Savenko
|
41ed7e2e10
|
Added TODO's for potential optimizations that I've discovered
|
2024-07-04 07:59:50 +00:00 |
|
Alexander Wilms
|
02e429e973
|
Fix typos using https://github.com/crate-ci/typos
Changes were reviewed manually
|
2024-06-24 03:47:19 +02:00 |
|
Andrii Danylchenko
|
02ea497951
|
NKAI: speedup exploration a bit
|
2024-05-22 22:49:11 +03:00 |
|
Andrii Danylchenko
|
820f0e0c1a
|
NKAI: port exploration from VCAI
|
2024-05-20 23:50:13 +03:00 |
|
Andrii Danylchenko
|
98a78b3386
|
#3930 - fix usage of wrong variable
|
2024-05-12 18:04:23 +03:00 |
|
Andrii Danylchenko
|
afa766c763
|
#3824 - fix cluster unlock
|
2024-04-27 10:57:30 +03:00 |
|
Andrii Danylchenko
|
70fad45316
|
Merge pull request #3770 from vcmi/nkai-multitask
NKAI: allow multiple tasks to be executed from one calculation
|
2024-04-20 15:21:11 +03:00 |
|
Alexander Wilms
|
7d925b3689
|
Fix typo: Preasure -> Pressure
|
2024-04-16 21:10:15 +00:00 |
|
Andrii Danylchenko
|
ed76d8a652
|
NKAI: allow multiple tasks to be executed from one calculation
|
2024-04-14 16:46:05 +03:00 |
|
Andrii Danylchenko
|
728f673763
|
NKAI: remove static ai field
|
2024-03-31 21:11:25 +03:00 |
|
Andrii Danylchenko
|
d6f1a5c2b3
|
NKAI: parallel capture objects
|
2024-03-29 20:39:03 +02:00 |
|
Andrii Danylchenko
|
30d9daf62c
|
NKAI: improve boat handling by object graph, a set of fixes
|
2024-03-28 13:39:15 +02:00 |
|
Andrii Danylchenko
|
adfcb650e2
|
NKAI: object graph fixes
|
2024-03-25 21:04:08 +02:00 |
|
Andrii Danylchenko
|
419d6a648b
|
NKAI: optimize clusterization and pathfinding for object graph
|
2024-03-24 09:32:54 +02:00 |
|
Andrii Danylchenko
|
e66ceff154
|
NKAI: object graph improved and optimized
|
2024-03-21 12:13:36 +02:00 |
|
Andrii Danylchenko
|
6245adb9a4
|
NKAI: configurable object graph
|
2024-03-08 14:39:16 +02:00 |
|
Andrii Danylchenko
|
376a17409f
|
NKAI: initial implementation of object graph
|
2024-03-02 15:52:45 +02:00 |
|
Andrii Danylchenko
|
35429eab52
|
NKAI: moddable configuration
|
2024-03-01 22:03:07 +02:00 |
|
Alexander Wilms
|
678cacbd25
|
Remove more redundant virtual specifiers
`grep -nr "virtual " | grep -v googletest | grep " override" | grep -v overriden > ../redundant_virtual.txt`
```python
import os
with open("../redundant_virtual.txt") as f:
for line in f:
print()
line: str = line.strip()
print(line)
tmp = line.split(":",2)
file = tmp[0].strip()
code = tmp[-1].strip()
print(file)
print(code)
new_code = code.replace("virtual ", "", 1)
# https://superuser.com/a/802490/578501
command = f"export FIND='{code}' && export REPLACE='{new_code}' && ruby -p -i -e \"gsub(ENV['FIND'], ENV['REPLACE'])\" {file}"
os.system(command)
```
|
2024-02-13 15:21:30 +01:00 |
|
Alexander Wilms
|
522cb571b3
|
Remove redundant virtual specifiers
`grep -nr virtual | grep -v googletest | grep override > ../redundant_virtual.txt`
```python
import os
with open("../redundant_virtual.txt") as f:
for line in f:
print()
line: str = line.strip()
print(line)
tmp = line.split(":")
file = tmp[0].strip()
code = tmp[-1].strip()
print(file)
print(code)
new_code = code.replace("virtual ", "", 1)
# https://superuser.com/a/802490/578501
command = f"export FIND='{code}' && export REPLACE='{new_code}' && ruby -p -i -e \"gsub(ENV['FIND'], ENV['REPLACE'])\" {file}"
os.system(command)
```
|
2024-02-10 20:46:13 +01:00 |
|
Ivan Savenko
|
8346d71c98
|
Remove more subID access
|
2023-11-01 14:44:05 +02:00 |
|
Alexander Wilms
|
0a6c82c639
|
AI/Nullkiller/Behaviors/DefenceBehavior.{h,cpp}: treat -> threat
|
2023-10-27 23:34:11 +00:00 |
|
Alexandre Detiste
|
15e45f966c
|
typos found by lintian
|
2023-10-17 22:06:08 +02:00 |
|
Andrii Danylchenko
|
ebe155fa95
|
NKAI: mana recovery
|
2023-09-30 10:37:36 +03:00 |
|
Ivan Savenko
|
87957e74c1
|
Replaced boost::thread_specific_ptr with thread_local
|
2023-08-23 16:32:29 +03:00 |
|
Andrii Danylchenko
|
1eabb738dc
|
NKAI: fix heroes not recruited
|
2023-08-13 09:08:30 +03:00 |
|
Ivan Savenko
|
67b7c39761
|
Fix possible nullptr dereference
|
2023-08-11 18:50:39 +03:00 |
|
Andrii Danylchenko
|
04fe78d31c
|
NKAI: fix freeze on army gathering
|
2023-08-07 17:29:17 +03:00 |
|
Andrii Danylchenko
|
ccfc6f5716
|
NKAI: increase towns priority, buy heroes more often
|
2023-07-31 22:01:12 +03:00 |
|
Andrii Danylchenko
|
ec0596f3dd
|
NKAI: fix error message can not take away last stack
|
2023-07-31 22:01:12 +03:00 |
|
Andrii Danylchenko
|
fb7477047a
|
NKAI: loosen gold presure on build system.
|
2023-07-31 22:01:12 +03:00 |
|
Andrii Danylchenko
|
6490c65490
|
nkai: fix freezes
|
2023-07-31 22:01:12 +03:00 |
|
Andrii Danylchenko
|
c93bb0a502
|
nkai: fixes and skill rewards
|
2023-07-31 22:01:11 +03:00 |
|
Tomasz Zieliński
|
db2be3ee05
|
Anoother unused variable
|
2023-07-31 22:01:11 +03:00 |
|
Andrii Danylchenko
|
0fd118d3ce
|
NKAI: gold reward
|
2023-07-31 22:01:11 +03:00 |
|
Andrii Danylchenko
|
6ba74f02bc
|
NKAI: playing around with defence
|
2023-07-31 22:01:11 +03:00 |
|
Andrii Danylchenko
|
b19ac01bf9
|
Fuzzy rework, added more defence and gather army routines
|
2023-07-31 22:01:10 +03:00 |
|
Ivan Savenko
|
08cfbe79cf
|
Added encapsulation for movement points access
|
2023-06-25 17:42:36 +03:00 |
|
Ivan Savenko
|
87fcfa4add
|
Removed excessive pathfinder includes
|
2023-06-21 12:00:44 +03:00 |
|
Ivan Savenko
|
acac42291e
|
Remove excessive CMap.h includes
|
2023-05-31 23:18:38 +03:00 |
|
Andrii Danylchenko
|
fbc9a32ad8
|
#2018 - fix shipyard usage for NKAI, allied shipyard should work now
|
2023-04-22 18:42:36 +03:00 |
|
Andrii Danylchenko
|
d347db4c16
|
Fix hero count calculation for resourceful ai mod
|
2023-04-22 14:47:31 +03:00 |
|
Konstantin
|
11b237a23c
|
vcmi: massive refactoring v1
|
2023-04-05 22:33:12 +03:00 |
|
Andrii Danylchenko
|
ab84cb9931
|
NKAI: fix defense tasks priority evaluation
|
2023-04-02 10:10:17 +03:00 |
|
Andrii Danylchenko
|
88fb532d90
|
NKAI: more fixes to defense and pandora
|
2023-04-02 10:02:33 +03:00 |
|