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

improv: new point notice moved after level notice

parent e63ab1d5
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -323,13 +323,6 @@ sub rpcheck { # check levels, update database ...@@ -323,13 +323,6 @@ sub rpcheck { # check levels, update database
$rps->{$k}{idled} += ($curtime - $$lasttime_ref); $rps->{$k}{idled} += ($curtime - $$lasttime_ref);
if ($rps->{$k}{next} < 1) { if ($rps->{$k}{next} < 1) {
$rps->{$k}{level}++; $rps->{$k}{level}++;
if (!($rps->{$k}{level} % 5)){
$rps->{$k}{points}++;
Irpg::Irc::notice(
"Your hard training paid off, and you have ".
"one more point to invest.",
$rps->{$k}{nick});
}
if ($rps->{$k}{level} > 60) { if ($rps->{$k}{level} > 60) {
$rps->{$k}{next} = int(($opts->{rpbase} * $rps->{$k}{next} = int(($opts->{rpbase} *
($opts->{rpstep}**60)) + ($opts->{rpstep}**60)) +
...@@ -346,6 +339,12 @@ sub rpcheck { # check levels, update database ...@@ -346,6 +339,12 @@ sub rpcheck { # check levels, update database
Irpg::Irc::notice("You have attained level $rps->{$k}{level}! ". Irpg::Irc::notice("You have attained level $rps->{$k}{level}! ".
"Next level in ".duration($rps->{$k}{next}).".", "Next level in ".duration($rps->{$k}{next}).".",
$rps->{$k}{nick}); $rps->{$k}{nick});
if (!($rps->{$k}{level} % 5)){
$rps->{$k}{points}++;
Irpg::Irc::notice(
"Your hard training paid off, and you have ".
"one more point to invest.",
$rps->{$k}{nick});
} }
find_item($k); find_item($k);
challenge_opp($k); challenge_opp($k);
......
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