added cardutil method for incrementing map values

This commit is contained in:
Evan Kranzler 2021-11-29 21:34:04 -05:00
parent 90ae244fa5
commit e3b2ac15ba
28 changed files with 57 additions and 30 deletions

View file

@ -1452,4 +1452,8 @@ public final class CardUtil {
effect.apply(game, source);
return true;
}
public static <T> int setOrIncrementValue(T u, Integer i) {
return i == null ? 1 : Integer.sum(i, 1);
}
}