|
@@ -1,18 +1,19 @@
|
|
|
package org.leumasjaffe.charsheet.model.features.impl;
|
|
package org.leumasjaffe.charsheet.model.features.impl;
|
|
|
|
|
|
|
|
|
|
+import org.leumasjaffe.charsheet.model.features.DDFeaturePredicate;
|
|
|
import org.leumasjaffe.charsheet.model.features.DDProperty;
|
|
import org.leumasjaffe.charsheet.model.features.DDProperty;
|
|
|
|
|
|
|
|
import lombok.AllArgsConstructor;
|
|
import lombok.AllArgsConstructor;
|
|
|
|
|
|
|
|
@AllArgsConstructor
|
|
@AllArgsConstructor
|
|
|
public class PerSpellLevel implements DDProperty {
|
|
public class PerSpellLevel implements DDProperty {
|
|
|
- String applies;
|
|
|
|
|
|
|
+ DDFeaturePredicate applies;
|
|
|
Group group;
|
|
Group group;
|
|
|
int value;
|
|
int value;
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public boolean appliesTo(String key) {
|
|
public boolean appliesTo(String key) {
|
|
|
- return applies.equals(key);
|
|
|
|
|
|
|
+ return applies.accepts(key);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@SuppressWarnings("unchecked")
|
|
@SuppressWarnings("unchecked")
|