forked from External/mage
fix Twitching Doll counter type
small refactor to CountersSourceCount for counters of any type
This commit is contained in:
parent
3738165ad2
commit
23a8434552
7 changed files with 8 additions and 25 deletions
|
|
@ -150,6 +150,7 @@ public enum CounterType {
|
|||
MUSIC("music"),
|
||||
MUSTER("muster"),
|
||||
NECRODERMIS("necrodermis"),
|
||||
NEST("nest"),
|
||||
NET("net"),
|
||||
NIGHT("night"),
|
||||
OIL("oil"),
|
||||
|
|
@ -260,8 +261,6 @@ public enum CounterType {
|
|||
|
||||
/**
|
||||
* Get counter string name.
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public String getName() {
|
||||
return this.name;
|
||||
|
|
@ -273,8 +272,6 @@ public enum CounterType {
|
|||
|
||||
/**
|
||||
* Create instance of counter type with amount equal to 1.
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public Counter createInstance() {
|
||||
return createInstance(1);
|
||||
|
|
@ -285,7 +282,6 @@ public enum CounterType {
|
|||
* given type.
|
||||
*
|
||||
* @param amount amount of counters of the given type.
|
||||
* @return
|
||||
*/
|
||||
public Counter createInstance(int amount) {
|
||||
switch (this) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue