diff options
| author | fusion32 <marcopuzziello@gmail.com> | 2025-05-20 16:41:03 -0300 |
|---|---|---|
| committer | fusion32 <marcopuzziello@gmail.com> | 2025-05-20 16:41:03 -0300 |
| commit | 42be37f4ad99fc8580415fed89939e305d56193e (patch) | |
| tree | 41303aace3c214f925a43fec6a857f313196e38d /src/skill.cc | |
| parent | 7fe30185df21617cf44100f89db462cd4501050e (diff) | |
| download | game-42be37f4ad99fc8580415fed89939e305d56193e.tar.gz game-42be37f4ad99fc8580415fed89939e305d56193e.zip | |
implement `main.cc`, `shm.cc`, and `time.cc` + overall tweeks
Diffstat (limited to 'src/skill.cc')
| -rw-r--r-- | src/skill.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/skill.cc b/src/skill.cc index 629d935..6ca04ef 100644 --- a/src/skill.cc +++ b/src/skill.cc @@ -796,7 +796,7 @@ void TSkillSoulpoints::Event(int Range){ // TODO(fusion): Shouldn't this be the same as `Master->Skills[SKILL_SOUL]`? // Not sure what's going on here. if(!Master->IsDead){ - Master->Skills[SKILL_SOUL]->Set(Other->Act + 1); + Master->Skills[SKILL_SOUL]->Change(1); } } @@ -1157,7 +1157,7 @@ bool TSkillBase::NewSkill(uint16 SkillNo, TCreature *Creature){ } bool TSkillBase::SetSkills(int Race){ - if(Race < 0 || Race >= 512){ + if(Race < 0 || Race >= NARRAY(RaceData)){ error("TSkillBase::SetSkills: Ungültige Rassennummer %d.\n", Race); return false; } @@ -1237,7 +1237,7 @@ void TSkillBase::DelTimer(uint16 SkNr){ Skill->DelTimer(); int End = this->FirstFreeTimer; - for(int Index = 0; Index < End; i += 1){ + for(int Index = 0; Index < End; Index += 1){ if(Skill == this->TimerList[Index]){ // NOTE(fusion): A little swap and pop action. End -= 1; |
