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

Weapon Refactoring #10534

Draft
wants to merge 19 commits into
base: master
Choose a base branch
from
Draft

Conversation

MEEPofFaith
Copy link
Contributor

@MEEPofFaith MEEPofFaith commented Mar 6, 2025

Refactors weapons into not being an unreadable mess.

  • BaseWeapon
    • BuildWeapon
    • MineWeapon
    • TargetWeapon
      • RepairBeamWeapon
      • ReloadWeapon
        • PointDefenseWeapon
        • Weapon
          • ContinuousWeapon

Should retain Json mod backwards compatability.
Java mods will need to be updated.

If your pull request is not translation or serverlist-related, read the list of requirements below and check each box:

  • I have read the contribution guidelines.
  • I have ensured that my code compiles, if applicable.
  • I have ensured that any new features in this PR function correctly in-game, if applicable.
    • Vanilla behavior has not changed (at least in my limited testing)
    • Test if Json parsing actually works

@LixieWulf
Copy link
Contributor

While you're at it, why not also remove that odd default x value of 5? I believe dagger only uses it, so it's been a slightly inconvenient value that do just exist.

@MEEPofFaith
Copy link
Contributor Author

While you're at it, why not also remove that odd default x value of 5? I believe dagger only uses it, so it's been a slightly inconvenient value that do just exist.

What about the default shootY of 3?

@MEEPofFaith
Copy link
Contributor Author

MEEPofFaith commented Mar 6, 2025

In the process, I've discovered that all the missiles have had the default x value on their weapons, meaning their explosions have been offset the entire time.

image

@@ -488,8 +488,7 @@ private void rebuildBrowser(){
for(ModListing mod : listings){
if(((mod.hasJava || mod.hasScripts) && Vars.ios) ||
(!Strings.matches(searchtxt, mod.name) && !Strings.matches(searchtxt, mod.repo))
//hack, I'm basically testing if 135.10 >= modVersion, which is equivalent to modVersion >= 136
|| (Version.isAtLeast(135, 10, mod.minGameVersion))
|| (Version.isAtLeast(147, 0, mod.minGameVersion))
Copy link
Contributor

Choose a reason for hiding this comment

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

very breaking changes

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

Successfully merging this pull request may close these issues.

3 participants