mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
36 lines
758 B
Java
36 lines
758 B
Java
package com.hbm.handler.guncfg;
|
|
|
|
import com.hbm.handler.BulletConfiguration;
|
|
import com.hbm.items.ModItems;
|
|
|
|
public class Gun22LRFactory {
|
|
|
|
static float inaccuracy = 5;
|
|
public static BulletConfiguration get22LRConfig() {
|
|
|
|
BulletConfiguration bullet = BulletConfigFactory.standardBulletConfig();
|
|
|
|
bullet.ammo = ModItems.ammo_22lr;
|
|
bullet.spread *= inaccuracy;
|
|
bullet.dmgMin = 2;
|
|
bullet.dmgMax = 4;
|
|
|
|
return bullet;
|
|
}
|
|
|
|
public static BulletConfiguration get22LRAPConfig() {
|
|
|
|
BulletConfiguration bullet = BulletConfigFactory.standardBulletConfig();
|
|
|
|
bullet.ammo = ModItems.ammo_22lr_ap;
|
|
bullet.spread *= inaccuracy;
|
|
bullet.dmgMin = 6;
|
|
bullet.dmgMax = 8;
|
|
bullet.leadChance = 10;
|
|
bullet.wear = 15;
|
|
|
|
return bullet;
|
|
}
|
|
|
|
}
|