Skip to content
This repository was archived by the owner on Dec 7, 2022. It is now read-only.

Conversation

@Pugzy
Copy link
Contributor

@Pugzy Pugzy commented Jun 16, 2016

I found most of these issues whilst testing #1039 so I thought I'd fix them too.

This class could do with a re-write to enable the punch and trample elements in the future.

  • Add chances to item drops.
  • Gather wrongtool info when attribute and element.
  • Fix usage of wrongtool.
  • Fix giving incorrect experience.

Update 1:

  • Use new parsing.
  • Gather reset of elements.

Update 2:

  • Can't remember how on earth this stuff works.
  • Create new method for generateDrops() to be used in all events.
  • Start support for trample and punch.

@Pugzy Pugzy force-pushed the drop-chance branch 2 times, most recently from d7e067b to ddd013a Compare June 23, 2016 01:52
- Add chances to item drops.
- Gather wrongtool info when attribute and element.
- Fix usage of wrongtool.
- Fix giving incorrect experience.
@twizmwazin
Copy link
Owner

Looks good, I'm fine with this being merged. I don't know if @Pablete1234 has other opinions.

@Pablete1234
Copy link
Collaborator

Pablete1234 commented Jun 30, 2016

@twizmwazin It's not ready yet, trample and punch don't work, @iPGz was waiting for cause filters to be implemented first

@Pablete1234
Copy link
Collaborator

I still see some debug messages and tests arround, so i'm labeling as WIP


@EventHandler(priority = EventPriority.MONITOR)
public void onPlayerAnimation(PlayerInteractEvent event) { // event not triggering with right click
if (!event.isCancelled()) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

replace with:
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)

xp.setExperience(this.experience);
}
if (this.kit != null) {
kit.apply(player, true); // should be true? forced?
Copy link
Contributor Author

Choose a reason for hiding this comment

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

null this true, the wise man @Pablete1234 told me to.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants