Skip to content

Commit

Permalink
ganzhi element
Browse files Browse the repository at this point in the history
  • Loading branch information
tommitoan committed Aug 11, 2024
1 parent 5242a3b commit 47ca0f7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions internal/ultis/get_ganzhi.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,19 +71,19 @@ func GetGanzhi(sign string) (string, string, int) {
mainElement := ""
valueElement := 0
switch {
case strings.Contains(element, "Fire"):
case strings.Contains(element, "fire"):
mainElement = "Fire"
valueElement = 2
case strings.Contains(element, "Wood"):
case strings.Contains(element, "wood"):
mainElement = "Wood"
valueElement = 3
case strings.Contains(element, "Water"):
case strings.Contains(element, "water"):
mainElement = "Water"
valueElement = 1
case strings.Contains(element, "Earth"):
case strings.Contains(element, "earth"):
mainElement = "Earth"
valueElement = 5
case strings.Contains(element, "Gold"):
case strings.Contains(element, "gold"):
mainElement = "Metal"
valueElement = 4
default:
Expand Down

0 comments on commit 47ca0f7

Please sign in to comment.