Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
cadon committed Dec 19, 2023
2 parents f772d73 + 3a3033e commit ec41d0a
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 7 deletions.
3 changes: 3 additions & 0 deletions ARKBreedingStats/ARKBreedingStats.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,9 @@
<None Include="json\equalColorIds.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="json\values\ASA-values.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="Resources\success.wav" />
<None Include="Resources\topstat.wav" />
<None Include="Resources\failure.wav" />
Expand Down
1 change: 1 addition & 0 deletions ARKBreedingStats/NamePatterns/NamePattern.cs
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ public static Dictionary<string, string> CreateTokenDictionary(Creature creature

{ "toppercent" , (creature.topness / 10f).ToString() },
{ "baselvl" , creature.LevelHatched.ToString() },
{ "levelpretamed" , creature.levelFound.ToString() },
{ "effimp" , effImp },
{ "muta", creature.Mutations.ToString()},
{ "mutam", creature.mutationsMaternal.ToString()},
Expand Down
7 changes: 4 additions & 3 deletions ARKBreedingStats/NamePatterns/PatternEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -473,10 +473,11 @@ private void InsertText(string text)
{ "sex_lang_short_gen", "\"Male_gen\", \"Female_gen\", \"Unknown_gen\" by loc(short)" },

{ "topPercent", "Percentage of the considered stat levels compared to the top levels of the species in the library" },
{ "baselvl", "Base-level (level without manually added ones), i.e. level right after taming / hatching" },
{ "baseLvl", "Base-level (level without manually added ones), i.e. level right after taming / hatching" },
{ "levelPreTamed", "Level of the creature before it was tamed. For bred creatures equal to baseLvl" },
{ "muta", "Mutations" },
{ "mutam", "maternal mutations" },
{ "mutap", "paternal mutations" },
{ "mutaM", "maternal mutations" },
{ "mutaP", "paternal mutations" },
{ "gen", "Generation" },
{ "gena", "Generation in letters (0=A, 1=B, 26=AA, 27=AB)" },
{ "genn", "The number of creatures with the same species and the same generation plus one" },
Expand Down
2 changes: 1 addition & 1 deletion ARKBreedingStats/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
// Revision
//
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("0.59.3.2")]
[assembly: AssemblyFileVersion("0.59.4.0")]
[assembly: NeutralResourcesLanguage("en")]

2 changes: 1 addition & 1 deletion ARKBreedingStats/_manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"ARK Smart Breeding": {
"Id": "ARK Smart Breeding",
"Category": "main",
"version": "0.59.3.2"
"version": "0.59.4.0"
},
"SpeciesColorImages": {
"Id": "SpeciesColorImages",
Expand Down
2 changes: 1 addition & 1 deletion ARKBreedingStats/library/Creature.cs
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ public void CalculateLevelFound(int? levelStep)
/// <summary>
/// The total level without domesticate levels, i.e. the torpidity level + 1.
/// </summary>
public int LevelHatched => (levelsWild?[Stats.Torpidity] ?? 0) + 1;
public int LevelHatched => (levelsWild?[Stats.Torpidity] ?? 0) + 1 - (flags.HasFlag(CreatureFlags.MutagenApplied) ? isBred ? Ark.MutagenLevelUpsBred : Ark.MutagenLevelUpsNonBred : 0);

/// <summary>
/// The total current level inclusive domesticate levels.
Expand Down
3 changes: 2 additions & 1 deletion ARKBreedingStats/library/CreatureInfoGraphic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ public static Bitmap InfoGraphic(this Creature creature, CreatureCollection cc,
g.DrawString(Loc.S("W", secondaryCulture: secondaryCulture), font, fontBrush, xRightLevelValue - (int)(displayWithDomLevels ? 2 * meanLetterWidth : 0), currentYPosition, stringFormatRight);
if (displayMutatedLevels)
g.DrawString(Loc.S("M", secondaryCulture: secondaryCulture), font, fontBrush, xRightLevelMutValue - (int)(2 * meanLetterWidth), currentYPosition, stringFormatRight);
g.DrawString(Loc.S("D", secondaryCulture: secondaryCulture), font, fontBrush, xRightLevelDomValue, currentYPosition, stringFormatRight);
if (displayWithDomLevels)
g.DrawString(Loc.S("D", secondaryCulture: secondaryCulture), font, fontBrush, xRightLevelDomValue, currentYPosition, stringFormatRight);
if (displayStatValues)
g.DrawString(Loc.S("Values", secondaryCulture: secondaryCulture), font, fontBrush, xRightBrValue, currentYPosition, stringFormatRight);
int statDisplayIndex = 0;
Expand Down
12 changes: 12 additions & 0 deletions ARKBreedingStats/utils/CreatureListSorter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,18 @@ private IEnumerable<Creature> OrderList(IEnumerable<Creature> list, IComparer<ob
c => c.levelsWild[9],
c => c.levelsWild[10],
c => c.levelsWild[11],
c => c.levelsMutated?[0],
c => c.levelsMutated?[1],
c => c.levelsMutated?[2],
c => c.levelsMutated?[3],
c => c.levelsMutated?[4],
c => c.levelsMutated?[5],
c => c.levelsMutated?[6],
c => c.levelsMutated?[7],
c => c.levelsMutated?[8],
c => c.levelsMutated?[9],
c => c.levelsMutated?[10],
c => c.levelsMutated?[11],
c => c.colors[0],
c => c.colors[1],
c => c.colors[2],
Expand Down
1 change: 1 addition & 0 deletions setup.iss
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ Source: "{#ReleaseDir}\zh\*"; DestDir: "{app}\zh\"; Excludes: "*.pdb,*.xml"; Fla
Source: "{#ReleaseDir}\_manifest.json"; DestDir: "{localappdata}\{#AppName}\"; Flags: ignoreversion
Source: "{#ReleaseDir}\json\*.json"; DestDir: "{localappdata}\{#AppName}\json\"; Flags: ignoreversion
Source: "{#ReleaseDir}\json\values\values.json"; DestDir: "{localappdata}\{#AppName}\json\values\"; Flags: ignoreversion
Source: "{#ReleaseDir}\json\values\ASA-values.json"; DestDir: "{localappdata}\{#AppName}\json\values\"; Flags: ignoreversion
Source: "{#ReleaseDir}\json\values\_manifest.json"; DestDir: "{localappdata}\{#AppName}\json\values\"; Flags: ignoreversion
Source: "{#ReleaseDir}\json\ocr\*.json"; DestDir: "{localappdata}\{#AppName}\json\ocr\"; Flags: ignoreversion skipifsourcedoesntexist
Source: "{#ReleaseDirUpdater}\asb-updater.exe"; DestDir: "{app}"; Flags: ignoreversion
Expand Down

0 comments on commit ec41d0a

Please sign in to comment.