From 6321a7d75dd004bf7c1395cf137486f61b9ceeb4 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Sat, 3 Aug 2024 18:54:49 +1000 Subject: [PATCH] Update StarClientApplication.cpp --- source/client/StarClientApplication.cpp | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/source/client/StarClientApplication.cpp b/source/client/StarClientApplication.cpp index 7faf7ec..c84f489 100644 --- a/source/client/StarClientApplication.cpp +++ b/source/client/StarClientApplication.cpp @@ -852,11 +852,21 @@ void ClientApplication::updateRunning(float dt) { if (tag == "playerName") return Text::stripEscapeCodes(m_player->name()); if (tag == "playerHealth") - return strf("{}/{} HP", m_player->health(), m_player->maxHealth()); + return toString(m_player->health()); + if (tag == "playerMaxHealth") + return toString(m_player->maxHealth()); if (tag == "playerEnergy") - return strf("{}/{} HP", m_player->energy(), m_player->maxEnergy()); + return toString(m_player->energy()); + if (tag == "playerMaxEnergy") + return toString(m_player->maxEnergy()); if (tag == "playerBreath") - return strf("{}/{} HP", m_player->breath(), m_player->maxBreath()); + return toString(m_player->breath()); + if (tag == "playerMaxBreath") + return toString(m_player->maxBreath()); + if (tag == "playerXPos") + return toString(round(m_player->position().x())); + if (tag == "playerYPos") + return toString(round(m_player->position().y())); if (tag == "worldName") { if (m_universeClient->clientContext()->playerWorldId().is()) return "Player Ship";