20d5b33ea6
Remove marketModes as member
...
marketModes are now generated in runtime and are not a member of
IMarket. Was not a bad change, but towns load buildings before town type
is randomized, leading to case where market modes are not actually known
when building is added to town (like random towns with market built)
Since altar requires CArtifactSet for work, IMarket will now always
contain it, but it will only be accessible if market supports altar
mode.
2024-08-27 14:07:00 +00:00
f765f212bb
Restore save compatibility
2024-08-26 20:52:37 +00:00
4035ab1550
added CMarketWindow::getMarketTitle()
2024-08-24 13:52:54 +03:00
0c5022cae8
Loading market modes from json
2024-08-24 11:51:57 +03:00
2e3e6b1553
market->getObjInstanceID()
2024-08-21 01:01:23 +03:00
58bb2b58e3
IMarket suggestions
...
Co-authored-by: Ivan Savenko <saven.ivan@gmail.com >
2024-08-20 18:49:48 +03:00
39bb6d5f39
IMarket now able to store artifacts
2024-08-20 18:49:47 +03:00
22a126cf2d
Restored replacement of town building bonuses via building upgrade
2024-08-19 11:47:13 +00:00
2f3f3c21df
Rename town building types to more clear names
2024-08-19 11:47:13 +00:00
01a9509ccb
Remove unused code, reduce includes
2024-08-19 11:47:13 +00:00
f1e63792f0
Greatly simplify town buildings logic
2024-08-19 11:47:13 +00:00
19838e2654
Fix auto-visit of configurable objects on new day
2024-08-14 17:04:42 +00:00
67132b3e7f
Fixed visitation of configurable town buildings by newly recruited heroes
...
and on building construction
2024-08-14 17:03:25 +00:00
38311244a4
Merge pull request #4402 from Laserlicht/8th_creature
...
support for 8th creature (Factory)
2024-08-14 17:04:32 +03:00
170f375179
code review
2024-08-10 00:29:30 +02:00
b4c25a148a
Merge branch 'develop' into bank_support
2024-08-09 23:36:59 +02:00
85cf33e5a8
Merge pull request #4422 from MichalZr6/fix_unsigned_to_signed
...
blockingDialog functions: the `answer` parameter can be negative
2024-08-09 15:31:45 +03:00
ffb8efc415
Merge pull request #4225 from godric3/map-editor-town-configuration-improvements
...
Map editor town configuration improvements (buildings, spells, events)
2024-08-09 15:26:33 +03:00
ffaaa7da15
blockingDialog functions: the answer
parameter can be negative
2024-08-09 00:28:28 +02:00
14bcfad7b0
fix upgrade
2024-08-06 23:28:45 +02:00
ebeeff5aa3
abstraction layer
2024-08-05 23:51:07 +02:00
3afddbbf29
replaced constant
2024-08-05 23:03:19 +02:00
1a06a2cc44
basic 8th creature support
2024-08-05 21:15:47 +02:00
47327e1642
backend
2024-08-04 17:52:40 +02:00
81e6207df0
Add helper functions for integer division rounding
...
Added set of functions that perform integer division with different
rounding modes:
- divideAndCeil - rounds up to next integer
- divideAndRound - rounds to nearest integer
- divideAndFloor - rounds to previous integer (equivalent to default
division)
Intended for use in library, where usage of floating point might lead to
desync in multiplayer games.
Replaced some cases that I knew of, including recent handicap PR
2024-08-03 13:52:14 +00:00
3e5df61946
code review
2024-07-29 22:54:42 +02:00
fa3fef8a0f
change town events to vector + use getDefaultAllowed for spells
2024-07-28 16:28:21 +02:00
5578346dac
map editor: Allow to customize town events
2024-07-28 16:28:21 +02:00
977d8e041a
generate at least one resource / creature
2024-07-26 00:55:47 +02:00
ec005593d3
growth handicap
2024-07-25 23:04:59 +02:00
bfd1e8a7c8
calculate income
2024-07-25 02:51:00 +02:00
4aa73b40c9
Split CTownHandler into smaller chunks
2024-07-21 18:21:48 +00:00
1aa391fdf8
Split CGeneralTextHandler file into 1 file per class form
...
All text processing code is now located in lib/texts.
No changes other than code being moved around and adjustment of includes
Moved without changes:
Languages.h -> texts/Languages.h
MetaString.* -> texts/MetaString.*
TextOperations.* -> texts/TextOperations.*
Split into parts:
CGeneralTextHandler.* -> texts/CGeneralTextHandler.*
-> texts/CLegacyConfigParser.*
-> texts/TextLocalizationContainer.*
-> texts/TextIdentifier.h
2024-07-20 12:55:17 +00:00
d2839c8e52
Rewardable object randomization is now always server-sided
2024-07-16 13:13:39 +00:00
63bcf7d83c
Replaced most of usages of CRandomGenerator with vstd::RNG in library
2024-07-16 13:13:07 +00:00
02e429e973
Fix typos using https://github.com/crate-ci/typos
...
Changes were reviewed manually
2024-06-24 03:47:19 +02:00
f20ef4f1b3
Fix hero order for giving bonuses in town to match H3.
2024-05-11 20:21:02 +02:00
04691c851f
Fixes issue of bonuses not correctly removed
2024-04-26 19:22:20 +02:00
738a89bb99
Market fix
2024-04-10 23:30:31 +03:00
e67e4430ba
Removed most of non-const static fields in lib. Reduced header includes.
2024-01-19 13:55:22 +02:00
a15366f5a5
Make IObjectInterface::cb non-static
2024-01-19 13:55:21 +02:00
51b7de4b98
Fix double off-by-one bug with CREATURE_GROWTH bonus
2024-01-05 16:57:44 +02:00
999db2ed78
Avoid boost::format that throws exception on invalid format string
2023-12-10 16:37:58 +02:00
2c8d0338ba
Fix error messages in log on map start
2023-11-27 14:08:49 +02:00
364977ef40
More meaningful exception messages
2023-11-22 19:11:40 +02:00
59b2cbe4d2
Fix regressions
2023-11-15 15:57:03 +02:00
6cb1f6ff11
Remove all remaining implicit conversion in lib
2023-11-15 15:55:19 +02:00
96c81be68e
Win/loss conditions now use VariantIdentifier. Removed non-implemented
...
options
2023-11-15 15:55:19 +02:00
abad4b01ce
Remove explicit convesion to int in operators
2023-11-15 15:55:19 +02:00
10e110320b
Remove std::vector<boo> from Json Serializer, simplify affected code
2023-11-15 15:55:18 +02:00