perfect conc

This commit is contained in:
2024-02-25 21:43:25 -06:00
parent e4274994ff
commit 7ff879ea64
2 changed files with 25 additions and 2 deletions
@@ -950,6 +950,7 @@ public enum CombatManager {
} catch (Exception e) {
Logger.error(ac.getName() + ' ' + errorTrack + ' ' + e);
e.printStackTrace();
}
}
@@ -47,9 +47,9 @@ public abstract class AbstractEffectModifier {
this.modType = ModType.GetModType(this.effectType);
this.type = rs.getString("type").replace("\"", "");
this.sourceType = SourceType.GetSourceType(this.type.replace(" ", "").replace("-", ""));
this.minMod = rs.getFloat("minMod");
this.minMod = getConcMin(rs.getString("IDString"),rs.getFloat("minMod"));
this.maxMod = rs.getFloat("maxMod");
this.percentMod = rs.getFloat("percentMod");
this.percentMod = getConcPercentMod(rs.getString("IDString"),rs.getFloat("percentMod"));
this.ramp = rs.getFloat("ramp");
this.useRampAdd = (rs.getInt("useRampAdd") == 1) ? true : false;
@@ -57,7 +57,29 @@ public abstract class AbstractEffectModifier {
this.string2 = rs.getString("string2");
}
public static float getConcMin(String idString,float current){
switch(idString){
case "POT-014A":
case "POT-013A":
case "POT-012A":
case "POT-011A":
case "POT-010A":
return 60;
case "POT-015B":
return 50;
}
return current;
}
public static float getConcPercentMod(String idString, float current) {
switch (idString) {
case "POT-018A":
return 150;
case "POT-017A":
return -40;
}
return current;
}
public int getUUID() {
return this.UUID;
}