Skip to content

Commit

Permalink
v1.0.1
Browse files Browse the repository at this point in the history
Added shrugoff blowflag to blow.
  • Loading branch information
akdombrowski committed Aug 7, 2021
1 parent 006ef79 commit 495cba2
Show file tree
Hide file tree
Showing 13 changed files with 41 additions and 20 deletions.
Binary file modified .vs/DontInterruptMe/v16/.suo
Binary file not shown.
2 changes: 1 addition & 1 deletion .vs/Supercharger/DontInterruptMe/codemap.dat
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<ProjectData xmlns="http://schemas.datacontract.org/2004/07/BG8.Supercharger.Features.CodeMap" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><ProjectAllTimeMostUsedData xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/><ProjectExpandedStateData xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/><ProjectFavoriteData xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/><ProjectHistoryData xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/><ProjectInCodeHighlightData xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/><ProjectMiniViewData xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/><ProjectName>DontInterruptMe</ProjectName></ProjectData>
<ProjectData xmlns="http://schemas.datacontract.org/2004/07/BG8.Supercharger.Features.CodeMap" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><ProjectAllTimeMostUsedData xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><a:KeyValueOfstringProjectItemDataOfAllTimeMostUsedDataItemIPg14zztYaWdJY9w><a:Key>SubModule.cs</a:Key><a:Value><DataItems/><ProjectItemFileName>SubModule.cs</ProjectItemFileName></a:Value></a:KeyValueOfstringProjectItemDataOfAllTimeMostUsedDataItemIPg14zztYaWdJY9w></ProjectAllTimeMostUsedData><ProjectExpandedStateData xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><a:KeyValueOfstringProjectItemDataOfExpandedStateDataItemIPg14zztYaWdJY9w><a:Key>SubModule.cs</a:Key><a:Value><DataItems/><ProjectItemFileName>SubModule.cs</ProjectItemFileName></a:Value></a:KeyValueOfstringProjectItemDataOfExpandedStateDataItemIPg14zztYaWdJY9w></ProjectExpandedStateData><ProjectFavoriteData xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><a:KeyValueOfstringProjectItemDataOfFavoriteDataItemIPg14zztYaWdJY9w><a:Key>SubModule.cs</a:Key><a:Value><DataItems/><ProjectItemFileName>SubModule.cs</ProjectItemFileName></a:Value></a:KeyValueOfstringProjectItemDataOfFavoriteDataItemIPg14zztYaWdJY9w></ProjectFavoriteData><ProjectHistoryData xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><a:KeyValueOfstringProjectItemDataOfHistoryDataItemIPg14zztYaWdJY9w><a:Key>SubModule.cs</a:Key><a:Value><DataItems><HistoryDataItem><Char>989</Char><CodeMapItemPath>SubModule#DecideAgentShrugOffBlow</CodeMapItemPath><HistoryLevel>1</HistoryLevel><HistoryTimeStamp>2021-08-07T02:05:56.6039023-05:00</HistoryTimeStamp><Line>0</Line><ParameterList>Agent, AttackCollisionData, Blow, bool</ParameterList></HistoryDataItem></DataItems><ProjectItemFileName>SubModule.cs</ProjectItemFileName></a:Value></a:KeyValueOfstringProjectItemDataOfHistoryDataItemIPg14zztYaWdJY9w></ProjectHistoryData><ProjectInCodeHighlightData xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><a:KeyValueOfstringProjectItemDataOfInCodeHighlightDataItemIPg14zztYaWdJY9w><a:Key>SubModule.cs</a:Key><a:Value><DataItems/><ProjectItemFileName>SubModule.cs</ProjectItemFileName></a:Value></a:KeyValueOfstringProjectItemDataOfInCodeHighlightDataItemIPg14zztYaWdJY9w></ProjectInCodeHighlightData><ProjectMiniViewData xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><a:KeyValueOfstringProjectItemDataOfMiniViewDataItemIPg14zztYaWdJY9w><a:Key>SubModule.cs</a:Key><a:Value><DataItems/><ProjectItemFileName>SubModule.cs</ProjectItemFileName></a:Value></a:KeyValueOfstringProjectItemDataOfMiniViewDataItemIPg14zztYaWdJY9w></ProjectMiniViewData><ProjectName>DontInterruptMe</ProjectName></ProjectData>
2 changes: 1 addition & 1 deletion .vs/Supercharger/_/DTabsHistory.dat
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<ArrayOfstring xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><string>D:0:0:{08FF9CFF-57EA-48D0-9786-F3D1B2D2EAD0}|AttackInterruptModifier.csproj|e:\akdfl\documents\github\attack-interrupt-modifier\attackinterruptmodifier\submodule.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}</string><string>D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|&lt;MiscFiles&gt;|C:\Users\akdfl\AppData\Local\JetBrains\Shared\vAny\DecompilerCache\decompiler\8462C93B-00B5-4616-9C50-6EB8281FD255\99\df00de4f\CryptographicException.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}</string><string>D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|&lt;MiscFiles&gt;|C:\Users\akdfl\AppData\Local\JetBrains\Shared\vAny\DecompilerCache\decompiler\A1CAA7B3-B6FF-4FB5-BEF0-87B0BF1633AB\30\cf135152\MbEvent`1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}</string></ArrayOfstring>
<ArrayOfstring xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><string>D:0:0:{08FF9CFF-57EA-48D0-9786-F3D1B2D2EAD0}|DontInterruptMe.csproj|e:\akdfl\documents\github\dontinterruptme\dontinterruptme\license||{8B382828-6202-11D1-8870-0000F87579D2}</string><string>D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|&lt;MiscFiles&gt;|C:\Users\akdfl\AppData\Local\Temp\~vsA918.txt||{8B382828-6202-11D1-8870-0000F87579D2}</string><string>D:0:0:{08FF9CFF-57EA-48D0-9786-F3D1B2D2EAD0}|DontInterruptMe.csproj|e:\akdfl\documents\github\dontinterruptme\dontinterruptme\readme.md||{B3984FB3-6A50-488A-A8A5-1EA6929ADF43}</string><string>D:0:0:{08FF9CFF-57EA-48D0-9786-F3D1B2D2EAD0}|DontInterruptMe.csproj|e:\akdfl\documents\github\dontinterruptme\dontinterruptme\submodule.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}</string><string>D:0:0:{08FF9CFF-57EA-48D0-9786-F3D1B2D2EAD0}|AttackInterruptModifier.csproj|e:\akdfl\documents\github\attack-interrupt-modifier\attackinterruptmodifier\submodule.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}</string><string>D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|&lt;MiscFiles&gt;|C:\Users\akdfl\AppData\Local\JetBrains\Shared\vAny\DecompilerCache\decompiler\8462C93B-00B5-4616-9C50-6EB8281FD255\99\df00de4f\CryptographicException.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}</string><string>D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|&lt;MiscFiles&gt;|C:\Users\akdfl\AppData\Local\JetBrains\Shared\vAny\DecompilerCache\decompiler\A1CAA7B3-B6FF-4FB5-BEF0-87B0BF1633AB\30\cf135152\MbEvent`1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}</string></ArrayOfstring>
1 change: 1 addition & 0 deletions DontInterruptMe.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
<Compile Include="SubModule.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<None Include="LICENSE" />
<Content Include="README.txt" />
<None Include="README.md" />
<Content Include="SubModule.xml" />
</ItemGroup>
Expand Down
25 changes: 10 additions & 15 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// General Information about an assembly is controlled through the following set
// of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("DontInterruptMe")]
[assembly: AssemblyDescription("")]
Expand All @@ -14,23 +13,19 @@
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
// Setting ComVisible to false makes the types in this assembly not visible to
// COM components. If you need to access a type in this assembly from COM, set
// the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("08ff9cff-57ea-48d0-9786-f3d1b2d2ead0")]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
// Major Version Minor Version Build Number Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
// You can specify all the values or you can default the Build and Revision
// Numbers by using the '*' as shown below: [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.1")]
[assembly: AssemblyFileVersion("1.0.1")]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Don't Interrupt Me - 1.0.0
Don't Interrupt Me

This mod _improves_ combat by eliminating interruptions to you and your mount.

Expand Down
24 changes: 24 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Don't Interrupt Me

This mod _improves_ combat by eliminating interruptions to you and your mount.

:: REQUIREMENTS ::

NONE

:: FEATURES ::
* Shrug off every blow.
* Your mount shrugs off every blow.
* You block enemy knockbacks.

:: GENERAL OTHER STUFF ::
* This modifies the code with a harmony patch.
* The xml file with managed parameters for mount rear threshold and attack interrupt threshold didn't seem to do anything.

Helpful information for modders:

Bannerlord Modding Documentation: https://docs.bannerlordmodding.com/
Harmony Patching Documentation: https://harmony.pardeike.net/articles/patching.html
TaleWorlds Modding Forums: https://forums.taleworlds.com/index.php?pages/modding/
Mount and Blade Discord: https://discordapp.com/invite/mountandblade
TW Forum - Modding Discord: https://discordapp.com/invite/ykFVJGQ
3 changes: 2 additions & 1 deletion SubModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,11 @@ public class SubModule : MBSubModuleBase
Debug.Print("blow.BlowFlag: " + blow.BlowFlag);
FileLog.Log("blow.BlowFlag: " + blow.BlowFlag);

if (victimAgent.IsMainAgent || victimAgent.IsMount && victimAgent.IsMine)
if (victimAgent.IsMainAgent || (victimAgent.IsMount && victimAgent.IsMine))
{
Debug.Print("You've shrugged off the blow. " + collisionData.DamageType + " " + collisionData.BaseMagnitude);
FileLog.Log("You've shrugged off the blow. " + collisionData.DamageType + " " + collisionData.BaseMagnitude);
blow.BlowFlag |= BlowFlags.ShrugOff;
__result = true;
}

Expand Down
2 changes: 1 addition & 1 deletion SubModule.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Module>
<Name value="DontInterruptMe" />
<Id value="DontInterruptMe" />
<Version value="v1.0.0" />
<Version value="v1.0.1" />
<SingleplayerModule value="true" />
<MultiplayerModule value="false" />
<DependedModules>
Expand Down
Binary file modified obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Binary file not shown.
Binary file modified obj/Debug/DontInterruptMe.csproj.AssemblyReference.cache
Binary file not shown.
Binary file modified obj/Debug/DontInterruptMe.dll
Binary file not shown.
Binary file modified obj/Debug/DontInterruptMe.pdb
Binary file not shown.

0 comments on commit 495cba2

Please sign in to comment.