-
-
Notifications
You must be signed in to change notification settings - Fork 23
[WIP] Conversion of treasures into artifacts #2474
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
IhateTrains
wants to merge
74
commits into
master
Choose a base branch
from
treasures
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 64 commits
Commits
Show all changes
74 commits
Select commit
Hold shift + click to select a range
2a9c5de
Treasure and TreasureManager classes
IhateTrains 8a94f8c
Load treasures from save
IhateTrains cbb0a7c
Merge branch 'master' into treasures
IhateTrains 9df6d97
Begin work on ImportArtifacts function
IhateTrains afc0b03
TODO
IhateTrains dbd0191
Merge branch 'master' into treasures
IhateTrains 7560bec
Merge branch 'master' into treasures
IhateTrains df01650
Merge branch 'master' into treasures
IhateTrains 21ec47b
Merge branch 'master' into treasures
IhateTrains dd5918b
ImportArtifact base
IhateTrains e620a07
Rename HolySiteEffectMapper to ModifierMapper
IhateTrains 12efe22
ModifierCollection for CK3 modifiers
IhateTrains 355f41d
Update CharacterCollection.cs
IhateTrains f2b309b
Update CharacterCollection.cs
IhateTrains 752e40a
Merge branch 'master' into treasures
IhateTrains 2c9ec4c
Merge branch 'master' into treasures
IhateTrains f5d6e69
Merge branch 'master' into treasures
IhateTrains 87643a3
Merge branch 'master' into treasures
IhateTrains ba2e6bd
Merge branch 'master' into treasures
IhateTrains a48fcc7
Merge branch 'master' into treasures
IhateTrains 5e723f5
Merge branch 'master' into treasures
IhateTrains 6428179
Merge branch 'master' into treasures
IhateTrains d93481c
Merge branch 'master' into treasures
IhateTrains a87e690
Merge branch 'master' into treasures
IhateTrains 27a2f22
Merge branch 'master' into treasures
IhateTrains 4b7e56e
Merge branch 'master' into treasures
IhateTrains dc475f7
Merge branch 'master' into treasures
IhateTrains 66d459b
Merge branch 'master' into treasures
IhateTrains ef63015
Merge branch 'master' into treasures
IhateTrains 47d3a7b
Merge branch 'master' into treasures
IhateTrains 963f956
Merge branch 'master' into treasures
IhateTrains 1f93e77
Merge branch 'master' into treasures
IhateTrains ae90d51
Merge branch 'master' into treasures
IhateTrains 0927725
Merge branch 'master' into treasures
IhateTrains 2e83362
Merge branch 'master' into treasures
IhateTrains c57b830
Post-merge fixes
IhateTrains e948774
Merge branch 'master' into treasures
IhateTrains d09a420
Merge branch 'master' into treasures
IhateTrains 81a5e71
Post-merge fix
IhateTrains b8d8a98
Implement mappings loading in ArtifactVisualsMapper
IhateTrains eddb1f3
ArtifactVisualsMapper.GetVisual
IhateTrains 1d65d8a
Merge branch 'master' into treasures
IhateTrains 0a49785
Post-merge fix
IhateTrains eee2bcd
Use ArtifactVisualsMapper in ImportArtifact
IhateTrains 68ce469
Add ck3Type to artifact mappings
IhateTrains c8fac68
Merge branch 'master' into treasures
IhateTrains ad20a9d
Exception fix and cleanup
IhateTrains 4e49056
Add mapping for cr_treasure_skins_of_the_gorilla_03 treasure icon
IhateTrains 5890daa
Update explanation in artifact_map.txt
IhateTrains e251464
Merge branch 'master' into treasures
IhateTrains 51f5436
Merge branch 'master' into treasures
IhateTrains 2a6612e
Merge branch 'master' into treasures
IhateTrains 0bce016
Merge branch 'master' into treasures
IhateTrains e9a0f94
Merge branch 'master' into treasures
IhateTrains 73e4bf8
Merge branch 'master' into treasures
IhateTrains 7bd91f8
Merge branch 'master' into treasures
IhateTrains 8dd5f48
Merge branch 'master' into treasures
IhateTrains 5928e76
Merge branch 'master' into treasures
IhateTrains 115c0d8
Merge branch 'master' into treasures
IhateTrains 983e718
Merge branch 'master' into treasures
IhateTrains 27cd328
Merge branch 'master' into treasures
IhateTrains 2e77440
Merge branch 'master' into treasures
IhateTrains d9f7d10
Merge branch 'master' into treasures
IhateTrains d35a5fb
Merge branch 'master' into treasures
IhateTrains ed4ff2b
[CodeFactor] Apply fixes
code-factor 75180c1
Post-merge fix
IhateTrains f0f8538
Simplify list construction
IhateTrains b674e05
Merge branch 'master' into treasures
IhateTrains cf2e28b
Add more modifier mappings for artifacts
IhateTrains f290793
Map more artifacts
IhateTrains 8516671
Merge branch 'master' into treasures
IhateTrains 2c3b195
Merge branch 'master' into treasures
IhateTrains afc76fc
Merge branch 'master' into treasures
IhateTrains 157c52b
Map more artifacts
IhateTrains File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| using commonItems.Collections; | ||
| using System.Collections.Generic; | ||
| using System.Text; | ||
|
|
||
| namespace ImperatorToCK3.CK3.Modifiers; | ||
|
|
||
| public class Modifier : IIdentifiable<string> { | ||
| public string Id { get; } | ||
| private readonly Dictionary<string, double> effects = new(); | ||
|
|
||
| public Modifier(string id, IDictionary<string, double> effects) { | ||
| Id = id; | ||
| this.effects = new Dictionary<string, double>(effects); | ||
| } | ||
|
|
||
| public override string ToString() { | ||
| var output = new StringBuilder(); | ||
| output.AppendLine($"{Id} = {{"); | ||
| foreach (var effect in effects) { | ||
| output.AppendLine($"\t{effect.Key} = {effect.Value}"); | ||
| } | ||
| output.AppendLine("}"); | ||
| return output.ToString(); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| using commonItems.Collections; | ||
| using System.Text; | ||
|
|
||
| namespace ImperatorToCK3.CK3.Modifiers; | ||
|
|
||
| public class ModifierCollection : IdObjectCollection<string, Modifier> { | ||
| public override string ToString() { | ||
| var output = new StringBuilder(); | ||
| foreach (var modifier in this) { | ||
| output.AppendLine(modifier.ToString()); | ||
| } | ||
| return output.ToString(); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[misspell] reported by reviewdog 🐶
"artefact" is a misspelling of "artifact"