From 72278c439b52c81bc12ebc6ce50c0f373d354fc8 Mon Sep 17 00:00:00 2001 From: doctor4t Date: Fri, 3 Jan 2025 10:23:36 +0100 Subject: [PATCH] Tweak splash droplet spawn radius --- build.gradle | 6 ++++-- .../ladysnake/effective/core/particle/SplashParticle.java | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 3246663..bce94d8 100644 --- a/build.gradle +++ b/build.gradle @@ -70,8 +70,10 @@ dependencies { modLocalImplementation "com.terraformersmc:modmenu:${mod_menu_version}" // iris and sodium - modImplementation("maven.modrinth:sodium:${project.sodium_version}") { transitive = true } - modImplementation("maven.modrinth:iris:${project.iris_version}") { transitive = true } + modImplementation("maven.modrinth:sodium:${project.sodium_version}") + modImplementation("maven.modrinth:iris:${project.iris_version}") + runtimeOnly("org.anarres:jcpp:${project.jcpp_version}") + implementation("io.github.douira:glsl-transformer:${project.glslTransformer_version}") } processClientResources { diff --git a/src/client/java/org/ladysnake/effective/core/particle/SplashParticle.java b/src/client/java/org/ladysnake/effective/core/particle/SplashParticle.java index 09bc0a6..fae5f0e 100644 --- a/src/client/java/org/ladysnake/effective/core/particle/SplashParticle.java +++ b/src/client/java/org/ladysnake/effective/core/particle/SplashParticle.java @@ -158,11 +158,11 @@ public void tick() { if (this.age == 1) { for (int i = 0; i < this.widthMultiplier * 10f; i++) { - this.world.addParticle(this.getDropletParticle(), this.x + (EffectiveUtils.getRandomFloatOrNegative(this.random) * this.widthMultiplier / 10f), this.y, this.z + (EffectiveUtils.getRandomFloatOrNegative(this.random) * this.widthMultiplier / 10f), EffectiveUtils.getRandomFloatOrNegative(this.random) / 10f * this.widthMultiplier / 2.5f, random.nextFloat() / 10f + this.heightMultiplier / 2.8f, EffectiveUtils.getRandomFloatOrNegative(this.random) / 10f * this.widthMultiplier / 2.5f); + this.world.addParticle(this.getDropletParticle(), this.x + (EffectiveUtils.getRandomFloatOrNegative(this.random) * this.widthMultiplier / 5f), this.y, this.z + (EffectiveUtils.getRandomFloatOrNegative(this.random) * this.widthMultiplier / 5f), EffectiveUtils.getRandomFloatOrNegative(this.random) / 5f * this.widthMultiplier / 2.5f, random.nextFloat() / 10f + this.heightMultiplier / 2.8f, EffectiveUtils.getRandomFloatOrNegative(this.random) / 10f * this.widthMultiplier / 2.5f); } } else if (this.age == wave2Start) { for (int i = 0; i < this.widthMultiplier * 5f; i++) { - this.world.addParticle(this.getDropletParticle(), this.x + (EffectiveUtils.getRandomFloatOrNegative(this.random) * this.widthMultiplier / 10f * .5f), this.y, this.z + (EffectiveUtils.getRandomFloatOrNegative(this.random) * this.widthMultiplier / 10f * .5f), EffectiveUtils.getRandomFloatOrNegative(this.random) / 10f * this.widthMultiplier / 5f, random.nextFloat() / 10f + this.heightMultiplier / 2.2f, EffectiveUtils.getRandomFloatOrNegative(this.random) / 10f * this.widthMultiplier / 5f); + this.world.addParticle(this.getDropletParticle(), this.x + (EffectiveUtils.getRandomFloatOrNegative(this.random) * this.widthMultiplier / 5f * .5f), this.y, this.z + (EffectiveUtils.getRandomFloatOrNegative(this.random) * this.widthMultiplier / 5f * .5f), EffectiveUtils.getRandomFloatOrNegative(this.random) / 10f * this.widthMultiplier / 5f, random.nextFloat() / 10f + this.heightMultiplier / 2.2f, EffectiveUtils.getRandomFloatOrNegative(this.random) / 10f * this.widthMultiplier / 5f); } } }