mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
64 lines
1.4 KiB
Java
64 lines
1.4 KiB
Java
package com.hbm.handler.guncfg;
|
|
|
|
import com.hbm.handler.BulletConfiguration;
|
|
import com.hbm.items.ModItems;
|
|
|
|
public class Gun50BMGFactory {
|
|
|
|
static float inaccuracy = 2.5F;
|
|
public static BulletConfiguration get50BMGConfig() {
|
|
|
|
BulletConfiguration bullet = BulletConfigFactory.standardBulletConfig();
|
|
|
|
bullet.ammo = ModItems.ammo_50bmg;
|
|
bullet.spread *= inaccuracy;
|
|
bullet.dmgMin = 15;
|
|
bullet.dmgMax = 18;
|
|
|
|
return bullet;
|
|
}
|
|
|
|
public static BulletConfiguration get50BMGFireConfig() {
|
|
|
|
BulletConfiguration bullet = BulletConfigFactory.standardBulletConfig();
|
|
|
|
bullet.ammo = ModItems.ammo_50bmg_incendiary;
|
|
bullet.spread *= inaccuracy;
|
|
bullet.dmgMin = 15;
|
|
bullet.dmgMax = 18;
|
|
bullet.wear = 15;
|
|
bullet.incendiary = 5;
|
|
|
|
return bullet;
|
|
}
|
|
|
|
public static BulletConfiguration get50BMGExplosiveConfig() {
|
|
|
|
BulletConfiguration bullet = BulletConfigFactory.standardBulletConfig();
|
|
|
|
bullet.ammo = ModItems.ammo_50bmg_explosive;
|
|
bullet.spread *= inaccuracy;
|
|
bullet.dmgMin = 20;
|
|
bullet.dmgMax = 25;
|
|
bullet.wear = 25;
|
|
bullet.explosive = 1;
|
|
|
|
return bullet;
|
|
}
|
|
|
|
public static BulletConfiguration get50BMGDUConfig() {
|
|
|
|
BulletConfiguration bullet = BulletConfigFactory.standardBulletConfig();
|
|
|
|
bullet.ammo = ModItems.ammo_50bmg_du;
|
|
bullet.spread *= inaccuracy;
|
|
bullet.dmgMin = 25;
|
|
bullet.dmgMax = 35;
|
|
bullet.wear = 25;
|
|
bullet.leadChance = 50;
|
|
|
|
return bullet;
|
|
}
|
|
|
|
}
|