|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
package de.banananetwork.dsa.currencies;
|
|
|
|
|
|
|
|
|
|
public enum CoinType {
|
|
|
|
|
public enum Currency {
|
|
|
|
|
// TODO Transfer from constant values to variable ones
|
|
|
|
|
// TODO Add some other currencies (https://de.wiki-aventurica.de/wiki/Aventurische_W%C3%A4hrungen)
|
|
|
|
|
MITTELREICH_KREUZER(1), // Base Value
|
|
|
|
@ -11,11 +11,11 @@ public enum CoinType {
|
|
|
|
|
|
|
|
|
|
private final int multiplier;
|
|
|
|
|
|
|
|
|
|
CoinType(int multiplier) {
|
|
|
|
|
Currency(int multiplier) {
|
|
|
|
|
this.multiplier = multiplier;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
CoinType(CoinType reference, int multiplier) {
|
|
|
|
|
Currency(Currency reference, int multiplier) {
|
|
|
|
|
this.multiplier = reference.multiplier * multiplier;
|
|
|
|
|
}
|
|
|
|
|
|