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

Implement Crossbows #957

Merged
merged 52 commits into from
Jan 4, 2025
Merged

Implement Crossbows #957

merged 52 commits into from
Jan 4, 2025

Conversation

xNatsuri
Copy link
Contributor

@xNatsuri xNatsuri commented Dec 13, 2024

This PR aims to implement crossbows and multishot enchantment.

Copy link
Member

@Sandertv Sandertv left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! I've left some comments for now. Let me know if you'd like another review.

main.go Outdated Show resolved Hide resolved
server/entity/direction.go Outdated Show resolved Hide resolved
server/item/enchantment/quick_charge.go Show resolved Hide resolved
server/item/enchantment/quick_charge.go Show resolved Hide resolved
server/item/enchantment/quick_charge.go Outdated Show resolved Hide resolved
server/item/crossbow.go Outdated Show resolved Hide resolved
server/item/item.go Outdated Show resolved Hide resolved
server/player/player.go Outdated Show resolved Hide resolved
server/player/player.go Outdated Show resolved Hide resolved
server/item/enchantment/quick_charge.go Outdated Show resolved Hide resolved
server/item/enchantment/quick_charge.go Outdated Show resolved Hide resolved
server/item/crossbow.go Outdated Show resolved Hide resolved
server/item/crossbow.go Outdated Show resolved Hide resolved
server/item/crossbow.go Outdated Show resolved Hide resolved
@DaPigGuy DaPigGuy mentioned this pull request Dec 15, 2024
89 tasks
server/item/crossbow.go Outdated Show resolved Hide resolved
@xNatsuri xNatsuri marked this pull request as ready for review December 22, 2024 06:35
server/item/enchantment/infinity.go Outdated Show resolved Hide resolved
server/player/player.go Outdated Show resolved Hide resolved
server/session/player.go Outdated Show resolved Hide resolved
server/item/crossbow.go Outdated Show resolved Hide resolved
server/item/crossbow.go Outdated Show resolved Hide resolved
server/item/crossbow.go Outdated Show resolved Hide resolved
server/item/crossbow.go Outdated Show resolved Hide resolved
server/player/player.go Outdated Show resolved Hide resolved
server/item/crossbow.go Outdated Show resolved Hide resolved
@DaPigGuy DaPigGuy requested a review from Sandertv December 22, 2024 10:27
server/item/bow.go Outdated Show resolved Hide resolved
server/item/crossbow.go Outdated Show resolved Hide resolved
server/item/crossbow.go Show resolved Hide resolved
server/player/player.go Outdated Show resolved Hide resolved
@DaPigGuy DaPigGuy added the feature New feature or request label Dec 29, 2024
Comment on lines 54 to 66
type CrossbowLoadingStart struct{ sound }

// CrossbowLoadingMiddle is a sound played while a crossbow is loading and when a crossbow stops loading.
type CrossbowLoadingMiddle struct{ sound }

// CrossbowQuickChargeLoadingStart is a sound played when a crossbow with Quick Charge starts to load.
type CrossbowQuickChargeLoadingStart struct{ sound }

// CrossbowQuickChargeLoadingMiddle is a sound played while a crossbow with Quick Charge is loading.
type CrossbowQuickChargeLoadingMiddle struct{ sound }

// CrossbowQuickChargeEnd is a sound played when a crossbow with Quick Charge stops loading.
type CrossbowQuickChargeEnd struct{ sound }
Copy link
Member

Choose a reason for hiding this comment

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

I would try to combine some of these sounds into one type. Add a QuickCharge bool field to halve the number of types, them maybe some Stage field to indicate start vs middle vs end.

@Sandertv Sandertv added this to the v0.10.0 milestone Jan 3, 2025
Copy link
Member

@Sandertv Sandertv left a comment

Choose a reason for hiding this comment

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

Thank you for the PR! I think this is ready to go. I'm going to make some minor changes after merging but otherwise, great work!

@Sandertv Sandertv merged commit 613899c into df-mc:master Jan 4, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants