Andrii Danylchenko
|
a7859dae39
|
Battle AI: archangels cast again
|
2023-08-13 09:08:30 +03:00 |
|
krs
|
756dd398c2
|
Added constant for BATTLE_SHOOTING_RANGE_DISTANCE
|
2023-06-23 19:13:39 +03:00 |
|
Konstantin
|
05eccbc2bb
|
vcmi: split bonus to enumerator and HeroBonus.h
|
2023-05-03 18:01:06 +03:00 |
|
Konstantin
|
fbc05c70ac
|
vcmi: camelCase methods of new classes
Also use EGameSettings for clamping morale and luck
|
2023-05-02 12:09:13 +03:00 |
|
Konstantin P
|
b472c89276
|
vcmi: make some CStack properties private
There is a getters for this properties already available
|
2023-04-27 20:58:49 +03:00 |
|
krs
|
1bb5077231
|
Renamed getMovementRange to ObtainMovementRange as per request
|
2023-04-26 21:56:20 +04:00 |
|
krs
|
e348193f7e
|
Tactics movement is limited to movement range
|
2023-04-26 21:56:20 +04:00 |
|
Konstantin
|
7a5775a9f9
|
vcmi: use std::optional
|
2023-04-17 00:43:13 +03:00 |
|
Konstantin P
|
f11fa8f0c8
|
Teleport: can trigger obstacles now
|
2023-04-13 11:24:19 +03:00 |
|
Konstantin P
|
384ee99834
|
vcmi: configurable teleport v2
1. Redesign wall and teleport penalty using shortest path
This will avoid OH3 exploits with teleport inside walls
2. Teleport is now configurable
|
2023-04-13 11:24:19 +03:00 |
|
Konstantin
|
bc1aad3b26
|
vcmi: remove deprecated CStack::getCreature()
Function battle::Unit::unitType() does the same.
|
2023-04-13 11:24:19 +03:00 |
|
Konstantin
|
03eb997137
|
CBattleInfoEssentials: add battleIsGatePassable()
This is a helper to check if gate is passable now or not.
|
2023-04-13 11:24:19 +03:00 |
|
krs
|
dab07bdef9
|
Now unit range is shown in Tactics phase as well
A new parameter: isActiveStack was needed in battleGetAvailableHexes, so that we show the propper Tactics range.
|
2023-04-08 20:39:59 +03:00 |
|
Konstantin
|
11b237a23c
|
vcmi: massive refactoring v1
|
2023-04-05 22:33:12 +03:00 |
|
Konstantin
|
e0715a76c8
|
vcmi: reduce CStack usage a little bit
|
2023-04-04 23:02:54 +03:00 |
|
Konstantin
|
9a229d6e48
|
vcmi: really correct obstacle trigger
Now obstacle trigger really matches H3
|
2023-03-27 16:11:17 +03:00 |
|
Konstantin
|
8c1d6c8e13
|
CBattleInfoCallback: use obstacle only once
We should not affect creature by obstacle twice.
|
2023-03-27 15:45:41 +03:00 |
|
Konstantin
|
88a7b3141d
|
vcmi: really correct BFS
AFAIK, all is working as H3.
|
2023-03-27 15:45:41 +03:00 |
|
Ivan Savenko
|
8fbeff2a02
|
Fix movement over lowered drawbridge in Fortress
|
2023-03-25 23:54:51 +02:00 |
|
Ivan Savenko
|
5288e3761e
|
Merge pull request #1764 from IvanSavenko/selectable_spellcaster
Implemented support for multi-spell casters
|
2023-03-25 20:08:47 +02:00 |
|
Ivan Savenko
|
dc099b2a35
|
Implemented support for multi-spell casters
|
2023-03-25 00:48:14 +02:00 |
|
Ivan Savenko
|
970981cfc9
|
Show information on potential kills in attack tooltip
|
2023-03-24 17:18:47 +02:00 |
|
Ivan Savenko
|
31147ac83b
|
refactoring: TDmgRange pair -> DamageRange struct
|
2023-03-23 17:49:33 +02:00 |
|
Konstantin
|
7f805768f0
|
battle: fixup siege crash
|
2023-03-16 16:47:06 +03:00 |
|
Konstantin
|
9205ef2c91
|
vcmi: skill-agnostic ballistics
Made ballistics by using spell action and more code is shared now.
|
2023-03-16 16:46:41 +03:00 |
|
Konstantin
|
62e579f672
|
vcmi: replace KINGx bonuses to one KING bonus
val = level of slayer which require to affect.
Can break saves.
|
2023-03-16 16:46:41 +03:00 |
|
krs
|
26bca26bd8
|
Enum is now in its own namespace, comments for enum values removed
Using Namespace Fix for linux compilation.
NO_OF_PHASES renamed to NUMBER_OF_PHASES, removed duplicate phase documentation
|
2023-03-01 21:21:20 +02:00 |
|
krs
|
7421fabf2c
|
BattlePhases enum moved to Unit.h
|
2023-03-01 21:21:20 +02:00 |
|
krs
|
0373febe6f
|
Refactoring 1st phase - Renaming's mainly
S'more small battle order refactoring.
|
2023-03-01 21:21:20 +02:00 |
|
Konstantin
|
93c2bbf9ab
|
vcmi: modernize lib/battle
|
2023-02-16 23:37:19 +03:00 |
|
Ivan Savenko
|
9a30484183
|
Point and Rect now reside in library
|
2023-01-20 16:11:43 +02:00 |
|
Ivan Savenko
|
d2b837b116
|
All creature-related texts go through translator
|
2023-01-20 15:18:36 +02:00 |
|
Ivan Savenko
|
1418ce4678
|
Refactoring & fixes of damage calculation
|
2023-01-20 15:18:10 +02:00 |
|
Ivan Savenko
|
8cfde8fc5e
|
Fixed selection of dragon's breath attack against double-wide units
|
2023-01-20 15:15:44 +02:00 |
|
Ivan Savenko
|
b8c5a32b9b
|
Fix attack targeting selection for double-wide units
|
2023-01-20 15:15:44 +02:00 |
|
Ivan Savenko
|
17fc9d8d8f
|
Merge with vcmi/develop
|
2023-01-18 01:04:34 +02:00 |
|
Dydzio
|
0e72ee9217
|
No longer relevant TODO removed
|
2023-01-18 02:05:30 +04:00 |
|
Dydzio
|
f64d6bc1bc
|
Add support for overwriting default range via additional info
|
2023-01-18 02:05:30 +04:00 |
|
Dydzio
|
01ce01d8f9
|
Add proper handling for 2-hex units + extract range calculation method
|
2023-01-18 02:05:30 +04:00 |
|
Dydzio
|
cf1674d0ca
|
Introduce new bonus for limiting range
|
2023-01-18 02:05:30 +04:00 |
|
Dydzio
|
c22ab5ec9e
|
Initial version of limiting shooters range feature
|
2023-01-18 02:05:30 +04:00 |
|
Ivan Savenko
|
a46ab835ce
|
Applied review suggestions
|
2023-01-14 23:01:33 +02:00 |
|
Ivan Savenko
|
3be3c871fb
|
Destroyed walls will now remove wall penalty
|
2023-01-13 01:59:09 +02:00 |
|
Ivan Savenko
|
1d7f004658
|
Implemented reinforced walls in towns with Castle
|
2023-01-13 01:09:24 +02:00 |
|
Ivan Savenko
|
500cf7f15d
|
EWallPart & EWallState are now enum class
|
2023-01-13 00:35:58 +02:00 |
|
Ivan Savenko
|
dd3adb7e16
|
Arrow towers damage algorithm should now match H3
|
2023-01-12 23:52:03 +02:00 |
|
Ivan Savenko
|
1fece0ce18
|
Merge pull request #1229 from IvanSavenko/battle_improvements
Battle: Fixing bugs & Implementation of missing features
|
2023-01-09 22:07:13 +02:00 |
|
Dydzio
|
3e1e41ef59
|
Apply suggestions from code review
Co-authored-by: Nordsoft91 <nordsoft@yahoo.com>
|
2023-01-05 17:31:30 +02:00 |
|
Dydzio
|
a83c7eb00f
|
Add configurable damage and defense parameters
|
2023-01-05 17:31:30 +02:00 |
|
Ivan Savenko
|
5d80457eda
|
Merge with vcmi/develop branch
|
2022-12-30 00:52:23 +02:00 |
|