1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00
Commit Graph

138 Commits

Author SHA1 Message Date
417ea6451a Remove ConstTransitivePtr from hero and town instances 2025-04-27 14:57:30 +03:00
ce89a0d21b Merge pull request #5609 from SoundSSGood/end-of-battle-infowindows
End of battle infowindows refactoring
2025-04-15 22:50:35 +03:00
6d8bf24f94 Invalidate hero bonuses on moving to another terrain 2025-04-13 22:23:36 +03:00
975d9aedc9 Merge branch 'vcmi/beta' into 'vcmi/develop' 2025-04-13 18:53:54 +03:00
60afbbe20f Necromancy & Eagle eye infowindows 2025-04-09 10:13:10 +02:00
603672ff51 revert some changes 2025-04-07 17:00:24 +02:00
dcbf12ef26 Fix rare crash on merging two stacks in town garrison with stack
artifacts equipped
2025-04-06 18:44:44 +03:00
f0a9c95075 ArtInfoWindow on client. Client side 2025-04-06 13:47:32 +02: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
62cb5412ff CGameState::map is now a private, unique_ptr with accessors 2025-03-08 14:05:14 +00:00
b6026084ea StartInfo in gamestate now use unique_ptr 2025-03-08 14:04:51 +00:00
82506d5eff Removed ConstTransitivePtr from StackLocation 2025-03-08 14:04:51 +00:00
645b95ba02 Renamed LibClasses * VLC to GameLibrary * LIBRARY 2025-02-21 16:54:56 +00:00
2362c6da21 Fixes for multiple new issues from Sonar 2025-02-21 15:57:39 +00:00
e829d723b2 Replace global bonus tree change counter with per-node counter 2025-01-12 12:23:07 +00:00
14320fb100 Fix spawned wandering monsters not correctly attached to bonus system 2025-01-12 11:06:45 +00:00
970d7d795f Remove object from owned objects before resetting owner 2024-12-08 11:26:21 +00:00
16d25e903c Remove flaggable bonus on object deletion 2024-12-05 21:55:32 +01:00
7be31c94f2 Fixes from code review 2024-12-05 21:16:06 +01:00
e9be46af98 Merge branch 'develop' into timed_events_objects_removal 2024-12-03 17:27:24 +01:00
c3b63a1bef Merge pull request #4857 from Laserlicht/delete
Delete saves / random maps
2024-11-16 17:28:23 +02:00
ef46a87e69 ask assemble artifact dialog fix 2024-11-10 16:50:58 +02:00
697d63d2b8 Reworked and fixed gendered hero sprites on adventure map 2024-11-07 10:39:23 +00:00
0e5711f8bf Merge branch 'develop' into delete 2024-11-06 23:28:57 +01:00
1f0847660b possibility to delete unsupported saves 2024-10-31 21:57:20 +01:00
c98ac01e7a Replaced public artType member of ArtifactInstance with getter 2024-10-30 16:47:01 +00:00
c25aef8f48 Merge pull request #4766 from SoundSSGood/fused-artifacts
Fused artifacts
2024-10-16 15:08:20 +03:00
86d5c05ffa Fused identical artifacts 2024-10-15 16:51:29 +03:00
10ad0fc760 Split CHeroHandler.cpp/.h into 1 file per class
All parts of CHeroHandler.cpp are now in lib/entities/hero
Adjusted includes to use new paths
No functionality changes
2024-10-13 14:01:09 +00:00
d4d3ddf685 fused artifacts 2024-10-12 16:43:04 +03:00
3dd4fa2528 Reduce usage of pointers to VLC entities
Final goal (of multiple PR's) is to remove all remaining pointers from
serializeable game state, and replace them with either identifiers or
with shared/unique pointers.

CGTownInstance::town and CGHeroInstance::type members have been removed.
Now this data is computed dynamically using subID member.

VLC entity of a town can now be accessed via following methods:
- getFactionID() returns ID of a faction
- getFaction() returns pointer to a faction
- getTown() returns pointer to a town

VLC entity of a hero can now be accessed via following methods:
- getHeroTypeID() returns ID of a hero
- getHeroClassID() returns ID of a hero class
- getHeroType() returns pointer to a hero
- getHeroClass() returns pointer to a hero class
2024-10-10 12:28:08 +00:00
81f0222c68 Merge pull request #4741 from IvanSavenko/serialize_local_state
Serialize local state of player interface
2024-10-10 15:03:14 +03:00
a8f8c3f4b1 Replaced most of accesses to CGObjectInstance::pos with anchorPoint() 2024-10-09 15:43:46 +00:00
679181c103 Implemented serialization of local player state in json form 2024-10-08 20:04:32 +00:00
a826b88641 Merge branch 'develop' into spell 2024-10-07 12:55:23 +02:00
c472b2ce5e BulkEraseArtifacts crash fix 2024-10-04 15:19:57 +03:00
9c6bd20159 code review 2024-10-01 16:32:28 +02:00
713fcd6543 research per day & seperate config 2024-09-30 02:40:28 +02:00
99f49ee6ad Remove objects deleted by event from owned objects list 2024-09-29 00:10:09 +02:00
d929bfb9d1 rename; introduce factor 2024-09-28 15:05:13 +02:00
3559f9f923 HMI for spell research 2024-09-28 01:47:32 +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
735af83294 castSpellThisTurn to bool var 2024-09-18 21:24:27 +02:00
0aaafc4c8a cast without skip 2024-09-14 15:10:24 +02:00
cb5df096c1 Added per-team tracking of scouted state of an object 2024-09-12 12:11:17 +00:00
785036836c Rewardable objects may now define guards. Converted Crypt to rewardable. 2024-09-12 12:10:40 +00:00
8225eb454e Added GameSettings to gamestate, potentially allowing to define game
settings per map (or in random map template)
2024-09-05 15:16:27 +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