mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 13:09:11 +00:00
Changed condition summary to use filter names
This commit is contained in:
1 parent
04679a3406
commit
72c6c004b0
5 files changed
+5
-5
No files matched your search
+1
-1
@@ -57,7 +57,7 @@ public class ConditionHasEffect extends AbilityCondition {
|
||||
|
||||
@Override
|
||||
public String getConditionSummary() {
|
||||
String filterLabel = StatCollector.translateToLocal("condition.filter." + getFilter().name().toLowerCase());
|
||||
String filterLabel = StatCollector.translateToLocal(getFilter().toString());
|
||||
String effectName = "None";
|
||||
if (effectId >= 0) {
|
||||
CustomEffect effect = getEffect();
|
||||
|
||||
+1
-1
@@ -60,7 +60,7 @@ public class ConditionHitCount extends AbilityCondition {
|
||||
|
||||
@Override
|
||||
public String getConditionSummary() {
|
||||
String filterLabel = StatCollector.translateToLocal("condition.filter." + getFilter().name().toLowerCase());
|
||||
String filterLabel = StatCollector.translateToLocal(getFilter().toString());
|
||||
return "[" + filterLabel + "] Hit " + requiredHits + " times in " + withinTicks + " ticks";
|
||||
}
|
||||
|
||||
|
||||
@@ -152,7 +152,7 @@ public class ConditionItem extends AbilityCondition {
|
||||
|
||||
@Override
|
||||
public String getConditionSummary() {
|
||||
String filterLabel = StatCollector.translateToLocal("condition.filter." + getFilter().name().toLowerCase());
|
||||
String filterLabel = StatCollector.translateToLocal(getFilter().toString());
|
||||
String usage = usageType.name();
|
||||
String item = itemName.isEmpty() ? "None" : itemName;
|
||||
return "[" + filterLabel + "] " + usage + ": " + item;
|
||||
|
||||
+1
-1
@@ -52,7 +52,7 @@ public class ConditionQuestCompleted extends AbilityCondition {
|
||||
|
||||
@Override
|
||||
public String getConditionSummary() {
|
||||
String filterLabel = StatCollector.translateToLocal("condition.filter." + getFilter().name().toLowerCase());
|
||||
String filterLabel = StatCollector.translateToLocal(getFilter().toString());
|
||||
String questName = "None";
|
||||
if (questId >= 0) {
|
||||
Quest q = QuestController.Instance.quests.get(questId);
|
||||
|
||||
+1
-1
@@ -124,7 +124,7 @@ public abstract class ConditionThreshold extends AbilityCondition {
|
||||
|
||||
@Override
|
||||
public String getConditionSummary() {
|
||||
String filterLabel = StatCollector.translateToLocal("condition.filter." + getFilter().name().toLowerCase());
|
||||
String filterLabel = StatCollector.translateToLocal(getFilter().toString());
|
||||
String typeName = getStatName();
|
||||
String typeLabel = StatCollector.translateToLocal(thresholdType.toString());
|
||||
String value = percent
|
||||
|
||||
Reference in new issue
Block a user