mention owners of uniques

This commit is contained in:
2026-01-23 23:57:11 -05:00
parent f4f563c530
commit 1dae50a918
3 changed files with 16 additions and 4 deletions

2
go.mod
View File

@@ -3,7 +3,7 @@ module git.sunturtle.xyz/zephyr/horsebot
go 1.25.5 go 1.25.5
require ( require (
git.sunturtle.xyz/zephyr/horse v0.0.0-20260123040553-4bfb06b6826f git.sunturtle.xyz/zephyr/horse v0.0.0-20260124043736-5bf2588d41c2
github.com/disgoorg/disgo v0.19.0-rc.15 github.com/disgoorg/disgo v0.19.0-rc.15
github.com/junegunn/fzf v0.67.0 github.com/junegunn/fzf v0.67.0
) )

4
go.sum
View File

@@ -1,5 +1,5 @@
git.sunturtle.xyz/zephyr/horse v0.0.0-20260123040553-4bfb06b6826f h1:S287bkj7whgs5NY0u3ih4Ggy+2LTrnfHY3K/smfv9dU= git.sunturtle.xyz/zephyr/horse v0.0.0-20260124043736-5bf2588d41c2 h1:eZ9aMAEmP1oB9X36DN4rm9otMoT0axeIlwo+xmqYsig=
git.sunturtle.xyz/zephyr/horse v0.0.0-20260123040553-4bfb06b6826f/go.mod h1:qGXO/93EfCOI1oGSLqrRkPDF/EAdsgLNZJjRKx+i4Lk= git.sunturtle.xyz/zephyr/horse v0.0.0-20260124043736-5bf2588d41c2/go.mod h1:qGXO/93EfCOI1oGSLqrRkPDF/EAdsgLNZJjRKx+i4Lk=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/disgoorg/disgo v0.19.0-rc.15 h1:x0NsV2gcbdjwuztsg2wYXw76p1Cpc8f6ByDrkPcfQtU= github.com/disgoorg/disgo v0.19.0-rc.15 h1:x0NsV2gcbdjwuztsg2wYXw76p1Cpc8f6ByDrkPcfQtU=

View File

@@ -18,13 +18,25 @@ func RenderSkill(id horse.SkillID, all map[horse.SkillID]horse.Skill, groups map
} }
thumburl := fmt.Sprintf("https://gametora.com/images/umamusume/skill_icons/utx_ico_skill_%d.png", s.IconID) thumburl := fmt.Sprintf("https://gametora.com/images/umamusume/skill_icons/utx_ico_skill_%d.png", s.IconID)
r := discord.NewContainer(discord.NewSection(discord.NewTextDisplayf("## %s\n%s", s.Name, s.Description)).WithAccessory(discord.NewThumbnail(thumburl))) top := "## " + s.Name
if s.UniqueOwner != "" {
top += "\n-# " + s.UniqueOwner
}
r := discord.NewContainer(
discord.NewSection(
discord.NewTextDisplay(top),
discord.NewTextDisplay(s.Description),
).WithAccessory(discord.NewThumbnail(thumburl)),
)
var skilltype string var skilltype string
switch { switch {
case s.Rarity == 3, s.Rarity == 4, s.Rarity == 5: case s.Rarity == 3, s.Rarity == 4, s.Rarity == 5:
// unique of various star levels // unique of various star levels
r.AccentColor = 0xaca4d4 r.AccentColor = 0xaca4d4
skilltype = "Unique Skill" skilltype = "Unique Skill"
case s.UniqueOwner != "":
r.AccentColor = 0xcccccc
skilltype = "Inherited Unique"
case s.Rarity == 2: case s.Rarity == 2:
// rare (gold) // rare (gold)
r.AccentColor = 0xd7c25b r.AccentColor = 0xd7c25b