diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2007-12-18 01:27:27 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2007-12-18 01:27:27 +0000 |
commit | 1f2b8d3d4c36c3cf30187633e4cf5bb5d0012e7c (patch) | |
tree | eb36781dbb8a76967b10f45773e6fb4949ca9b74 /src/gui/status.cpp | |
parent | 57e9dc1c0f794508335819db4eb1f80ff8836d68 (diff) | |
download | mana-client-1f2b8d3d4c36c3cf30187633e4cf5bb5d0012e7c.tar.gz mana-client-1f2b8d3d4c36c3cf30187633e4cf5bb5d0012e7c.tar.bz2 mana-client-1f2b8d3d4c36c3cf30187633e4cf5bb5d0012e7c.tar.xz mana-client-1f2b8d3d4c36c3cf30187633e4cf5bb5d0012e7c.zip |
Updated attribute system to the latest design decisions (removed charisma, kept agility in)
Diffstat (limited to 'src/gui/status.cpp')
-rw-r--r-- | src/gui/status.cpp | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/src/gui/status.cpp b/src/gui/status.cpp index 323a6b16..b0a92665 100644 --- a/src/gui/status.cpp +++ b/src/gui/status.cpp @@ -108,7 +108,7 @@ StatusWindow::StatusWindow(LocalPlayer *player): mStatsReflexPoints = new gcn::Label("% Reflex:"); */ // New labels - for (int i = 0; i < 7; i++) { + for (int i = 0; i < 6; i++) { mStatsLabel[i] = new gcn::Label(); mStatsDisplayLabel[i] = new gcn::Label(); mPointsLabel[i] = new gcn::Label("0"); @@ -131,7 +131,7 @@ StatusWindow::StatusWindow(LocalPlayer *player): int totalLabelY = mStatsTotalLabel->getY(); mStatsCostLabel->setPosition(170, totalLabelY); - for (int i = 0; i < 7; i++) + for (int i = 0; i < 6; i++) { mStatsLabel[i]->setPosition(5, mStatsTotalLabel->getY() + (i * 23) + 15); @@ -163,7 +163,7 @@ StatusWindow::StatusWindow(LocalPlayer *player): add(mStatsTitleLabel); add(mStatsTotalLabel); add(mStatsCostLabel); - for(int i = 0; i < 7; i++) + for(int i = 0; i < 6; i++) { add(mStatsLabel[i]); add(mStatsDisplayLabel[i]); @@ -224,19 +224,18 @@ void StatusWindow::update() // Stats Part // ---------- - const std::string attrNames[7] = { + const std::string attrNames[6] = { "Strength", "Agility", "Dexterity", "Vitality", "Intelligence", - "Willpower", - "Charisma" + "Willpower" }; int statusPoints = mPlayer->getAttributeIncreasePoints(); // Update labels - for (int i = 0; i < 7; i++) + for (int i = 0; i < 6; i++) { mStatsLabel[i]->setCaption(attrNames[i]); mStatsDisplayLabel[i]->setCaption( @@ -331,9 +330,5 @@ void StatusWindow::action(const gcn::ActionEvent &event) { mPlayer->raiseAttribute(LocalPlayer::WIL); } - else if (eventId == "CHR") - { - mPlayer->raiseAttribute(LocalPlayer::CHR); - } } } |