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

feat: refine effects behaviour #429

Closed
wants to merge 1 commit into from

Conversation

heyhey123-git
Copy link
Contributor

Basically complete the implementation of all effects except Conduit Power, Bad Omen, Trial Omen, Raid Omen, Hero of the Village, and Wind Charged.

@smartcmd smartcmd added the New Feature New feature or request label Oct 4, 2024
@IWareQ IWareQ self-requested a review October 4, 2024 07:56
*
* @return {@code true} if the player is in adventure mode, {@code false} otherwise.
*/
default boolean isAdventure() {
Copy link
Member

Choose a reason for hiding this comment

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

No need to introduce such a method

*
* @param form The form to add.
*/
void setServerSettingForm(CustomForm form);
void addServerSettingForm(CustomForm form);
Copy link
Member

Choose a reason for hiding this comment

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

Merging error?


@Override
public void onEntityDamage(Entity entity, EffectInstance effectInstance, DamageContainer damage) {
if (Math.random() <= 0.1) {
Copy link
Member

Choose a reason for hiding this comment

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

Use guard-statement

*
* @return {@code true} if the entity is an Undead mob, otherwise {@code false}.
*/
default boolean isUndead() {
Copy link
Member

Choose a reason for hiding this comment

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

Find a better way to do that...? For example add an EntityUndeadComponent and use instanceof here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New Feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants