Skip to content

Commit

Permalink
add MSDoubleValueKey
Browse files Browse the repository at this point in the history
to add "BitingStrikeChance"
  • Loading branch information
mudzereli committed Sep 20, 2024
1 parent 1885146 commit fe8382a
Show file tree
Hide file tree
Showing 25 changed files with 2,614 additions and 30 deletions.
Binary file modified .vs/mudsort/v17/.suo
Binary file not shown.
29 changes: 29 additions & 0 deletions Enums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,33 @@ public enum MSBoolValueKey
Dyeable = 100//,
//AwayFromKeyboard = 110
}

public enum MSDoubleValueKey
{
SlashProt = 167772160,
PierceProt = 167772161,
BludgeonProt = 167772162,
AcidProt = 167772163,
LightningProt = 167772164,
FireProt = 167772165,
ColdProt = 167772166,
Heading = 167772167,
ApproachDistance = 167772168,
SalvageWorkmanship = 167772169,
Scale = 167772170,
Variance = 167772171,
AttackBonus = 167772172,
Range = 167772173,
DamageBonus = 167772174,
ManaRateOfChange = 5,
MeleeDefenseBonus = 29,
ManaTransferEfficiency = 87,
HealingKitRestoreBonus = 100,
ManaStoneChanceDestruct = 137,
ManaCBonus = 144,
BitingStrikeChance = 147,
MissileDBonus = 149,
MagicDBonus = 150,
ElementalDamageVersusMonsters = 152
}
}
2 changes: 1 addition & 1 deletion PluginCore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ public void rebuildLstSortSettings()
id = 2;
} else if (iFlag.key is MSLongValueKey) {
id = 3;
} else if (iFlag.key is DoubleValueKey) {
} else if (iFlag.key is MSDoubleValueKey) {
id = 4;
} else if (iFlag.key is MSBoolValueKey) {
id = 5;
Expand Down
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// 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.6.3.0")]
[assembly: AssemblyFileVersion("1.6.3.0")]
[assembly: AssemblyVersion("1.6.4.0")]
[assembly: AssemblyFileVersion("1.6.4.0")]
9 changes: 5 additions & 4 deletions SortFlag.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public class SortFlag

public static SortFlag OBJECT_CLASS = new SortFlag("ObjectClass",0x29D1,"OC", "OC");
public static SortFlag CALCED_TOTAL_RATINGS = new SortFlag("CalcedTotalRatings", 0x29D1, "TR", "TR");
//public static SortFlag BITING_STRIKE = new SortFlag("BitingStrikeChance", 0x29CE, "BS", "BS");

public String name;
public String code;
Expand Down Expand Up @@ -59,7 +60,7 @@ static SortFlag() {
ArrayList enums = new ArrayList();
enums.AddRange(Enum.GetValues(typeof(MSStringValueKey)));
enums.AddRange(Enum.GetValues(typeof(MSLongValueKey)));
enums.AddRange(Enum.GetValues(typeof(DoubleValueKey)));
enums.AddRange(Enum.GetValues(typeof(MSDoubleValueKey)));
enums.AddRange(Enum.GetValues(typeof(MSBoolValueKey)));
foreach (var key in enums)
{
Expand Down Expand Up @@ -120,7 +121,7 @@ static SortFlag() {
{
keyIcon = 0x29CD;
}
else if (key is DoubleValueKey)
else if (key is MSDoubleValueKey)
{
keyIcon = 0x29CE;
}
Expand Down Expand Up @@ -166,7 +167,7 @@ public static SortFlag decode(String decode)

public String valueOf(WorldObject obj)
{
if (key is DoubleValueKey)
if (key is MSDoubleValueKey)
{
return (((int) ((Double) directValueOf(obj) * 100)).ToString());
}
Expand Down Expand Up @@ -199,7 +200,7 @@ public Object directValueOf(WorldObject obj)
{
return obj.Values((LongValueKey)key);
}
else if (key is DoubleValueKey)
else if (key is MSDoubleValueKey)
{
return obj.Values((DoubleValueKey)key);
}
Expand Down
8 changes: 4 additions & 4 deletions app.config
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8" ?>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="mudsort.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="mudsort.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false"/>
</sectionGroup>
</configSections>
<userSettings>
Expand Down Expand Up @@ -30,4 +30,4 @@
</setting>
</mudsort.Properties.Settings>
</userSettings>
</configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/></startup></configuration>
Binary file modified bin/Release/Decal.Adapter.dll
Binary file not shown.
Loading

0 comments on commit fe8382a

Please sign in to comment.