toString ftw
This commit is contained in:
parent
8562456203
commit
d020dd384b
2 changed files with 10 additions and 0 deletions
|
@ -298,4 +298,9 @@ public class DungeonPack
|
|||
WeightedContainer<DungeonData> resultContainer = (WeightedContainer<DungeonData>) WeightedRandom.getRandomItem(random, weights);
|
||||
return (resultContainer != null) ? resultContainer.getData() : null;
|
||||
}
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return this.name;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -45,4 +45,9 @@ public class DungeonType implements Comparable<DungeonType>
|
|||
final int prime = 2039;
|
||||
return prime * ID;
|
||||
}
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return this.Name+" owned by "+this.Owner;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue