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

stats in order in points/class

parent acb61382
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -357,7 +357,7 @@ sub points {
if (!@arg) {
Irpg::Irc::privmsg("Your raw competences are the following: ".
join(', ', map { uc($_)." $rps->{$username}{stats}{$_}" }
keys($rps->{$username}{stats})).".", $source);
qw(str con int wis cha dex)).".", $source);
return;
}
if (@arg != 2 || $arg[1] !~ m/^\d+$/) {
......@@ -396,10 +396,11 @@ sub class {
}
else {
my $cname = $rps->{$asked}{class}->{NAME};
Irpg::Irc::privmsg("You are a".($cname =~ m/^[AEIOUYƌ].*/ ? 'n':'').
my $who = $asked eq $username ? 'You are' : "$asked is";
Irpg::Irc::privmsg("$who a".($cname =~ m/^[AEIOUYƌ].*/ ? 'n':'').
" $cname with the following stats: ".
join(', ', map { uc($_)." ".eval('$rps->{$asked}{class}->'.$_.'()') }
keys($rps->{$asked}{stats})).".", $source);
qw(str con int wis cha dex)).".", $source);
return;
}
}
......
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