summaryrefslogtreecommitdiff
path: root/src/gui/char_select.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2007-12-18 01:27:27 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2007-12-18 01:27:27 +0000
commit1f2b8d3d4c36c3cf30187633e4cf5bb5d0012e7c (patch)
treeeb36781dbb8a76967b10f45773e6fb4949ca9b74 /src/gui/char_select.cpp
parent57e9dc1c0f794508335819db4eb1f80ff8836d68 (diff)
downloadMana-1f2b8d3d4c36c3cf30187633e4cf5bb5d0012e7c.tar.gz
Mana-1f2b8d3d4c36c3cf30187633e4cf5bb5d0012e7c.tar.bz2
Mana-1f2b8d3d4c36c3cf30187633e4cf5bb5d0012e7c.tar.xz
Mana-1f2b8d3d4c36c3cf30187633e4cf5bb5d0012e7c.zip
Updated attribute system to the latest design decisions (removed charisma, kept agility in)
Diffstat (limited to 'src/gui/char_select.cpp')
-rw-r--r--src/gui/char_select.cpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/gui/char_select.cpp b/src/gui/char_select.cpp
index ccdf20c8..96140bb5 100644
--- a/src/gui/char_select.cpp
+++ b/src/gui/char_select.cpp
@@ -264,8 +264,7 @@ CharCreateDialog::CharCreateDialog(Window *parent, int slot):
mAttributeLabel[3] = new gcn::Label(_("Vitality:"));
mAttributeLabel[4] = new gcn::Label(_("Intelligence:"));
mAttributeLabel[5] = new gcn::Label(_("Willpower:"));
- mAttributeLabel[6] = new gcn::Label(_("Charisma:"));
- for (int i=0; i<7; i++)
+ for (int i=0; i<6; i++)
{
mAttributeLabel[i]->setWidth(70);
mAttributeSlider[i] = new Slider(1, 20);
@@ -289,7 +288,7 @@ CharCreateDialog::CharCreateDialog(Window *parent, int slot):
mPrevHairStyleButton->setPosition(90, 64);
mNextHairStyleButton->setPosition(165, 64);
mHairStyleLabel->setPosition(5, 70);
- for (int i=0; i<7; i++)
+ for (int i=0; i<6; i++)
{
mAttributeSlider[i]->setValue(10);
mAttributeSlider[i]->setDimension(gcn::Rectangle( 75, 140 + i*20,
@@ -319,7 +318,7 @@ CharCreateDialog::CharCreateDialog(Window *parent, int slot):
add(mNextHairStyleButton);
add(mPrevHairStyleButton);
add(mHairStyleLabel);
- for (int i=0; i<7; i++)
+ for (int i=0; i<6; i++)
{
add(mAttributeSlider[i]);
add(mAttributeValue[i]);
@@ -359,8 +358,7 @@ CharCreateDialog::action(const gcn::ActionEvent &event)
(int) mAttributeSlider[2]->getValue(), // DEX
(int) mAttributeSlider[3]->getValue(), // VIT
(int) mAttributeSlider[4]->getValue(), // INT
- (int) mAttributeSlider[5]->getValue(), // WILL
- (int) mAttributeSlider[6]->getValue() // CHAR
+ (int) mAttributeSlider[5]->getValue() // WILL
);
}
else {
@@ -398,7 +396,7 @@ CharCreateDialog::getName()
void CharCreateDialog::UpdateSliders()
{
- for (int i = 0; i < 7; i++)
+ for (int i = 0; i < 6; i++)
{
// Update captions
mAttributeValue[i]->setCaption(
@@ -407,7 +405,7 @@ void CharCreateDialog::UpdateSliders()
}
// Update distributed points
- int pointsLeft = 70 - getDistributedPoints();
+ int pointsLeft = 60 - getDistributedPoints();
if (pointsLeft == 0)
{
mAttributesLeft->setCaption(_("Character stats OK"));
@@ -439,7 +437,7 @@ int CharCreateDialog::getDistributedPoints()
{
int points = 0;
- for (int i = 0; i < 7; i++)
+ for (int i = 0; i < 6; i++)
{
points += (int) mAttributeSlider[i]->getValue();
}