Konstantin
e60a4318c3
vcmi: a bunch of forward definitions
2023-05-07 20:37:32 +03:00
Konstantin P
057a33c508
SpellSchool: use identifier instead of int
...
Needs redifinition of MAGIC_SCHOOL_SKILL in all mods
2023-05-07 20:37:32 +03:00
Konstantin P
6ff83e6f16
tests: test nonMagical effects
2023-05-05 18:57:40 +03:00
Konstantin P
75948a5dd7
tests: add ResistanceCondition test
2023-05-05 18:57:40 +03:00
Konstantin
3d46ee3182
TargetCondition: units with 100% MR is immune
...
Spells should not consider units with 100% MR as valid targets.
2023-05-05 18:57:40 +03:00
Konstantin
b0d2787e86
vcmi: remove DIRECT_DAMAGE_IMMUNITY bonus
...
Replace by SPELL_DAMAGE_REDUCTION bonus with 100 value
2023-05-05 18:57:40 +03:00
Konstantin
05eccbc2bb
vcmi: split bonus to enumerator and HeroBonus.h
2023-05-03 18:01:06 +03:00
Konstantin
a6de9097be
vcmi: rename HeroBonus.h to Bonus.h
2023-05-02 11:20:58 +03:00
Konstantin
29c76fb9bf
HeroBonus: split BonusList
2023-05-02 00:54:53 +03:00
Konstantin
4866c2fe5c
vcmi: split IBonusBearer
2023-05-02 00:54:53 +03:00
Konstantin
6fa1b2b19f
vcmi: move bonuses to its own folder
2023-05-02 00:53:50 +03:00
nordsoft
17c9dc3115
fix tests
2023-04-29 06:15:14 +04:00
Konstantin
88f8694825
tests: fix modhandler assert
2023-04-27 20:59:55 +03:00
Konstantin
15d933d354
tests: disable settings.init()
...
This will remove debug assertion than will prevent any test
from running in debug mode
2023-04-27 20:59:55 +03:00
Konstantin
2a8f9629ae
tests: attempt to fix build without lua
2023-04-27 20:59:55 +03:00
Konstantin P
00487e3257
vcmi: disable -Wvirtual-move-assign from tests
2023-04-27 20:59:55 +03:00
Konstantin P
0d8e59a172
tests: add test directories to core loader
...
Fixes all tests loading
2023-04-27 20:59:55 +03:00
Konstantin P
d14c951005
CBattleInfoCallbackTest: fix catch-value
2023-04-27 20:59:55 +03:00
Konstantin P
608c30c3d3
vcmi: add formation inside test map
2023-04-27 20:59:55 +03:00
Konstantin P
c6fbb8b30d
tests: fix faction test
2023-04-27 20:59:55 +03:00
Konstantin P
705d7164ae
vcmi: fix heal and teleport tests
2023-04-27 20:59:55 +03:00
Konstantin P
e5f78a8997
vcmi: fix tests with latest develop
2023-04-27 20:59:55 +03:00
Konstantin
7c56fbd16b
vcmi: fix test building for 1.2
2023-04-27 20:59:55 +03:00
Konstantin
924b456b0f
vcmi: fix unit tests for latest develop
2023-04-27 20:59:55 +03:00
Konstantin
74656b9f96
vcmi: disable MapComparer team check for now
2023-04-27 20:59:55 +03:00
Konstantin
91c7c93d07
vcmi: fix MapComparer appearance check
2023-04-27 20:59:55 +03:00
Konstantin
d31a3362af
vcmi: map objects test passed
...
It is weird, because some objects should have mod scope now, and some not
We need to fix this, and rework test if necessary - its data is too huge now.
2023-04-27 20:59:55 +03:00
Konstantin
bd7faddb55
vcmi: more verbose JSON compare
2023-04-27 20:59:55 +03:00
Konstantin
015f55cd82
vcmi: fix building tests without scripts
2023-04-27 20:59:55 +03:00
Konstantin
276bd5eebf
vcmi: fix healing effect tests
2023-04-27 20:59:55 +03:00
Konstantin
42984396ff
all: fix ImmunityNegationConditionTest
2023-04-27 20:59:55 +03:00
Konstantin
56601a0c2a
vcmi: entity tests passed
2023-04-27 20:59:55 +03:00
Konstantin
2680046dd0
vcmi: make tests builds at least
2023-04-27 20:59:55 +03:00
Konstantin
7a5775a9f9
vcmi: use std::optional
2023-04-17 00:43:13 +03:00
Konstantin
fedf7d377c
vcmi: remove TFaction
...
This is a huge change and will break save compatibility
2023-04-10 19:28:16 +03:00
Konstantin
11b237a23c
vcmi: massive refactoring v1
2023-04-05 22:33:12 +03:00
SoundSSGood
9f8aa25297
Backpack limit part4 (Using cheats, buying)
2023-03-21 12:14:33 +02:00
SoundSSGood
e23766280f
Backpack limit part2 (Pick up, Dig up, Object rewards)
2023-03-21 12:14:33 +02:00
Konstantin
4617ce10e5
vcmi: allow showing more than one components in infobar
...
Up to 8, AFAIK. So, we can show multi-reward in infobox now.
One issue remain - cannot dynamically choose components size
based on text size.
2023-03-11 21:41:57 +03: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
a2ce9220ed
Fix tests + scripting compilation on gcc
2023-01-05 17:42:33 +02:00
Ivan Savenko
43c1994ca2
Fix test
2023-01-04 21:41:11 +02:00
Ivan Savenko
2cbe6bcb47
Added common method to get names of hardcoded mod scopes
2022-12-07 15:18:19 +02:00
Tomasz Zieliński
20c102e648
Remove T prefix from new typedefs
2022-09-29 11:44:46 +02:00
Tomasz Zieliński
4ea57ea7fc
A variety of suggested style tweaks
2022-09-25 09:33:56 +02:00
Tomasz Zieliński
494b0f0226
First version that compiles
2022-09-21 11:34:23 +02:00
Nordsoft91
ad01c7ffce
Vlc obstacles [part 1] ( #888 )
...
* obstacles content handler, entity service and VLC integration
2022-09-15 11:06:54 +03:00
Andrii Danylchenko
4b4cc3cf4b
battlefields in VLC and custom bonuses for terrain patches
2022-09-11 11:31:27 +03:00
Nordsoft91
c4035134e5
New battlegrounds ( #758 )
2022-09-11 11:31:26 +03:00
Nordsoft91
aaa07e4d2e
New terrain support - part 1 ( #755 )
...
Initial support of new terrains
2022-09-11 11:31:26 +03:00