From 15b7e221b799ef107dec44ecdb294026dfd3d059 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Wed, 24 Jun 2026 22:55:35 -0400 Subject: refactor: pulled techs out to yaml files, unified numerous combat functions, broke up game object --- internal/game/action_farm.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/game/action_farm.go') diff --git a/internal/game/action_farm.go b/internal/game/action_farm.go index d8c7e00..d294c9c 100644 --- a/internal/game/action_farm.go +++ b/internal/game/action_farm.go @@ -199,7 +199,7 @@ func (g *Game) advancePlant(sess *net.Session, p *player.Player) { patchName := patchDisplayName(prefix) msg := fmt.Sprintf("You plant a %s in the %s.", seedName, patchName) if int(xp) > 0 && p.OptionBool("xp_drops") { - msg += g.colorize(sess, "xp", fmt.Sprintf(" (+%dxp frm)", int(xp))) + msg += g.formatXpDropSingle(sess, p, player.Farming, int(xp)) } sess.WriteLine(msg) @@ -292,7 +292,7 @@ func (g *Game) advanceHarvest(sess *net.Session, p *player.Player) { patchName := patchDisplayName(prefix) msg := fmt.Sprintf("You harvest %d %s from the %s.", yield, productName, patchName) if int(xp) > 0 && p.OptionBool("xp_drops") { - msg += g.colorize(sess, "xp", fmt.Sprintf(" (+%dxp frm)", int(xp))) + msg += g.formatXpDropSingle(sess, p, player.Farming, int(xp)) } sess.WriteLine(msg) -- cgit v1.2.3