From 9fbf55127d31b03cf068ed4a28a8ac1c202a8906 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 15 Jun 2024 14:25:40 -0500 Subject: [PATCH] sourcetype lookup fix --- src/engine/Enum.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/engine/Enum.java b/src/engine/Enum.java index bbfdb3be..2a191595 100644 --- a/src/engine/Enum.java +++ b/src/engine/Enum.java @@ -960,6 +960,17 @@ public class Enum { Wizardry; public static SourceType GetSourceType(String modName) { + switch(modName){ + case "Slashing": + modName = "Slash"; + break; + case "Crushing": + modName = "Crush"; + break; + case "Piercing": + modName = "Pierce"; + break; + } SourceType returnMod; if (modName.isEmpty()) return SourceType.None;