-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d3eb4da
commit 1cc86d4
Showing
37 changed files
with
309 additions
and
326 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 6 additions & 9 deletions
15
src/main/java/thedarkcolour/futuremc/block/villagepillage/ComposterRarity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
package thedarkcolour.futuremc.block.villagepillage | ||
|
||
// inlined because there's no reason for an actual enum aha | ||
inline class ComposterRarity(val chance: Byte) { | ||
companion object { | ||
val COMMON = ComposterRarity(30) | ||
val UNCOMMON = ComposterRarity(50) | ||
val RARE = ComposterRarity(65) | ||
val EPIC = ComposterRarity(85) | ||
val LEGENDARY = ComposterRarity(100) | ||
} | ||
object ComposterRarity { | ||
val COMMON = 30.toByte() | ||
val UNCOMMON = 50.toByte() | ||
val RARE = 65.toByte() | ||
val EPIC = 85.toByte() | ||
val LEGENDARY = 100.toByte() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
1cc86d4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rip the multiple close didn't work
1cc86d4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah lol