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

163 Commits

Author SHA1 Message Date
7ffe014d6b Remove allowed artifacts list from arthandler
1. Handlers should not contain non-const game state data
2. This field was duplicating same field in CMap
3. Due to removal of VLC serialization, this field is not updated on map
load leading to issues with artifact randomization
2023-12-11 15:06:04 +02:00
abad4b01ce Remove explicit convesion to int in operators 2023-11-15 15:55:19 +02:00
0842f5afee Removed remaining usages of std::vector<bool> 2023-11-15 15:55:18 +02:00
0691dfef3b Moved stateful artifact randomization logic to gamestate from handler 2023-11-08 21:27:05 +02:00
54103813dd Remove no longer used serialization methods 2023-11-08 21:27:05 +02:00
3880ea58b9 Merge branch 'josch/dos2unix' into develop 2023-10-22 18:39:03 +03:00
a1a5bc28c2 convert line endings from CRLF (Windows) to LF (Linux/Unix)
Mixed line endings cause problems when exporting patches with
git-format-patch and then trying to "git am" a patch with mixed and
non-matching line endings. In such a situation git will fail to apply
the patch.

This commit runs the dos2unix tools on the remaining files with CRLF
(\r\n) line endings to convert them to line-feeds (\n) only.

Files that are Windows specific like *.vcxproj and *.props files were
not converted.

Closes: #3073
2023-10-19 16:23:21 +02:00
aa0b064154 Fixed randomization of artifacts on some custom maps 2023-10-16 00:12:38 +03:00
b21a361b99 Merge pull request #2814 from SoundSSGood/arts-counter-impovements
Artifacts counter impovements
2023-10-01 17:53:51 +03:00
a83f290e13 bulk move artifacts only equipped, only backpack 2023-09-19 13:31:42 +03:00
82eb2f8a2b Artifact assembling changes 2023-09-12 19:17:35 +03:00
025b0814c8 + Handled banning spells and artifacts
+ Rename allowedSpell => allowedSpells
2023-07-17 17:21:28 +02:00
9b5f6ec7cf CArtifact getters setters 2023-07-05 15:48:08 +03:00
fd9c7352a0 suggested changes 2023-07-03 22:54:03 +03:00
060aecc61c CArtifact refactoring 2023-06-30 19:41:26 +03:00
d44821e733 CArtifactInstance moved to own file 2023-06-30 19:41:19 +03:00
58fc2efd41 CGrowingArtifactInstance 2023-06-30 19:41:12 +03:00
f8023ad283 CScrollArtifactInstance 2023-06-30 19:41:04 +03:00
07c811dd67 CCombinedArtifactInstance refactoring 2023-06-30 19:40:57 +03:00
8751d9ab8b CArtifactInstance::putAt, CArtifactInstance::removeFrom, CArtifactInstance::move interface unified. Small optimization. 2023-06-24 19:01:36 +03:00
f6c2d5cba7 hotfix 2023-06-07 13:08:04 +03:00
1366825f08 final fixup 2023-05-24 16:10:06 +03:00
5b281e6a9e setNewArtSlot 2023-05-17 17:02:58 +03:00
f0feeeac6e putArtifact, removeArtifact 2023-05-17 17:01:22 +03:00
021f94a579 artifact utils 2023-05-17 17:00:31 +03:00
a6de9097be vcmi: rename HeroBonus.h to Bonus.h 2023-05-02 11:20:58 +03:00
1d34c73c2d vcmi: split CBonusSystemNode, BonusParams and prop
More splitting of HeroBonus.h
2023-05-02 00:54:53 +03:00
6fa1b2b19f vcmi: move bonuses to its own folder 2023-05-02 00:53:50 +03:00
1f4897e841 CArtifactSet::getSlotByInstance 2023-04-23 14:48:04 +03:00
4bb4d7e7a5 Merge pull request #1989 from SoundSSGood/refactoring-arts-p1
Artifact related code refactoring part1 (initial)
2023-04-19 15:31:11 +03:00
a1e8d95028 vcmi: rework CArtHandler 2023-04-17 12:32:47 +03:00
7a5775a9f9 vcmi: use std::optional 2023-04-17 00:43:13 +03:00
9a838598a6 arts refactoring part1 2023-04-15 00:10:39 +03:00
11b237a23c vcmi: massive refactoring v1 2023-04-05 22:33:12 +03:00
f0f9eecf97 Backpack limit part5. End of battle. Other stuff 2023-03-21 12:14:33 +02:00
9f8aa25297 Backpack limit part4 (Using cheats, buying) 2023-03-21 12:14:33 +02:00
e23766280f Backpack limit part2 (Pick up, Dig up, Object rewards) 2023-03-21 12:14:33 +02:00
96e8a1f21c Backpack limit part1 (move, disassemble) 2023-03-21 12:14:33 +02:00
72122fb433 CArtifact, CArtifactInstance, CCombinedArtifactInstance reorganization 2023-03-21 12:14:33 +02:00
383387ef29 Integrated defaultMods into mod system 2023-03-16 17:55:09 +02:00
4c4498b22a vcmi: modernize rest of lib 2023-03-16 17:55:20 +03:00
e24eb6cc12 regression fixed 2023-03-08 17:20:38 +02:00
a364e39b50 vcmi: remove old war machine code 2023-03-05 19:12:47 +03:00
5f181e25af vcmi: modernize lib/mapObjects 2023-02-14 14:39:56 +03:00
47c1803c42 Finalization of refactoring:
- Entity interface now has getNameTranslated & getNameTextID methods
- Entity interface no longer has getName method
- removed (most) usages of normalizeIndentifier workaround method
- all moddable objects have identifier in form of mod:name
- all moddable object register strings in form of mod.type.name
2023-01-20 15:18:36 +02:00
388ed88b5d All artifact strings now pass through translator 2023-01-20 15:18:36 +02:00
a0568823a9 swap contitutient 2023-01-11 13:17:33 +02:00
4005b48360 Regressions fixed 2023-01-08 23:31:12 +02:00
6b7ce798d0 artifactTransitionPos created 2023-01-08 23:24:13 +02:00
45a3064e5d suggested changes 2022-11-30 18:28:33 +02:00