Browse Source

sourcetype lookup fix

lakebane-new
FatBoy-DOTC 6 months ago
parent
commit
9fbf55127d
  1. 11
      src/engine/Enum.java

11
src/engine/Enum.java

@ -960,6 +960,17 @@ public class Enum {
Wizardry; Wizardry;
public static SourceType GetSourceType(String modName) { 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; SourceType returnMod;
if (modName.isEmpty()) if (modName.isEmpty())
return SourceType.None; return SourceType.None;

Loading…
Cancel
Save