Xp alternatif
Bonjour , voici un petit système d'xp alternatif . Ce système consiste a modifier le rate d'xp par tranche de niveau

ATTENTION : SI VOUS MODIFIEZ LE RATE D'XP DANS LE FICHIER .CONF , CE RATES SERA COUPLE AVEC CE SYSTEME . Exemple rate conf x2 + rate xp alternatif x5 = rate x10 !

Désolé j'ai pas réussi a faire un .diff

formulas.h , fonction inline uint32 Gain(Player *pl, Unit *u) après la variable uint32 gain;

[code=cpp] uint8 pl_level = pl->getLevel();


if(pl_level <= 9)
gain *= 2;
if(pl_level >= 10 && pl_level <= 19)
gain *= 3;
if(pl_level >= 20 && pl_level <= 29)
gain *= 4;
if(pl_level >= 30 && pl_level <= 39)
gain *= 5;
if(pl_level >= 40 && pl_level <= 49)
gain *= 6.5;
if(pl_level >= 50 && pl_level <= 59)
gain *= 8;
if(pl_level >= 60 && pl_level <= 69)
gain *= 9.5;
if(pl_level >= 70 && pl_level <= 79)
gain *= 11;
[/code]

Voilà , un +1 peut être simpa , merci Clin
Merci Ange

Retourner en haut Accueil