Skip to content

Commit

Permalink
Suspect tests: Allow setting float COIL B values
Browse files Browse the repository at this point in the history
  • Loading branch information
mia-pi-git committed Aug 6, 2024
1 parent fa18229 commit 90d35ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/chat-plugins/suspect-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export const commands: Chat.ChatCommands = {
return this.parse(`/help ${cmd}`);
}
const [formatid, source] = this.splitOne(target).map(toID);
let bVal: number | undefined = parseInt(source);
let bVal: number | undefined = parseFloat(source);
if (cmd.startsWith('d')) {
bVal = undefined;
} else if (!source || isNaN(bVal) || bVal < 1) {
Expand Down

0 comments on commit 90d35ef

Please sign in to comment.