Skip to content

Commit

Permalink
Add KCL flag for trick + high gravity
Browse files Browse the repository at this point in the history
  • Loading branch information
KillzXGaming committed May 7, 2022
1 parent 06b86a2 commit 1334a72
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ public string GetSpecialTypeName(ushort attribute)
if (specialFlag == 0x10) return CollisionCalculator.SpecialType[1];
if (specialFlag == 0x20) return CollisionCalculator.SpecialType[2];
if (specialFlag == 0x40) return CollisionCalculator.SpecialType[3];
if (specialFlag == 0x80) return CollisionCalculator.SpecialType[4];
if (specialFlag == 0x50) return CollisionCalculator.SpecialType[4];
if (specialFlag == 0x80) return CollisionCalculator.SpecialType[5];

return "None";
}
Expand Down Expand Up @@ -345,7 +346,8 @@ public void Calculate()
if (SpecialTypeIdx == 1) Attribute += 0x1000;
if (SpecialTypeIdx == 2) Attribute += 0x2000;
if (SpecialTypeIdx == 3) Attribute += 0x4000;
if (SpecialTypeIdx == 4) Attribute += 0x8000;
if (SpecialTypeIdx == 4) Attribute += 0x5000;
if (SpecialTypeIdx == 5) Attribute += 0x8000;

AttributeCalculated?.Invoke(this, EventArgs.Empty);
}
Expand Down
3 changes: 2 additions & 1 deletion Plugins/TurboLibrary/Editors/FileLoaders/KclPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,8 @@ public PrismProperties(NodeBase node, ushort id) {
if (specialFlag == 0x10) SpecialFlag = CollisionCalculator.SpecialType[1];
if (specialFlag == 0x20) SpecialFlag = CollisionCalculator.SpecialType[2];
if (specialFlag == 0x40) SpecialFlag = CollisionCalculator.SpecialType[3];
if (specialFlag == 0x80) SpecialFlag = CollisionCalculator.SpecialType[4];
if (specialFlag == 0x50) SpecialFlag = CollisionCalculator.SpecialType[4];
if (specialFlag == 0x80) SpecialFlag = CollisionCalculator.SpecialType[5];
}
}

Expand Down

0 comments on commit 1334a72

Please sign in to comment.