From d22d032152bd488a480ee2d83be587eed376bd8c Mon Sep 17 00:00:00 2001 From: Branden J Brown Date: Sat, 17 Jan 2026 00:39:24 -0500 Subject: [PATCH] don't show cooldown on passives --- go.mod | 2 +- go.sum | 4 ++++ skill.go | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index 16c7a73..1b22b0d 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module git.sunturtle.xyz/zephyr/horsebot go 1.24.1 require ( - git.sunturtle.xyz/zephyr/horse v0.0.0-20260117050435-e6032f995f00 + git.sunturtle.xyz/zephyr/horse v0.0.0-20260117053525-5a1194358bf4 github.com/disgoorg/disgo v0.19.0-rc.15 ) diff --git a/go.sum b/go.sum index d8aea5b..6316265 100644 --- a/go.sum +++ b/go.sum @@ -8,6 +8,10 @@ git.sunturtle.xyz/zephyr/horse v0.0.0-20260117043014-a86aa0daebfe h1:fgTarB04AHO git.sunturtle.xyz/zephyr/horse v0.0.0-20260117043014-a86aa0daebfe/go.mod h1:qGXO/93EfCOI1oGSLqrRkPDF/EAdsgLNZJjRKx+i4Lk= git.sunturtle.xyz/zephyr/horse v0.0.0-20260117050435-e6032f995f00 h1:L7h4Guiibjm7A0RK1/carM3CCsdOsOJwOqWBLgFF0H0= git.sunturtle.xyz/zephyr/horse v0.0.0-20260117050435-e6032f995f00/go.mod h1:qGXO/93EfCOI1oGSLqrRkPDF/EAdsgLNZJjRKx+i4Lk= +git.sunturtle.xyz/zephyr/horse v0.0.0-20260117053235-43d02b4b00ee h1:cURyTAeJbX7zaWiaWQZS8m5LZe+T4vv7GL6j400TKnc= +git.sunturtle.xyz/zephyr/horse v0.0.0-20260117053235-43d02b4b00ee/go.mod h1:qGXO/93EfCOI1oGSLqrRkPDF/EAdsgLNZJjRKx+i4Lk= +git.sunturtle.xyz/zephyr/horse v0.0.0-20260117053525-5a1194358bf4 h1:T2nFw6bz4JrvWkoy4UsM2pWOC0ayXzbVr9Meg+HhT7w= +git.sunturtle.xyz/zephyr/horse v0.0.0-20260117053525-5a1194358bf4/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/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/disgoorg/disgo v0.19.0-rc.15 h1:x0NsV2gcbdjwuztsg2wYXw76p1Cpc8f6ByDrkPcfQtU= diff --git a/skill.go b/skill.go index 00c0ddd..c190142 100644 --- a/skill.go +++ b/skill.go @@ -67,7 +67,7 @@ func RenderSkill(id horse.SkillID, all map[horse.SkillID]horse.Skill, groups map abils = append(abils, a.String()) } t += strings.Join(abils, ", ") - if act.Cooldown < 500e4 { + if act.Cooldown > 0 && act.Cooldown < 500e4 { t += " on " + act.Cooldown.String() + "s cooldown" } text = append(text, t)