diff options
| author | historia <[not public]> | 2026-07-18 03:40:02 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-07-18 03:40:02 -0400 |
| commit | db8ca1fe26a36b78074a424ae657b2cbb9b3af19 (patch) | |
| tree | 9219f320de74f27cb5491e3cb6b0258c5713f0cb /internal/game/cmd_shop.go | |
| parent | 467944adfa41673a3758d9622873abbe7ae35a49 (diff) | |
| download | thehouseoficarus-db8ca1fe26a36b78074a424ae657b2cbb9b3af19.tar.gz | |
feat(admin): admin color page more accurately represents game
Diffstat (limited to 'internal/game/cmd_shop.go')
| -rw-r--r-- | internal/game/cmd_shop.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/game/cmd_shop.go b/internal/game/cmd_shop.go index e47c84d..e9f16b8 100644 --- a/internal/game/cmd_shop.go +++ b/internal/game/cmd_shop.go @@ -209,8 +209,8 @@ func (g *Game) showShopInventory(sess *net.Session, mob *world.MobInstance) { t.Rows = append(t.Rows, []string{ g.itemColorize(sess, c.def, c.name), fmt.Sprintf("%d", c.stock), - g.colorize(sess, "credits_pickup", fmt.Sprintf("%d cr", value)), - g.colorize(sess, "credits_pickup", sellStr), + g.colorize(sess, "currency_pickup", fmt.Sprintf("%d cr", value)), + g.colorize(sess, "currency_pickup", sellStr), }) } for _, line := range t.Render(unicode, wrapWidth) { @@ -292,7 +292,7 @@ func (g *Game) doShopBuy(sess *net.Session, mob *world.MobInstance, input string g.AccountStore.SaveCharacter(p) itemColor := g.itemColorize(sess, c.def, c.name) - credits := g.colorize(sess, "credits_pickup", fmt.Sprintf("%d", total)) + credits := g.colorize(sess, "currency_pickup", fmt.Sprintf("%d", total)) if taken == 1 { sess.WriteLine(fmt.Sprintf("You buy a %s for %s credits.", itemColor, credits)) } else { @@ -355,7 +355,7 @@ func (g *Game) doShopSell(sess *net.Session, mob *world.MobInstance, input strin g.MobStore.ShopAdd(mob.InstanceID, match.ID, actualQty) g.AccountStore.SaveCharacter(p) - credits := g.colorize(sess, "credits_pickup", fmt.Sprintf("%d", total)) + credits := g.colorize(sess, "currency_pickup", fmt.Sprintf("%d", total)) if actualQty == 1 { sess.WriteLine(fmt.Sprintf("You sell a %s for %s credits.", itemColor, credits)) } else { |
