Merge remote-tracking branch 'origin/master'

This commit is contained in:
Anuken
2022-08-03 23:44:10 -04:00
3 changed files with 14 additions and 9 deletions
+5 -5
View File
@@ -311,11 +311,11 @@ open = 열기
customize = 사용자 정의 규칙
cancel = 취소
command = 명령
command.mine = Mine
command.repair = Repair
command.rebuild = Rebuild
command.assist = Assist Player
command.move = Move
command.mine = 채굴
command.repair = 수리
command.rebuild = 재건
command.assist = 플레이어 지원
command.move = 이동
openlink = 링크 열기
copylink = 링크 복사
back = 뒤로가기
@@ -6,7 +6,7 @@ import mindustry.entities.*;
import mindustry.gen.*;
public class FlakBulletType extends BasicBulletType{
public float explodeRange = 30f, explodeDelay = 5f, flakInterval = 6f;
public float explodeRange = 30f, explodeDelay = 5f, flakDelay = 0f, flakInterval = 6f;
public FlakBulletType(float speed, float damage){
super(speed, damage, "shell");
@@ -27,9 +27,9 @@ public class FlakBulletType extends BasicBulletType{
super.update(b);
//don't check for targets if primed to explode
if(b.fdata >= 0 && b.timer(2, flakInterval)){
if(b.time >= flakDelay && b.fdata >= 0 && b.timer(2, flakInterval)){
Units.nearbyEnemies(b.team, Tmp.r1.setSize(explodeRange * 2f).setCenter(b.x, b.y), unit -> {
//fadata < 0 means it's primed to explode
//fdata < 0 means it's primed to explode
if(b.fdata < 0f || !unit.checkTarget(collidesAir, collidesGround)) return;
if(unit.within(b, explodeRange + unit.hitSize/2f)){