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

fix: goodness event gain of 2nd player is fixed

parent 0d9b6d4b
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -417,10 +417,10 @@ sub goodness { ...@@ -417,10 +417,10 @@ sub goodness {
"evil men poison them. Together have they prayed to their ". "evil men poison them. Together have they prayed to their ".
"God, and it is his light that now shines upon them. $gain\% ". "God, and it is his light that now shines upon them. $gain\% ".
"of their time is removed from their clocks.")); "of their time is removed from their clocks."));
$gain = int(($gain/100)*$rps->{$players[0]}{next}); my $gain_pl = int(($gain/100)*$rps->{$players[0]}{next});
$rps->{$players[0]}{next} += int($rps->{$players[0]}{class}->real_gain(-$gain)); $rps->{$players[0]}{next} += int($rps->{$players[0]}{class}->real_gain(-$gain_pl));
$gain = int(($gain/100)*$rps->{$players[1]}{next}); $gain_pl = int(($gain/100)*$rps->{$players[1]}{next});
$rps->{$players[1]}{next} += int($rps->{$players[1]}{class}->real_gain(-$gain)); $rps->{$players[1]}{next} += int($rps->{$players[1]}{class}->real_gain(-$gain_pl));
Irpg::Irc::chanmsg("$players[0] reaches next level in ". Irpg::Irc::chanmsg("$players[0] reaches next level in ".
duration($rps->{$players[0]}{next})."."); duration($rps->{$players[0]}{next}).".");
Irpg::Irc::chanmsg("$players[1] reaches next level in ". Irpg::Irc::chanmsg("$players[1] reaches next level in ".
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter