Skip to content
Extraits de code Groupes Projets
Valider f35e3bf3 rédigé par ElTata's avatar ElTata :ok_hand:
Parcourir les fichiers

fix & improve critic strike range

90% for neutral, 95 for good, 85 for evil
parent e995fffc
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -297,8 +297,8 @@ sub perform_action {
# VICTORY
$ret->{vict}++;
my $align_mod = $rps->{$p1}{alignment} eq 'Good' ? 0.05 :
$rps->{$p1}{alignment} eq 'Evil' ? -0.10 :
1;
$rps->{$p1}{alignment} eq 'Evil' ? -0.05 :
0;
if ($p1roll*$p1atk >= $p1sum*$p1atk*($rps->{$p1}{class}->{CRIT_SK} + $align_mod)) {
# CRITICAL STRIKE
$ret->{vict}++;
......
......@@ -17,7 +17,7 @@ sub new {
$self->{MOD_INT} = 1; # intelligence
$self->{MOD_CHA} = 1; # charisma
$self->{MOD_DEX} = 1; # dexterity
$self->{CRIT_SK} = 0.95; # critical strike minimum range, the lower the largest acceptance
$self->{CRIT_SK} = 0.90; # critical strike minimum range, the lower the largest acceptance
$self->{MOD_CRT} = 1; # criticak strike modificator
return $self;
}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter