Skip to content

Commit

Permalink
chore: update versions
Browse files Browse the repository at this point in the history
  • Loading branch information
BigJk committed May 17, 2024
1 parent 509567f commit b17fbf5
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 62 deletions.
12 changes: 10 additions & 2 deletions game/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -951,11 +951,19 @@ func (s *Session) ActiveTeller() *StoryTeller {
return nil
}

slices.SortFunc(teller, func(a, b *StoryTeller) bool {
slices.SortFunc(teller, func(a, b *StoryTeller) int {
aOrder, _ := a.Active(CreateContext("type_id", a.ID))
bOrder, _ := b.Active(CreateContext("type_id", b.ID))

return aOrder.(float64) > bOrder.(float64)
if aOrder.(float64) > bOrder.(float64) {
return 1
}

if aOrder.(float64) < bOrder.(float64) {
return -1
}

return 0
})

return teller[0]
Expand Down
39 changes: 20 additions & 19 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,17 @@ require (
github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161
github.com/BigJk/crt v0.0.14
github.com/BigJk/imeji v0.0.3
github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d
github.com/alexeyco/simpletable v1.0.0
github.com/atotto/clipboard v0.1.4
github.com/charmbracelet/bubbles v0.15.0
github.com/charmbracelet/bubbletea v0.25.0
github.com/charmbracelet/glamour v0.6.0
github.com/charmbracelet/harmonica v0.2.0
github.com/charmbracelet/lipgloss v0.7.1
github.com/charmbracelet/log v0.1.2
github.com/charmbracelet/ssh v0.0.0-20221117183211-483d43d97103
github.com/charmbracelet/wish v1.1.0
github.com/charmbracelet/lipgloss v0.10.0
github.com/charmbracelet/log v0.4.0
github.com/charmbracelet/ssh v0.0.0-20240401141849-854cddfa2917
github.com/charmbracelet/wish v1.4.0
github.com/faiface/beep v1.1.0
github.com/fatih/structs v1.1.0
github.com/gobeam/stringy v0.0.6
Expand All @@ -40,10 +42,10 @@ require (
github.com/samber/lo v1.38.1
github.com/sanity-io/litter v1.5.5
github.com/spf13/viper v1.15.0
github.com/stretchr/testify v1.8.4
github.com/stretchr/testify v1.9.0
github.com/yuin/gopher-lua v1.1.0
golang.org/x/exp v0.0.0-20221126150942-6ab00d035af9
golang.org/x/sys v0.13.0
golang.org/x/exp v0.0.0-20231006140011-7918f672742d
golang.org/x/sys v0.18.0
gopkg.in/yaml.v3 v3.0.1
oss.terrastruct.com/d2 v0.4.1
)
Expand All @@ -52,18 +54,18 @@ require (
cdr.dev/slog v1.4.2-0.20221206192828-e4803b10ae17 // indirect
cloud.google.com/go/logging v1.7.0 // indirect
github.com/PuerkitoBio/goquery v1.8.1 // indirect
github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d // indirect
github.com/alecthomas/chroma v0.10.0 // indirect
github.com/alecthomas/chroma/v2 v2.5.0 // indirect
github.com/alexeyco/simpletable v1.0.0 // indirect
github.com/andybalholm/cascadia v1.3.2 // indirect
github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be // indirect
github.com/anthonynsimon/bild v0.13.0 // indirect
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
github.com/aymerick/douceur v0.2.0 // indirect
github.com/caarlos0/sshmarshal v0.1.0 // indirect
github.com/charmbracelet/keygen v0.3.0 // indirect
github.com/charmbracelet/keygen v0.5.0 // indirect
github.com/charmbracelet/x/errors v0.0.0-20240117030013-d31dba354651 // indirect
github.com/charmbracelet/x/exp/term v0.0.0-20240328150354-ab9afc214dfd // indirect
github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81 // indirect
github.com/creack/pty v1.1.21 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dlclark/regexp2 v1.8.1 // indirect
github.com/dop251/goja v0.0.0-20230122112309-96b1610dd4f7 // indirect
Expand All @@ -89,13 +91,12 @@ require (
github.com/mattn/go-localereader v0.0.1 // indirect
github.com/mazznoer/csscolorparser v0.1.3 // indirect
github.com/microcosm-cc/bluemonday v1.0.26 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/muesli/cancelreader v0.2.2 // indirect
github.com/olekukonko/tablewriter v0.0.5 // indirect
github.com/pelletier/go-toml/v2 v2.0.6 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/rivo/uniseg v0.4.4 // indirect
github.com/rivo/uniseg v0.4.7 // indirect
github.com/sahilm/fuzzy v0.1.0 // indirect
github.com/spf13/afero v1.9.3 // indirect
github.com/spf13/cast v1.5.0 // indirect
Expand All @@ -107,15 +108,15 @@ require (
github.com/yuin/goldmark v1.5.3 // indirect
github.com/yuin/goldmark-emoji v1.0.1 // indirect
go.opencensus.io v0.24.0 // indirect
golang.org/x/crypto v0.14.0 // indirect
golang.org/x/crypto v0.21.0 // indirect
golang.org/x/exp/shiny v0.0.0-20230817173708-d852ddb80c63 // indirect
golang.org/x/image v0.12.0 // indirect
golang.org/x/mobile v0.0.0-20230922142353-e2f452493d57 // indirect
golang.org/x/net v0.17.0 // indirect
golang.org/x/sync v0.3.0 // indirect
golang.org/x/term v0.13.0 // indirect
golang.org/x/text v0.13.0 // indirect
golang.org/x/time v0.3.0 // indirect
golang.org/x/net v0.22.0 // indirect
golang.org/x/sync v0.6.0 // indirect
golang.org/x/term v0.18.0 // indirect
golang.org/x/text v0.14.0 // indirect
golang.org/x/time v0.5.0 // indirect
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
gonum.org/v1/plot v0.12.0 // indirect
google.golang.org/genproto v0.0.0-20230222225845-10f96fb3dbec // indirect
Expand Down
Loading

0 comments on commit b17fbf5

Please sign in to comment.