Bvural41 1
Bvural41
Hikaye Ekle

[C++] Hamle Atınca HP Düşme Sorunu Fixed

  • Konuyu başlatan Konuyu başlatan DevSheen
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 38
  • Görüntüleme Görüntüleme 12K
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Verdiğin Kısım statü puanlarının ve affectlerin hesaplanmasıyla ilgili bir kısım - fonksiyondanda anlaşılacağı gibi(void CHARACTER::ComputePoints()) -

gelelim verdiğin kod'a

if (GetHP() > GetMaxHP())
PointChange(POINT_HP, GetMaxHP() - GetHP());

if (GetSP() > GetMaxSP())
PointChange(POINT_SP, GetMaxSP() - GetSP());

2side aynı işlevde birisi hp diğeri sp için

Kafanı fazla yormamak için(:rolleyes:) tek tek anlatayım

Kod:
if             (GetHP()      >           GetMaxHP())
eğer      bulunan hp        büyükse       maks hpden
PointChange(        POINT_HP,        GetMaxHP()      -         GetHP());
yeniden düzenle    hp puanını        maks hpden   çıkart   bulunan hpyi
yani özetle hp sp overflow diye geçen olay hamle ile alakası yok(overflow içinde işe yaramıyor orası ayrı)

hamle olsa orda SKILL_TANHWAN yazar yada madem hp düşüyor spnin işi ne değil mi? :(

Söylemiştim ama kafa basmıyor sanırım
hamle bugu dediğiniz olay skill proto dan kaynaklı bir olay

Zaten çorladığın yerde açıklamışlar

Think' Alıntı:
Nah... the whole points system was made by someone with weird concepts (has to have been... it's overcomplicated and poorly implemented all around the code with tons of checks and crap), so I would not call anything in it "easy" xD Lectures aside, and unrelated to the complexity of this, I can think of something that would fail if you carry out that change. Let's say HP is bigger than Max HP (HP = 200, Max HP = 100), the affects/pet system are supposed to reduce the HP/SP (by for example 50) but all they do is set it to a value that it's still over the max, so the final HP will be 100, effectively ignoring the intended decrease.
 
Son düzenleme:
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)

Geri
Üst