toString ftw
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user