Skip to content

Commit

Permalink
Command "quest info" also prints active or inactive (#3824)
Browse files Browse the repository at this point in the history
  • Loading branch information
hexhexD authored Oct 27, 2023
1 parent 24d5421 commit dcb473d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1209,7 +1209,6 @@ sub cmdPoison {
error T("Error in function 'poison' (Apply Poison)\n" .
"Type 'poison' to get list.\n");
}

} elsif ($command eq "use") {
if (defined binFind(\@skillsID, 'GC_POISONINGWEAPON')) {
main::ai_skillUse('GC_POISONINGWEAPON', 5, 0, 0, $accountID);
Expand Down Expand Up @@ -6980,6 +6979,7 @@ sub cmdQuest {
my $msg = center (' ' . ($quests_lut{$args[1]}{title} || T('Quest Info')) . ' ', 79, '-') . "\n";
$msg .= "$quests_lut{$args[1]}{summary}\n" if $quests_lut{$args[1]}{summary};
$msg .= TF("Objective: %s\n", $quests_lut{$args[1]}{objective}) if $quests_lut{$args[1]}{objective};
$msg .= $quests_lut{$args[1]}{active} ? T("active") : T("inactive") . "\n";
message $msg;
} else {
message T("Unknown quest\n"), "info";
Expand Down

0 comments on commit dcb473d

Please sign in to comment.