aboutsummaryrefslogtreecommitdiff
path: root/internal/game/sys_technology.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/sys_technology.go')
-rw-r--r--internal/game/sys_technology.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/internal/game/sys_technology.go b/internal/game/sys_technology.go
index a24c66d..bb48375 100644
--- a/internal/game/sys_technology.go
+++ b/internal/game/sys_technology.go
@@ -202,14 +202,14 @@ func (g *Game) tryRecharge(sess *net.Session, p *player.Player, input string) bo
instances := g.World.FindObjInstances(p.RoomID, lower)
for _, st := range instances {
if st.DefID == "charging_station" || st.DefID == "power_conduit" {
- if p.Battery >= p.MaxBattery() {
- sess.WriteLine("\nYour battery is already full.")
- } else {
- p.Battery = p.MaxBattery()
- g.AccountStore.SaveCharacter(p)
- sess.WriteLine(g.colorize(sess, "battery",
- "\nYou connect to the charging station. Your battery is fully recharged."))
- }
+ if p.Battery >= p.MaxBattery() {
+ sess.WriteLine("Your battery is already full.")
+ } else {
+ p.Battery = p.MaxBattery()
+ g.AccountStore.SaveCharacter(p)
+ sess.WriteLine(g.colorize(sess, "battery",
+ "You connect to the charging station. Your battery is fully recharged."))
+ }
return true
}
}