summaryrefslogtreecommitdiff
path: root/src/gui/skill.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <bertram@cegetel.net>2005-09-17 00:10:50 +0000
committerYohann Ferreira <bertram@cegetel.net>2005-09-17 00:10:50 +0000
commite454dcd9bc48c884215bb8144f43a10960b5f713 (patch)
tree95b62bff7a51d2325ce0bf9dfc93bc481a19738f /src/gui/skill.cpp
parent17cab02d4f5e2137ab77bac40884982c6d3651ea (diff)
downloadmana-e454dcd9bc48c884215bb8144f43a10960b5f713.tar.gz
mana-e454dcd9bc48c884215bb8144f43a10960b5f713.tar.bz2
mana-e454dcd9bc48c884215bb8144f43a10960b5f713.tar.xz
mana-e454dcd9bc48c884215bb8144f43a10960b5f713.zip
Now the values shown by derived stats in status win are got from the server. Still, when Equipping/unequipping, you have to warp to get these values updated. Does somebody has an idea how to request an update of these values when equipping/unequipping ?
Diffstat (limited to 'src/gui/skill.cpp')
-rw-r--r--src/gui/skill.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/gui/skill.cpp b/src/gui/skill.cpp
index 0e641768..a82b5c6a 100644
--- a/src/gui/skill.cpp
+++ b/src/gui/skill.cpp
@@ -122,7 +122,7 @@ void SkillDialog::action(const std::string& eventId)
{
// Increment skill
int selectedSkill = skillListBox->getSelected();
- if (player_info->skill_point > 0 && selectedSkill >= 0)
+ if (player_info->skillPoint > 0 && selectedSkill >= 0)
{
writeWord(0, 0x0112);
writeWord(2, skillList[selectedSkill]->id);
@@ -166,8 +166,8 @@ std::string SkillDialog::getElementAt(int i)
char tmp[128];
sprintf(tmp, "%s Lv: %i Sp: %i",
skill_db[skillList[i]->id],
- skillList[i]->lv,
- skillList[i]->sp);
+ skillList[i]->lvl,
+ skillList[i]->mp);
return tmp;
}
return "";
@@ -183,22 +183,22 @@ bool SkillDialog::hasSkill(int id)
return false;
}
-void SkillDialog::addSkill(int id, int lv, int sp)
+void SkillDialog::addSkill(int id, int lvl, int mp)
{
printf("%i\n", id);
SKILL *tmp = new SKILL();
tmp->id = id;
- tmp->lv = lv;
- tmp->sp = sp;
+ tmp->lvl = lvl;
+ tmp->mp = mp;
skillList.push_back(tmp);
}
-void SkillDialog::setSkill(int id, int lv, int sp)
+void SkillDialog::setSkill(int id, int lvl, int mp)
{
for (unsigned int i = 0; i < skillList.size(); i++) {
if (skillList[i]->id == id) {
- skillList[i]->lv = lv;
- skillList[i]->sp = sp;
+ skillList[i]->lvl = lvl;
+ skillList[i]->mp = mp;
}
}
}