Skip to content

Commit

Permalink
Removed redundant logging
Browse files Browse the repository at this point in the history
  • Loading branch information
emipa606 committed Nov 23, 2024
1 parent 869f0e2 commit cd234c6
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 31 deletions.
Binary file modified 1.5/Assemblies/ShowMeYourHands.dll
Binary file not shown.
6 changes: 3 additions & 3 deletions About/About.xml
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ Since modding is just a hobby for me I expect no donations to keep modding. If y
[*] Do not report errors by making a discussion-thread, I get no notification of that.
[*] If you have the solution for a problem, please post it to the GitHub repository.
[*] Use [url=https://github.com/RimSort/RimSort/releases/latest]RimSort[/url] to sort your mods
[/list]
[/list]

[url=https://steamcommunity.com/sharedfiles/filedetails/changelog/2475965842][img]https://img.shields.io/github/v/release/emipa606/ShowMeYourHands?label=latest%20version&amp;style=plastic&amp;labelColor=0070cd&amp;color=white[/img][/url]</description>
<modVersion IgnoreIfNoMatchingField="True">1.5.12</modVersion>
[url=https://steamcommunity.com/sharedfiles/filedetails/changelog/2475965842][img]https://img.shields.io/github/v/release/emipa606/ShowMeYourHands?label=latest%20version&amp;style=plastic&amp;labelColor=0070cd&amp;color=white[/img][/url] | tags: graphics, realism, customization</description>
<modVersion IgnoreIfNoMatchingField="True">1.5.13</modVersion>
</ModMetaData>
3 changes: 3 additions & 0 deletions About/Changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog for ShowMeYourHands

1.5.13 - Removed redundant logging


1.5.12 - Fixed compatiblity with CEs aiming animation


Expand Down
2 changes: 1 addition & 1 deletion About/Manifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Manifest>
<identifier>ShowMeYourHands</identifier>
<version>1.5.12</version>
<version>1.5.13</version>
<dependencies />
<incompatibleWith />
<loadBefore />
Expand Down
2 changes: 1 addition & 1 deletion About/ModSync.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<ModSyncNinjaData>
<ID>a5b440f3-8aa2-46ee-8a29-29561bb7087a</ID>
<ModName>Show Me Your Hands</ModName>
<Version>1.5.12</Version>
<Version>1.5.13</Version>
<SaveBreaking>False</SaveBreaking>
<Host name="Github">
<Owner>emipa606</Owner>
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ Since modding is just a hobby for me I expect no donations to keep modding. If y
- If you have the solution for a problem, please post it to the GitHub repository.
- Use [RimSort](https://github.com/RimSort/RimSort/releases/latest) to sort your mods




[![Image](https://img.shields.io/github/v/release/emipa606/ShowMeYourHands?label=latest%20version&style=plastic&labelColor=0070cd&color=white)](https://steamcommunity.com/sharedfiles/filedetails/changelog/2475965842)
[![Image](https://img.shields.io/github/v/release/emipa606/ShowMeYourHands?label=latest%20version&style=plastic&labelColor=0070cd&color=white)](https://steamcommunity.com/sharedfiles/filedetails/changelog/2475965842) | tags: graphics, realism, customization
Expand Down
25 changes: 3 additions & 22 deletions Source/ShowMeYourHands/HandDrawer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -394,13 +394,6 @@ private void DrawHandsOnWeapon(Thing mainHandWeapon, float aimAngle, Pawn pawn,

if (!ShowMeYourHandsMain.weaponLocations.TryGetValue(mainHandWeapon, out var location))
{
if (ShowMeYourHandsMod.instance.Settings.VerboseLogging)
{
Log.WarningOnce(
$"[ShowMeYourHands]: Could not find the position for {mainHandWeapon.def.label} from the mod {mainHandWeapon.def.modContentPack.Name}, equipped by {pawn.Name}. Please report this issue to the author of Show Me Your Hands if possible.",
mainHandWeapon.def.GetHashCode());
}

return;
}

Expand All @@ -412,22 +405,10 @@ private void DrawHandsOnWeapon(Thing mainHandWeapon, float aimAngle, Pawn pawn,
var offMeleeExtra = 0f;
var mainMelee = false;
var offMelee = false;
if (offHandWeapon != null)
if (offHandWeapon != null && ShowMeYourHandsMain.weaponLocations.ContainsKey(offHandWeapon))
{
if (!ShowMeYourHandsMain.weaponLocations.ContainsKey(offHandWeapon))
{
if (ShowMeYourHandsMod.instance.Settings.VerboseLogging)
{
Log.WarningOnce(
$"[ShowMeYourHands]: Could not find the position for {offHandWeapon.def.label} from the mod {offHandWeapon.def.modContentPack.Name}, equipped by {pawn.Name}. Please report this issue to the author of Show Me Your Hands if possible.",
offHandWeapon.def.GetHashCode());
}
}
else
{
offhandWeaponLocation = ShowMeYourHandsMain.weaponLocations[offHandWeapon].Item1;
offHandAngle = ShowMeYourHandsMain.weaponLocations[offHandWeapon].Item2;
}
offhandWeaponLocation = ShowMeYourHandsMain.weaponLocations[offHandWeapon].Item1;
offHandAngle = ShowMeYourHandsMain.weaponLocations[offHandWeapon].Item2;
}

mainHandAngle -= 90f;
Expand Down
2 changes: 1 addition & 1 deletion Source/ShowMeYourHands/ShowMeYourHands.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
<DebugType>None</DebugType>
<LangVersion>latest</LangVersion>
<FileVersion>1.5.12</FileVersion>
<FileVersion>1.5.13</FileVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Krafs.Rimworld.Ref">
Expand Down
7 changes: 6 additions & 1 deletion Source/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,10 @@
"CanRemove": "0",
"PreviewVersion": "1.5",
"SocialImageSet": true,
"FundingSet": true
"FundingSet": true,
"SearchTags": [
"graphics",
"realism",
"customization"
]
}

0 comments on commit cd234c6

Please sign in to comment.