Skip to content

Commit

Permalink
health colors probably work idk
Browse files Browse the repository at this point in the history
  • Loading branch information
SubAt0m1c committed Apr 29, 2024
1 parent f671900 commit 16ff1e1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ object DragonHealth{

private fun colorHealth(health: Float): String {
return when {
health >= 0.75 -> "§a${formatHealth(health)}"
health >= 0.5 -> "§e${formatHealth(health)}"
health >= 0.25 -> "§6${formatHealth(health)}"
health >= 750_000_000 -> "§a${formatHealth(health)}"
health >= 500_000_000 -> "§e${formatHealth(health)}"
health >= 250_000_000 -> "§6${formatHealth(health)}"
else -> "§c${formatHealth(health)}"
}
}
Expand Down

0 comments on commit 16ff1e1

Please sign in to comment.