优化龙息弹效果

This commit is contained in:
Light_Quanta 2024-11-17 22:49:27 +08:00
parent d786283b04
commit ef1b8b4e7c
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959

View file

@ -303,11 +303,12 @@ public class ProjectileEntity extends Entity implements IEntityAdditionalSpawnDa
if (fireBullet && dragonBreath && this.level() instanceof ServerLevel serverLevel) { if (fireBullet && dragonBreath && this.level() instanceof ServerLevel serverLevel) {
for (int index0 = 0; index0 < 1; index0++) { for (int index0 = 0; index0 < 1; index0++) {
double randomPos = 2 * (Math.random() - 0.5); ParticleTool.sendParticle(serverLevel, ParticleTypes.FLAME,
ParticleTool.sendParticle(serverLevel, ParticleTypes.FLAME, this.getX(), this.getY(), this.getZ(), this.getX(), this.getY(), this.getZ(),
1, randomPos, randomPos, randomPos, 0.001, true); 0,
ParticleTool.sendParticle(serverLevel, ModParticleTypes.FIRE_STAR.get(), this.getX(), this.getY(), this.getZ(), this.getDeltaMovement().x, this.getDeltaMovement().y, this.getDeltaMovement().z,
1, randomPos, randomPos, randomPos, 0.001, true); this.getDeltaMovement().length(), true
);
} }
} }
} }
@ -521,7 +522,7 @@ public class ProjectileEntity extends Entity implements IEntityAdditionalSpawnDa
if (fireBullet) { if (fireBullet) {
if (!entity.level().isClientSide() && entity instanceof LivingEntity living) { if (!entity.level().isClientSide() && entity instanceof LivingEntity living) {
living.addEffect(new MobEffectInstance(ModMobEffects.BURN.get(), 60 + fireLevel * 20, fireLevel, false , false), this.shooter); living.addEffect(new MobEffectInstance(ModMobEffects.BURN.get(), 60 + fireLevel * 20, fireLevel, false, false), this.shooter);
} }
} }