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

123 Commits

Author SHA1 Message Date
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
7466d7452d vcmiscrolls 2024-09-05 15:51:45 +03:00
30fa2846aa ArtifactUtils::createArtifact ArtifactUtils::createNewArtifactInstance unified 2024-09-04 21:25:55 +03: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
39e5ba32f6 Merge pull request #4530 from IvanSavenko/town_fortifications
Support for configurable town fortifications
2024-08-31 13:59:40 +03:00
e15ea4fc75 BulkEraseArtifacts network pack 2024-08-29 20:22:08 +03:00
36c1ed670f Support for configurable town fortifications
Removed most of hardcoded checks for fort level or for presence of fort/
citadel/castle buildings.

It is now possible to define which parts of town fortifications are
provided by town buildings

Configuration for H3-like fortifications is provided in
buildingsLibrary.json and will be used automatically by mods as long as
mods have buidings named "fort", "citadel" and "castle".

Alternatively, mods can separately define:
- hitpoints of walls (shared value for all sections)
- hitpoints of central, upper and lower towers (separate values)
- presence of moat
- shooters for each tower (separate values)
2024-08-28 19:42:14 +00:00
462aea7e9a Fix build 2024-08-28 13:12:11 +00:00
10a9d777c7 Moved mana and movement points refresh to NewTurnProcessor 2024-08-28 13:03:15 +00:00
691a1a666d Moved most of town growth handling to NewTurnProcessor 2024-08-28 13:03:13 +00:00
d49a61645c All objects that can be owned by player now implement IOwnableObject 2024-08-28 12:51:28 +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
232a759db7 Remove type registration from library pack applying 2024-08-26 19:48:46 +00:00
39bb6d5f39 IMarket now able to store artifacts 2024-08-20 18:49:47 +03:00
2f3f3c21df Rename town building types to more clear names 2024-08-19 11:47:13 +00:00