4d57a8ed36
Prefer to pass CGameState as reference instead of pointer
2025-04-27 14:57:31 +03:00
ce436bd63e
Fix regressions in combat
2025-04-27 14:57:31 +03:00
6d65641a43
Gamestate is now passed as shared pointer
2025-04-27 14:57:30 +03:00
0ada2a5ebd
Map objects now use shared_ptr (game)
2025-04-27 14:57:30 +03:00
4609a83fc1
ArtInfoWindow on client. Lib side
2025-04-05 18:02:04 +02:00
2b286378e8
Remove logic for banks in 1.5 format
2025-03-19 08:02:39 +00:00
2fdf40e7a9
Remove connection pointer from CPack
2025-03-03 10:46:00 +00:00
a8e84c55f6
Fix some of the new warnings from sonarcloud
2024-10-11 10:45:29 +00:00
c0f5c7c0ea
Replace pointer with reference in pack apply functions
2024-10-07 14:59:46 +00:00
48fb58e7a0
Replace few more pointers with references, remove manual delete call
2024-10-07 14:59:14 +00:00
ee831c06e7
Reduced usage of CPack, replaced with CPackForServer where applicable
2024-10-07 14:59:14 +00:00
f6f6f98580
Merge pull request #4699 from SoundSSGood/backpack-arts-sorting
...
Backpack artifacts sorting
2024-10-07 17:55:42 +03:00
a826b88641
Merge branch 'develop' into spell
2024-10-07 12:55:23 +02:00
e22d15b1d8
manageBackpackArtifacts
2024-10-02 12:45:50 +03:00
d929bfb9d1
rename; introduce factor
2024-09-28 15:05:13 +02:00
5b2aa4dc71
swapping spells
2024-09-28 00:34:25 +02:00
857b2e9a35
spell replacement works
2024-09-27 23:52:33 +02:00
a9327b3fa3
netpacks
2024-09-27 22:47:22 +02:00
b9ae7f1138
CMap put move and remove artifact method
2024-09-23 23:30:38 +03:00
bff2e064fc
Wait for queries generated by town building visit to end before visiting
...
next building
2024-09-16 19:32:39 +00:00
39a2c29c97
Removed creatureBank flag from battle, battles now receive BattleLayout
...
struct that defines how units are placed in combat
2024-09-12 12:11:18 +00:00
6179521364
Merge pull request #4556 from IvanSavenko/town_building_visit
...
Implemented explicitly visitable town buildings, e.g. hota mana vortex
2024-09-05 17:21:21 +03:00
7466d7452d
vcmiscrolls
2024-09-05 15:51:45 +03:00
b09d9d501b
Pass pointer to actual caller in showBlockingDialog callWith
...
Fixes activation of all rewardable buildings in town on blocking dialog
answer
2024-09-04 15:14:56 +00:00
d34b4a141e
Split map object visit from town building visit. Removes side effects
...
from building visit
2024-09-04 14:54:09 +00:00
327ff01471
Implemented explicitly visitable town buildings, e.g. hota mana vortex
...
Added flag `manualHeroVisit` flag to town building. If this flag is set,
then building will only be activated on click and will not give its
effect on hero recrutiment, hero visit, or new day.
This allows implementing changes to Mana Vortex from HotA
2024-09-03 16:31:07 +00:00
0a72a0a48e
Merge pull request #4534 from SoundSSGood/BulkEraseArtifacts
...
BulkEraseArtifacts network pack
2024-08-31 13:52:26 +03:00
82c37573fa
Removed save compatibility with 1.4
...
All save compatibility checks targeting 1.4 saves have now been removed.
Saves from 1.5 can still be loaded in 1.6
Implemeted few TODO's in serialization that were postponed to avoid
breaking save compatibility in MP for 1.5.X releases.
Fixed missed case for loading black market object from 1.5 saves
2024-08-29 18:51:53 +00:00
e15ea4fc75
BulkEraseArtifacts network pack
2024-08-29 20:22:08 +03:00
37658478fa
Move timed events to NewTurnProcessor
2024-08-28 13:03:26 +00:00
ce1e0b8875
Moved NewTurn pack generation to NewTurnProcessor
2024-08-28 13:03:24 +00:00
a481f07daf
PlayerState now stores all objects owned by player
2024-08-28 12:51:27 +00:00
189cb1c762
Moved most of daily income handling to a separate method
2024-08-28 12:40:44 +00:00
01396b62b7
Extracted handling of type ID's from serializer into a separate class
2024-08-26 19:48:46 +00:00
b84af1a6de
Significantly simplify packs applying
...
Apparently our logic for packs applying with types registration is
overcomplicated and by now completely unnecessary - it became redundant
after introduction of visitor pattern.
2024-08-26 19:48:46 +00:00
11e8b04ac5
Merge pull request #4463 from SoundSSGood/IMarket-refactoring
...
IMarket refactoring
2024-08-26 22:48:23 +03:00
58bb2b58e3
IMarket suggestions
...
Co-authored-by: Ivan Savenko <saven.ivan@gmail.com >
2024-08-20 18:49:48 +03:00
cd7ebea9e3
cleanup unused code
2024-08-20 18:49:47 +03:00
00692888df
sonar cloud fixes
2024-08-15 23:09:04 +02:00
81b1704e39
Merge branch 'vcmi:develop' into extended_statistic
2024-08-14 20:32:47 +02:00
ec2163b974
add val; stat at end turn; events
2024-08-14 19:24:40 +02:00
26fdaacbe5
Map and town events are now processed on start of player turn instead of
...
on start of new day, in line with H3
2024-08-14 14:13:50 +00:00
b4c25a148a
Merge branch 'develop' into bank_support
2024-08-09 23:36:59 +02:00
072af5bd6d
basic support for bank
2024-08-04 15:44:57 +02:00
fb171ab3a2
statisic basic
2024-08-01 21:36:00 +02:00
e0c6b6e3d0
Fix crash on loading saves made in 1.4/1.5
2024-07-19 13:57:06 +00:00
1c63fefe02
Moved banks randomization to server-side with client netpack
2024-07-16 13:13:39 +00:00
b07408e984
New objects are now created and initialized on server and sent to client
2024-07-16 13:13:39 +00:00
d2839c8e52
Rewardable object randomization is now always server-sided
2024-07-16 13:13:39 +00:00
0d66ddbeec
GameState now uses random generator from server. Blocked access to rmg
...
on client
2024-07-16 13:13:38 +00:00