-
Notifications
You must be signed in to change notification settings - Fork 14
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
Conversation
* | ||
* @return {@code true} if the player is in adventure mode, {@code false} otherwise. | ||
*/ | ||
default boolean isAdventure() { |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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() { |
There was a problem hiding this comment.
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
Basically complete the implementation of all effects except Conduit Power, Bad Omen, Trial Omen, Raid Omen, Hero of the Village, and Wind Charged.