Files
Mindustry/core/src/mindustry/content/Bullets.java
2022-03-06 10:03:40 -05:00

45 lines
1.2 KiB
Java

package mindustry.content;
import arc.graphics.*;
import mindustry.entities.bullet.*;
import mindustry.entities.effect.*;
import mindustry.graphics.*;
public class Bullets{
public static BulletType
placeholder, spaceLiquid, damageLightning, damageLightningGround, fireball;
public static void load(){
placeholder = new BasicBulletType(2.5f, 9, "ohno"){{
width = 7f;
height = 9f;
lifetime = 60f;
ammoMultiplier = 2;
}};
//lightning bullets need to be initialized first.
damageLightning = new BulletType(0.0001f, 0f){{
lifetime = Fx.lightning.lifetime;
hitEffect = Fx.hitLancer;
despawnEffect = Fx.none;
status = StatusEffects.shocked;
statusDuration = 10f;
hittable = false;
lightColor = Color.white;
}};
//this is just a copy of the damage lightning bullet that doesn't damage air units
damageLightningGround = damageLightning.copy();
damageLightningGround.collidesAir = false;
fireball = new FireBulletType(1f, 4);
spaceLiquid = new SpaceLiquidBulletType(){{
knockback = 0.7f;
drag = 0.01f;
}};
}
}