diff options
| author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-04-13 05:46:08 +0200 |
|---|---|---|
| committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-04-13 05:46:08 +0200 |
| commit | 3d06b454d2cb2b92766dd3967ec0c97d2df17bf3 (patch) | |
| tree | 96fe64c0559934daf3d592d29e1d46055d550826 /src/main/java/at/hannibal2/skyhanni/data/model | |
| parent | 274bd74d397da5b43b900d0f766ce7825e079061 (diff) | |
| download | skyhanni-3d06b454d2cb2b92766dd3967ec0c97d2df17bf3.tar.gz skyhanni-3d06b454d2cb2b92766dd3967ec0c97d2df17bf3.tar.bz2 skyhanni-3d06b454d2cb2b92766dd3967ec0c97d2df17bf3.zip | |
added composter empty time
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data/model')
| -rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/model/ComposterUpgrade.kt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/model/ComposterUpgrade.kt b/src/main/java/at/hannibal2/skyhanni/data/model/ComposterUpgrade.kt new file mode 100644 index 000000000..83a106ca8 --- /dev/null +++ b/src/main/java/at/hannibal2/skyhanni/data/model/ComposterUpgrade.kt @@ -0,0 +1,18 @@ +package at.hannibal2.skyhanni.data.model + +enum class ComposterUpgrade(val displayName: String) { + COMPOSTER_SPEED("Composter Speed"), + ORGANIC_MATTER_CAP("Organic Matter Cap"), + MULTI_DROP("Multi Drop"), + COST_REDUCTION("Cost Reduction"), + FUEL_CAP("Fuel Cap"), + ; + + companion object { + private fun regexValues() = values().joinToString("|") { it.displayName } + + val regex = "§a(?<name>${regexValues()})(?: (?<level>.*))?".toPattern() + + fun getByName(name: String) = values().firstOrNull { it.displayName == name } + } +}
\ No newline at end of file |
