1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-27 00:41:08 +02:00

2754 Commits

Author SHA1 Message Date
b5255ce8a5 Do not allow interacting with other player that is engaged in combat
May happen if players A and B made contact with player C (but not with
each other), and both players have attacked C at the same time on their
(still simultaneous) turn
2025-06-21 13:38:33 +03:00
67244b64f6 Fix crash on coin flip 2025-06-21 13:38:33 +03:00
cfc09389fa Merge branch 'develop' into cheats 2025-06-19 19:05:31 +02:00
7d8db1bd98 support all skills at once 2025-06-19 17:20:52 +02:00
1659b225c6 add skill cheat 2025-06-19 16:52:19 +02:00
50a207de85 Fix restoring of initial mana on restarting battle 2025-06-17 19:21:41 +03:00
0ad4e80c7d Rework and simplify logic of attaching heroes to bonus system 2025-06-17 14:37:25 +03:00
4044e03c0a Check for win/loss after removing hero from map 2025-06-16 13:23:59 +03:00
2cd29c1893 Rework campaign bonuses storage in type-safe form
Replaced campaign bonuses from using 3 integers to store anything with
type-safe version that uses std::variant that ensures that all bonuses
are in correct state.

Also removed "interesting" solutions like storing primary skills using
bit shifts.

Prerequirement for HotA campaign support
2025-06-15 17:01:14 +03:00
9762e8493a Add TRANSMUTATION_IMMUNITY bonus 2025-06-15 14:36:29 +03:00
0e2463f9c4 Improvements to skeleton transformer logic 2025-06-15 14:36:29 +03:00
e0de65d56c Reworked & fixed DARKNESS bonuses and lookout tower / skyship logic 2025-06-15 14:36:29 +03:00
a305ed28bb Support for loading custom bonuses, slightly less hardcoded Skeleton
Transformer
2025-06-15 14:36:29 +03:00
ae22de3ccf Implemented configurable FEAR ability 2025-06-15 14:36:29 +03:00
139f41c9b2 Implement STACK_EXPERIENCE_GAIN_PERCENT bonus
Suggested on Discord

- implements STACK_EXPERIENCE_GAIN_PERCENT that modifies stack
experience received by units after combat
- removed "EXPERIENCE" primary skill. Changes to experience are now
applied through separate netpack
2025-06-02 21:21:20 +03:00
ee066397c3 Stepping into an obstacle, such as moat will now prevent unit from
attacking
2025-05-29 11:24:24 +03:00
cc6f65d8da Resolve Sonar issues in server code 2025-05-27 22:02:13 +03:00
043075a719 Merge branch 'vcmi:develop' into cheats 2025-05-23 20:38:11 +02:00
508c54c23a Fix game startup 2025-05-23 15:18:07 +03:00
1666a5a7e5 Prefer dynamic_cast to unsafe static_cast, fix Sonar 2025-05-23 14:17:43 +03:00
aa9b13b66a Statistics is now managed as part of CGameHandler 2025-05-23 14:17:42 +03:00
af20b39fe6 Reduce non-const access to gamestate on server 2025-05-23 14:17:25 +03:00
8255a4b9ae CGameHandler no longer inherits CGameInfoCallback, reduce direct access
to gamestate
2025-05-23 14:17:25 +03:00
263ba46da6 Merge branch 'develop' into cheats 2025-05-22 21:33:29 +02:00
3f83ad1b40 Merge pull request #5726 from IvanSavenko/breath
Configurable multi-hex attacks
2025-05-21 17:10:59 +03:00
b806775f3a Merge pull request #5727 from IvanSavenko/enchanter
Remove hardcoded mass-casting of ENCHANTER bonus
2025-05-21 13:52:06 +03:00
550d4d76eb Merge pull request #5730 from IvanSavenko/rewardable_creature_fix
Fix handling of creatures in configurable town buildings
2025-05-21 13:51:43 +03:00
e769efe46a Merge pull request #5729 from dydzio0614/gameplay-improvements
Gameplay improvements
2025-05-21 13:51:34 +03:00
07662a070f Merge pull request #5724 from IvanSavenko/randomization
Better randomization logic
2025-05-21 13:50:28 +03:00
323231fc30 Merge pull request #5720 from SoundSSGood/artifact-charges
Charged artifacts
2025-05-21 13:49:14 +03:00
95ce9ce509 Fix handling of creatures in configurable town buildings
- Fixed removal of partial stacks of creatures
- It is now possible to give units via town building, but only if
visitor has slots to take them
2025-05-20 22:36:20 +03:00
ef2ff78ee8 Remove default 16 total heroes limit 2025-05-20 20:40:06 +02:00
c2ae0559ee Remove hardcoded mass-casting of ENCHANTER bonus 2025-05-20 16:18:44 +03:00
e90d8c318d Configurable multi-hex attacks
- Added bonus type MULTIHEX_UNIT_ATTACK - configurable version of Dragon
Breath.
- Added bonus type MULTIHEX_ENEMY_ATTACK - configurable version of
Cerberi multi-headed attack that only hits enemies
- Added bonus type MULTIHEX_ANIMATION - optional bonus that does not
affects gameplay, but allows to define in which cases game should use
alternative attack animation.
- All existing multi-hex attack bonuses other than ATTACKS_ALL_ADJACENT
are presumable deprecated, but will be supported for now.
- It is now possible to precisely configure which hexes are targeted by
MULTIHEX_XXX bonuses. See docs for details.
- Unified logic of all multi-hex attacks, all existing bonuses are now
implemented as specific case of MULTIHEX_XXX bonus
- Added tests to cover Cerberi attack logic, and fixed incorrect edge
case of Dragon Breath
2025-05-20 15:08:59 +03:00
a6cf671a68 Fix sonar & json 2025-05-19 21:09:41 +03:00
cc5f47a085 Fix inability to save game 2025-05-19 21:01:52 +03:00
157b4fea74 Random with history for combat abilities 2025-05-19 18:51:42 +03:00
87323f08d9 Random-with-history for luck & morale rolls 2025-05-19 18:51:42 +03:00
cc274c4d34 GameRandomizer is now in lib, add implementation 2025-05-19 18:51:42 +03:00
54a46b77a9 Extract library entity randomization logic to separate class 2025-05-19 18:51:42 +03:00
ed8ba52ed8 Merge pull request #5722 from IvanSavenko/wandering_month_fix
Fix crash on spawning wandering monsters on new month
2025-05-19 14:44:58 +03:00
e45acaff3b format fix 2025-05-19 09:15:39 +02:00
d102f660a0 color filter cheats 2025-05-19 02:48:13 +02:00
01bc8f2078 format cheat table 2025-05-18 22:07:35 +02:00
4a1d8efb7b add RoE and AB cheats 2025-05-18 22:05:15 +02:00
57f0c5f50c Fix crash on spawning wandering monsters on new month 2025-05-18 11:05:13 +03:00
e85b1d4c1c suggested changes 2025-05-17 19:01:04 +02:00
051381d4db Docs 2025-05-17 15:06:09 +02:00
f614a8a7f5 Discharging conditions 2025-05-16 23:26:42 +02:00
fcc9b8ecfa Artifacts discharging 2025-05-16 23:24:36 +02:00