削弱怪猎数值,调整RPG初速,补全翻译
This commit is contained in:
parent
3417cd381c
commit
34aef27803
8 changed files with 23 additions and 12 deletions
|
@ -254,7 +254,7 @@ public class ClaymoreEntity extends TamableAnimal implements GeoEntity, Animated
|
|||
explosion.explode();
|
||||
net.minecraftforge.event.ForgeEventFactory.onExplosionStart(this.level(), explosion);
|
||||
explosion.finalizeExplosion(false);
|
||||
for (int index0 = 0; index0 < 100; index0++) {
|
||||
for (int index0 = 0; index0 < 250; index0++) {
|
||||
fragShoot();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -69,7 +69,7 @@ public class GunGrenadeEntity extends ThrowableItemProjectile {
|
|||
|
||||
@Override
|
||||
protected void onHitEntity(EntityHitResult result) {
|
||||
float damageMultiplier = 1 + 0.4f * this.monsterMultiplier;
|
||||
float damageMultiplier = 1 + 0.2f * this.monsterMultiplier;
|
||||
Entity entity = result.getEntity();
|
||||
if (this.getOwner() instanceof LivingEntity living) {
|
||||
if (!living.level().isClientSide() && living instanceof ServerPlayer player) {
|
||||
|
|
|
@ -332,7 +332,7 @@ public class ProjectileEntity extends Entity implements IEntityAdditionalSpawnDa
|
|||
}
|
||||
|
||||
protected void onHitEntity(Entity entity, boolean headshot, boolean legshot) {
|
||||
float m_multiple = (1 + 0.4f * this.monster_multiple);
|
||||
float m_multiple = 1 + 0.2f * this.monster_multiple;
|
||||
|
||||
if (entity == null) return;
|
||||
|
||||
|
|
|
@ -69,7 +69,7 @@ public class RpgRocketEntity extends ThrowableItemProjectile {
|
|||
|
||||
@Override
|
||||
protected void onHitEntity(EntityHitResult result) {
|
||||
float damageMultiplier = 1 + 0.4f * this.monsterMultiplier;
|
||||
float damageMultiplier = 1 + 0.2f * this.monsterMultiplier;
|
||||
Entity entity = result.getEntity();
|
||||
if (this.getOwner() instanceof LivingEntity living) {
|
||||
if (!living.level().isClientSide() && living instanceof ServerPlayer player) {
|
||||
|
@ -148,7 +148,7 @@ public class RpgRocketEntity extends ThrowableItemProjectile {
|
|||
@Override
|
||||
public void onHitBlock(BlockHitResult blockHitResult) {
|
||||
super.onHitBlock(blockHitResult);
|
||||
if (this.tickCount > 0) {
|
||||
if (this.tickCount > 1) {
|
||||
if (this.level() instanceof ServerLevel) {
|
||||
causeExplode();
|
||||
}
|
||||
|
@ -161,13 +161,14 @@ public class RpgRocketEntity extends ThrowableItemProjectile {
|
|||
public void tick() {
|
||||
super.tick();
|
||||
|
||||
if (this.tickCount == 1) {
|
||||
if (this.tickCount == 2) {
|
||||
if (!this.level().isClientSide() && this.level() instanceof ServerLevel serverLevel) {
|
||||
ParticleTool.sendParticle(serverLevel, ParticleTypes.CLOUD, this.getX(), this.getY(), this.getZ(), 50, 0.8, 0.8, 0.8, 0.01, true);
|
||||
ParticleTool.sendParticle(serverLevel, ParticleTypes.CAMPFIRE_COSY_SMOKE, this.getX(), this.getY(), this.getZ(), 50, 0.8, 0.8, 0.8, 0.01, true);
|
||||
}
|
||||
}
|
||||
if (this.tickCount > 1) {
|
||||
this.setDeltaMovement(new Vec3((1.04 * this.getDeltaMovement().x()), (1.04 * this.getDeltaMovement().y() - 0.02), (1.04 * this.getDeltaMovement().z())));
|
||||
this.setDeltaMovement(new Vec3((1.03 * this.getDeltaMovement().x()), (1.03 * this.getDeltaMovement().y() - 0.05), (1.03 * this.getDeltaMovement().z())));
|
||||
|
||||
if (!this.level().isClientSide() && this.level() instanceof ServerLevel serverLevel) {
|
||||
ParticleTool.sendParticle(serverLevel, ParticleTypes.SMOKE, this.getX(), this.getY(), this.getZ(), 2, 0, 0, 0, 0, true);
|
||||
|
|
|
@ -113,7 +113,7 @@ public class ClientEventHandler {
|
|||
|
||||
float times = 90f / fps;
|
||||
var data = entity.getPersistentData();
|
||||
double move_speed = (float) entity.getDeltaMovement().horizontalDistanceSqr();
|
||||
double move_speed = (float) Mth.clamp(entity.getDeltaMovement().horizontalDistanceSqr(),0,0.02);
|
||||
double on_ground;
|
||||
if (entity.onGround()) {
|
||||
if (entity.isSprinting()) {
|
||||
|
|
|
@ -168,9 +168,9 @@
|
|||
"death.attack.shock": "%1$s was shocked",
|
||||
"death.attack.shock.entity": "%1$s was shocked by %2$s",
|
||||
"death.attack.shock.item": "%1$s was shocked by %2$s",
|
||||
"death.attack.projectile_boom": "%1$s被轰上了天",
|
||||
"death.attack.projectile_boom.entity": "%1$s被%2$s轰上了天",
|
||||
"death.attack.projectile_boom.item": "%1$s被%2$s用%3$s轰上了天",
|
||||
"death.attack.projectile_boom": "%1$s blew up",
|
||||
"death.attack.projectile_boom.entity": "%1$s was blown up by %2$s",
|
||||
"death.attack.projectile_boom.item": "%1$s was blown up by %2$s using %3$s",
|
||||
|
||||
"gui.target.gun_recycle_gui.tooltip_if_guns_level_10you_will_get": "If gun\u0027s level \u003e 10,you will get soul nuggets",
|
||||
"gui.target.gun_recycle_gui.button_dismantle": "Dismantle",
|
||||
|
@ -179,6 +179,11 @@
|
|||
|
||||
"entity.target.projectile": "Bullet",
|
||||
"entity.target.projectile_frag": "Frag",
|
||||
"entity.target.projectile_mortar_shell": "Mortar Shell",
|
||||
"entity.target.projectile_gun_grenade": "Gun Grenade",
|
||||
"entity.target.projectile_rpg_rocket": "RPG Rocket",
|
||||
"entity.target.projectile_bocekarrow": "Arrow",
|
||||
"entity.target.projectile_taser_bullet_projectile": "Taser Electrode",
|
||||
"entity.target.mortar": "Mortar",
|
||||
"entity.target.target": "Target",
|
||||
"entity.target.target_1": "Target",
|
||||
|
|
|
@ -179,6 +179,11 @@
|
|||
|
||||
"entity.target.projectile": "子弹",
|
||||
"entity.target.projectile_frag": "破片",
|
||||
"entity.target.projectile_mortar_shell": "迫击炮弹",
|
||||
"entity.target.projectile_gun_grenade": "枪榴弹",
|
||||
"entity.target.projectile_rpg_rocket": "RPG火箭弹",
|
||||
"entity.target.projectile_bocekarrow": "箭矢",
|
||||
"entity.target.projectile_taser_bullet_projectile": "电极",
|
||||
"entity.target.mortar": "迫击炮",
|
||||
"entity.target.target": "标靶",
|
||||
"entity.target.target_1": "标靶",
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
"recoil_x": 0.008,
|
||||
"recoil_y": 0.018,
|
||||
"damage": 150,
|
||||
"velocity": 5.75,
|
||||
"velocity": 4,
|
||||
"mag": 1,
|
||||
"weight": 1,
|
||||
"fire_mode": 0,
|
||||
|
|
Loading…
Add table
Reference in a new issue