This commit is contained in:
@@ -248,25 +248,8 @@ defmodule CobblemonUi.TypeChart do
|
||||
def type_text_color(_), do: "text-base-content/50"
|
||||
|
||||
@doc """
|
||||
Returns a heroicon name for each type.
|
||||
Returns the static asset path for a type's SVG icon.
|
||||
"""
|
||||
def type_icon("normal"), do: "hero-minus-circle"
|
||||
def type_icon("fire"), do: "hero-fire"
|
||||
def type_icon("water"), do: "hero-beaker"
|
||||
def type_icon("grass"), do: "hero-puzzle-piece"
|
||||
def type_icon("electric"), do: "hero-bolt"
|
||||
def type_icon("ice"), do: "hero-cloud"
|
||||
def type_icon("fighting"), do: "hero-hand-raised"
|
||||
def type_icon("poison"), do: "hero-beaker"
|
||||
def type_icon("ground"), do: "hero-globe-americas"
|
||||
def type_icon("flying"), do: "hero-paper-airplane"
|
||||
def type_icon("psychic"), do: "hero-eye"
|
||||
def type_icon("bug"), do: "hero-bug-ant"
|
||||
def type_icon("rock"), do: "hero-cube"
|
||||
def type_icon("ghost"), do: "hero-moon"
|
||||
def type_icon("dragon"), do: "hero-star"
|
||||
def type_icon("dark"), do: "hero-moon"
|
||||
def type_icon("steel"), do: "hero-shield-check"
|
||||
def type_icon("fairy"), do: "hero-sparkles"
|
||||
def type_icon(_), do: "hero-question-mark-circle"
|
||||
def type_icon_path(type) when type in @types, do: "/images/types/#{type}.svg"
|
||||
def type_icon_path(_), do: nil
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user