Here we have a clean code to change the chance of falling dn-ds I know that many search for this code until today! Good use.
Common / service.h
#define ENABLE_NEW_CALC_DS_DN
Game/src / item_addon.cpp
Search:
Kod:
int iSkillBonus = MINMAX(-30, (int) (gauss_random(0, 5) + 0.5f), 30);
int iNormalHitBonus = 0;
if (abs(iSkillBonus) <= 20)
iNormalHitBonus = -2 * iSkillBonus + abs(number(-8, 8) + number(-8, 8)) + number(1, 4);
else
iNormalHitBonus = -2 * iSkillBonus + number(1, 5);
replace only:
Kod:
#ifdef ENABLE_NEW_CALC_DS_DN
int iSkillBonus = MINMAX (-30, (int) (gauss_random (0, 8) + 0.5f), 30);
int iNormalHitBonus = MINMAX (-60, ((-2 * iSkillBonus) + number (0, 6)), 60);
#else
int iSkillBonus = MINMAX (-30, (int) (gauss_random (0, 5) + 0.5f), 30);
int iNormalHitBonus = 0;
if (abs (iSkillBonus) <= 20)
{
iNormalHitBonus = -2 * iSkillBonus + abs (number (-8, 8) + number (-8, 8)) + number (1, 4);
}
else
{
iNormalHitBonus = -2 * iSkillBonus + number (1, 5);
}
#endif
Note:
int iSkillBonus = MINMAX (-30, (int) (gauss_random (0, 8) + 0.5f), 30);
(0, 8) + 0.5f), 30); is easy
(0, 4) + 0.5f), 30); is hard
Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)
Benzer konular
- Cevaplar
- 8
- Görüntüleme
- 1K
- Cevaplar
- 20
- Görüntüleme
- 941
- Cevaplar
- 15
- Görüntüleme
- 896