mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
50 lines
1.0 KiB
Java
50 lines
1.0 KiB
Java
package com.hbm.handler.guncfg;
|
|
|
|
import com.hbm.handler.BulletConfiguration;
|
|
import com.hbm.items.ModItems;
|
|
|
|
public class Gun9mmFactory {
|
|
|
|
static float inaccuracy = 5;
|
|
public static BulletConfiguration get9mmConfig() {
|
|
|
|
BulletConfiguration bullet = BulletConfigFactory.standardBulletConfig();
|
|
|
|
bullet.ammo = ModItems.ammo_9mm;
|
|
bullet.spread *= inaccuracy;
|
|
bullet.dmgMin = 2;
|
|
bullet.dmgMax = 4;
|
|
|
|
return bullet;
|
|
}
|
|
|
|
public static BulletConfiguration get9mmAPConfig() {
|
|
|
|
BulletConfiguration bullet = BulletConfigFactory.standardBulletConfig();
|
|
|
|
bullet.ammo = ModItems.ammo_9mm_ap;
|
|
bullet.spread *= inaccuracy;
|
|
bullet.dmgMin = 6;
|
|
bullet.dmgMax = 8;
|
|
bullet.leadChance = 10;
|
|
bullet.wear = 15;
|
|
|
|
return bullet;
|
|
}
|
|
|
|
public static BulletConfiguration get9mmDUConfig() {
|
|
|
|
BulletConfiguration bullet = BulletConfigFactory.standardBulletConfig();
|
|
|
|
bullet.ammo = ModItems.ammo_9mm_du;
|
|
bullet.spread *= inaccuracy;
|
|
bullet.dmgMin = 6;
|
|
bullet.dmgMax = 8;
|
|
bullet.leadChance = 50;
|
|
bullet.wear = 25;
|
|
|
|
return bullet;
|
|
}
|
|
|
|
}
|