1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00
Commit Graph

271 Commits

Author SHA1 Message Date
Ivan Savenko
36f2794857 Merge pull request #6341 from kdmcser/spell_like_attack
fix limiter is invalid in SPELL_LIKE_ATTACK bonus
2025-11-23 18:40:33 +02:00
kdmcser
4222f7e01f fix limiter is invalid in SPELL_LIKE_ATTACK bonus 2025-11-23 19:04:26 +08:00
Ivan Savenko
2db925347e Merge pull request #6316 from mrhaandi/battle-ended
Add BattleEnded pack
2025-11-18 17:50:35 +02:00
Andrej Dudenhefner
497995c11f add BattleEnded pack which happens after BattleResultsApplied and losing heroes are removed 2025-11-14 12:48:46 +01:00
Andrej Dudenhefner
e72dcce8ba refactor logic to CBattleInfoCallback and leave UI in BattleFieldController, BattleActionsController
- move fromWhichHexAttack to CBattleInfoCallback
- add toWhichHexMove (unifying incoherent duplicates)
- add battleGetOccupiableHexes
- add battleCanAttackHex for spatial attack check
- add battleCanAttackUnit for non-spatial attack check
- add headDirection to Unit (removing destShiftDir from CStack)
- remove redundant game logic from selectAttackDirection
- remove redundant game logic from BattleFieldController and BattleActionsController
- fix no consideration for double-wide tail attack in BattleFlowProcessor
- fix #6302 wrong moat stopping condition
- throw exception on attacker nullptr in battleCanAttackHex, fromWhichHexAttack
- safer actionIsLegal on attack, move
- remove redundant canStackMoveHere from ui code
- throw exception on nullptr unit in battleGetOccupiableHexes
- ensure activeStack in redrawBackgroundWithHexes
- test point validity in selectAttackDirection
2025-11-13 09:15:56 +01:00
Ivan Savenko
7cabae89e3 Merge pull request #6243 from Laserlicht/battleonly
Battleonly mode
2025-11-06 14:33:44 +02:00
Ivan Savenko
bdafb47655 Do not activate Life Drain if unit is fully healed 2025-11-02 12:50:27 +02:00
Laserlicht
48e2d43c97 colorize & bugfix 2025-10-26 01:02:51 +02:00
Laserlicht
134017a7cd basic multiplayer support 2025-10-25 17:55:25 +02:00
Opuszek
8390f2f871 Review fix 2025-09-08 12:43:17 +02:00
Opuszek
698fe70684 Fix battle result if a loser retreated/surrendered and the victor has no pernament unit left 2025-09-03 13:21:56 +02:00
Opuszek
568fa41d72 Fix battle draw scenario 2025-09-01 17:11:44 +02:00
Ivan Savenko
9a66130c12 Merge pull request #5961 from Opuszek/rework_ballist_and_tower_target_acquisition
Rework ballist and tower target acquisition
2025-08-18 22:17:07 +03:00
Ivan Savenko
6328e4b4f8 Merge pull request #6002 from kdmcser/opening_battle_spells
Add addInfo support for OPENING_BATTLE_SPELL to set spell level
2025-08-14 11:19:53 +03:00
Opuszek
75f2b24b69 Fixes to tower rework 2025-08-13 21:58:54 +02:00
kdmcser
594ae27cb5 support setting spell master level in OPENING_BATTLE_SPELLS 2025-08-11 02:13:36 +08:00
Opuszek
64e4641702 Fixes lambda 2025-08-01 14:18:46 +02:00
Opuszek
f9d1d17663 Second attempt at reworking tower and ballista logic 2025-08-01 14:06:52 +02:00
Opuszek
9f5b04c1b5 Rework ballist and tower target acquisition 2025-07-31 18:04:59 +02:00
Opuszek
6b97fc306d fix berserk 2025-07-22 23:28:53 +02:00
Opuszek
ac3991b899 Rename a misleading method 2025-07-22 21:33:46 +02:00
Opuszek
c1ef3c42a9 fix formatting #3 2025-07-14 22:53:17 +02:00
Opuszek
3177d25042 fix formatting #2 2025-07-14 22:47:47 +02:00
Opuszek
fd1caf661f fix formatting 2025-07-14 22:39:28 +02:00
Opuszek
28e4e6c8cb Clean 2025-07-10 18:06:52 +02:00
Opuszek
e9f0ffed88 Make pass/force action spells take effect immediately after being reflected on an active unit 2025-07-10 18:02:39 +02:00
Opuszek
8e6af8ed78 refactor BattleFlowProcessor 2025-07-10 18:02:28 +02:00
Ivan Savenko
46072a1d60 Merge pull request #5896 from IvanSavenko/code_reorganize
Split large source files into smaller files per 1 class
2025-07-08 10:47:13 +03:00
Ivan Savenko
2ad186130f Split MapDefines file on .h per class basis 2025-07-07 18:16:42 +03:00
Ivan Savenko
200850f56f Add COMBAT_MANA_BONUS for Skyship 2025-07-06 15:36:51 +03:00
Ivan Savenko
c15f628761 Merge pull request #5743 from SoundSSGood/num-of-charges-per-spell
Charge cost for charge based spells
2025-07-02 17:07:56 +03:00
SoundSSGood
1c0ef3bdf4 Captured artifacts msg fix 2025-07-02 12:57:57 +02:00
SoundSSGood
6752ab3a75 HAS_CHARGES_LIMITER 2025-06-30 18:39:57 +02:00
Ivan Savenko
50a207de85 Fix restoring of initial mana on restarting battle 2025-06-17 19:21:41 +03:00
Ivan Savenko
0ad4e80c7d Rework and simplify logic of attaching heroes to bonus system 2025-06-17 14:37:25 +03:00
Ivan Savenko
4044e03c0a Check for win/loss after removing hero from map 2025-06-16 13:23:59 +03:00
Ivan Savenko
9762e8493a Add TRANSMUTATION_IMMUNITY bonus 2025-06-15 14:36:29 +03:00
Ivan Savenko
a305ed28bb Support for loading custom bonuses, slightly less hardcoded Skeleton
Transformer
2025-06-15 14:36:29 +03:00
Ivan Savenko
ae22de3ccf Implemented configurable FEAR ability 2025-06-15 14:36:29 +03:00
Ivan Savenko
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
Ivan Savenko
ee066397c3 Stepping into an obstacle, such as moat will now prevent unit from
attacking
2025-05-29 11:24:24 +03:00
Ivan Savenko
cc6f65d8da Resolve Sonar issues in server code 2025-05-27 22:02:13 +03:00
Ivan Savenko
aa9b13b66a Statistics is now managed as part of CGameHandler 2025-05-23 14:17:42 +03:00
Ivan Savenko
af20b39fe6 Reduce non-const access to gamestate on server 2025-05-23 14:17:25 +03:00
Ivan Savenko
8255a4b9ae CGameHandler no longer inherits CGameInfoCallback, reduce direct access
to gamestate
2025-05-23 14:17:25 +03:00
Ivan Savenko
3f83ad1b40 Merge pull request #5726 from IvanSavenko/breath
Configurable multi-hex attacks
2025-05-21 17:10:59 +03:00
Ivan Savenko
b806775f3a Merge pull request #5727 from IvanSavenko/enchanter
Remove hardcoded mass-casting of ENCHANTER bonus
2025-05-21 13:52:06 +03:00
Ivan Savenko
07662a070f Merge pull request #5724 from IvanSavenko/randomization
Better randomization logic
2025-05-21 13:50:28 +03:00
Ivan Savenko
323231fc30 Merge pull request #5720 from SoundSSGood/artifact-charges
Charged artifacts
2025-05-21 13:49:14 +03:00
Ivan Savenko
c2ae0559ee Remove hardcoded mass-casting of ENCHANTER bonus 2025-05-20 16:18:44 +03:00