Skip to content

Commit

Permalink
Merge pull request #79 from dnd-side-project/fix/db
Browse files Browse the repository at this point in the history
[BLOOM-077] Enum 값 추가
  • Loading branch information
Dompoo authored Aug 21, 2024
2 parents d98eb08 + 9196097 commit a1f03b7
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,10 @@ class StaticPlantSimpleMessageProvider {

private fun makeSimpleFertilizerDescription(plant: Plant): String {
return when (plant.fertilizer) {
Fertilizer.DEMAND -> "봄, 여름에 2~4주 간격으로 주기"
Fertilizer.NOT_DEMAND -> "비료를 주지 않아도 괜찮습니다."
Fertilizer.LOW_DEMAND -> "봄, 여름에 4~8주 간격으로 주기"
Fertilizer.DEMAND -> "봄, 여름에 2~4주 간격으로 주기"
Fertilizer.HIGH_DEMAND -> "봄, 여름에 2~3주 간격으로 주기"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,8 @@ enum class Difficulty(
"고수식집사",
"필요함",
),
VERY_HIGH(
"고수식집사",
"특별 관리 요구",
),
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ enum class Fertilizer(
val periodWeek: Int,
val apiName: String,
) {
NOT_DEMAND(
12,
"비료를 요구하지 않음",
),
LOW_DEMAND(
8,
"비료를 거의 요구하지 않음",
Expand All @@ -12,4 +16,8 @@ enum class Fertilizer(
4,
"비료를 보통 요구함",
),
HIGH_DEMAND(
4,
"비료를 많이 요구함",
),
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ enum class GrowTemperature(
val lowTemperature: Int,
val highTemperature: Int,
) {
GROW_TEMPERATURE_10_25(
10,
15,
),
GROW_TEMPERATURE_16_20(
16,
20,
Expand Down

0 comments on commit a1f03b7

Please sign in to comment.