summaryrefslogtreecommitdiff
path: root/src/main/java/tlIItools/EffectGroup.java
diff options
context:
space:
mode:
authorBenjamin J. Culkin <bjculkin@mix.wvu.edu>2020-12-31 21:04:27 -0400
committerBenjamin J. Culkin <bjculkin@mix.wvu.edu>2020-12-31 21:04:27 -0400
commitfedb385feef3fb3e3419f4fc3c7d234fe8d5caec (patch)
treec7d92ef28eb0645bc2a49fd0ea0e2a94993fc8b1 /src/main/java/tlIItools/EffectGroup.java
parent4c5e20a6e78f72a749c517c6fcc75c176155b7c5 (diff)
Work on affix groups more
Diffstat (limited to 'src/main/java/tlIItools/EffectGroup.java')
-rw-r--r--src/main/java/tlIItools/EffectGroup.java16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/main/java/tlIItools/EffectGroup.java b/src/main/java/tlIItools/EffectGroup.java
index 7938e0dd..78e0324a 100644
--- a/src/main/java/tlIItools/EffectGroup.java
+++ b/src/main/java/tlIItools/EffectGroup.java
@@ -32,6 +32,20 @@ public class EffectGroup {
/** Whether or not this effect is a 'transfer' effect (Applied to the enemy on a hit). */
public boolean isTransfer;
+ public String summary() {
+ StringBuilder sb = new StringBuilder();
+
+ // @TODO Ben Culkin 12/31/2020 :FancyEffectSummary
+ //
+ // EffectGroups should probably use something from EffectRepo to better
+ // output the summary for a particular group type
+ String fmt = "%s (name %s, damageType %s, hasDuration %s, stat %s, isBonus %s, ownerLevel %s, useGraph %s, graphOverride %s, exclusive %s, isTransfer %s)";
+
+ sb.append(String.format(fmt, type, name, damageType, hasDuration, statName, isStatBonus, ownerLevel, useGraph, graphOverride, exclusive, isTransfer));
+
+ return sb.toString();
+ }
+
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
@@ -77,4 +91,4 @@ public class EffectGroup {
&& ownerLevel == other.ownerLevel
&& useGraph == other.useGraph;
}
-} \ No newline at end of file
+}