Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rewrite More comparisons #932

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

NOname-awa
Copy link
Contributor

rewrite extension

rewrite extension
@Skyhigh173
Copy link
Contributor

Your extension id is just 'EXTENSION', you need to change it to something like 'NoNameMoreComparisons'

color1: '#00a889',
color2: '#00977b',
color3: '#00866e',
id: 'moreComparisons',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the extension ID needs to include your name as well

],
menus: {
BOOLEAN_MENU: {
acceptReporters: false,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why can't these (and the following menus) be acceptReporters: true?

};
}
booleanMenu({ BOOLEAN }) {
if (BOOLEAN === 'random') return Math.random() < 0.5 ? true : false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't have to do this, but internally Scratch's "random" value is _random_, consider changing to that for consistency

}
return false;
}
switch (MODE) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And you're positive this switch will always return something, even without a default?

@GarboMuffin GarboMuffin added the pr: change existing extension Pull requests that change an existing extension label Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: change existing extension Pull requests that change an existing extension
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants