mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
141 lines
3.5 KiB
Java
141 lines
3.5 KiB
Java
package com.hbm.handler.guncfg;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import com.hbm.handler.BulletConfigSyncingUtil;
|
|
import com.hbm.handler.BulletConfiguration;
|
|
import com.hbm.handler.GunConfiguration;
|
|
import com.hbm.items.ModItems;
|
|
import com.hbm.potion.HbmPotion;
|
|
import com.hbm.render.misc.RenderScreenOverlay.Crosshair;
|
|
|
|
import net.minecraft.potion.PotionEffect;
|
|
|
|
public class Gun357MagnumFactory {
|
|
|
|
public static GunConfiguration getRevolverConfig() {
|
|
|
|
GunConfiguration config = new GunConfiguration();
|
|
|
|
config.rateOfFire = 10;
|
|
config.roundsPerCycle = 1;
|
|
config.gunMode = GunConfiguration.MODE_NORMAL;
|
|
config.firingMode = GunConfiguration.FIRE_MANUAL;
|
|
config.hasReloadAnim = false;
|
|
config.hasFiringAnim = false;
|
|
config.hasSpinup = false;
|
|
config.hasSpindown = false;
|
|
config.reloadDuration = 10;
|
|
config.firingDuration = 0;
|
|
config.ammoCap = 6;
|
|
config.reloadType = GunConfiguration.RELOAD_FULL;
|
|
config.allowsInfinity = true;
|
|
config.crosshair = Crosshair.L_CLASSIC;
|
|
config.durability = 350;
|
|
|
|
config.name = "FFI Viper";
|
|
config.manufacturer = "FlimFlam Industries";
|
|
|
|
config.config = new ArrayList<Integer>();
|
|
config.config.add(BulletConfigSyncingUtil.STEEL_REVOLVER);
|
|
|
|
return config;
|
|
}
|
|
|
|
public static BulletConfiguration getRevIronConfig() {
|
|
|
|
BulletConfiguration bullet = BulletConfigFactory.standardBulletConfig();
|
|
|
|
bullet.ammo = ModItems.gun_revolver_iron_ammo;
|
|
bullet.dmgMin = 2;
|
|
bullet.dmgMax = 4;
|
|
|
|
return bullet;
|
|
}
|
|
|
|
public static BulletConfiguration getRevSteelConfig() {
|
|
|
|
BulletConfiguration bullet = BulletConfigFactory.standardBulletConfig();
|
|
|
|
bullet.ammo = ModItems.gun_revolver_ammo;
|
|
bullet.dmgMin = 3;
|
|
bullet.dmgMax = 5;
|
|
|
|
return bullet;
|
|
}
|
|
|
|
public static BulletConfiguration getRevLeadConfig() {
|
|
|
|
BulletConfiguration bullet = BulletConfigFactory.standardBulletConfig();
|
|
|
|
bullet.ammo = ModItems.gun_revolver_lead_ammo;
|
|
bullet.dmgMin = 2;
|
|
bullet.dmgMax = 3;
|
|
|
|
bullet.effects = new ArrayList();
|
|
bullet.effects.add(new PotionEffect(HbmPotion.radiation.id, 10 * 20, 4));
|
|
|
|
return bullet;
|
|
}
|
|
|
|
public static BulletConfiguration getRevGoldConfig() {
|
|
|
|
BulletConfiguration bullet = BulletConfigFactory.standardBulletConfig();
|
|
|
|
bullet.ammo = ModItems.gun_revolver_gold_ammo;
|
|
bullet.dmgMin = 10;
|
|
bullet.dmgMax = 15;
|
|
|
|
return bullet;
|
|
}
|
|
|
|
public static BulletConfiguration getRevSchrabidiumConfig() {
|
|
|
|
BulletConfiguration bullet = BulletConfigFactory.standardBulletConfig();
|
|
|
|
bullet.ammo = ModItems.gun_revolver_schrabidium_ammo;
|
|
bullet.dmgMin = 10000;
|
|
bullet.dmgMax = 100000;
|
|
bullet.instakill = true;
|
|
|
|
return bullet;
|
|
}
|
|
|
|
public static BulletConfiguration getRevCursedConfig() {
|
|
|
|
BulletConfiguration bullet = BulletConfigFactory.standardBulletConfig();
|
|
|
|
bullet.ammo = ModItems.gun_revolver_cursed_ammo;
|
|
bullet.dmgMin = 12;
|
|
bullet.dmgMax = 15;
|
|
|
|
return bullet;
|
|
}
|
|
|
|
public static BulletConfiguration getRevNightmareConfig() {
|
|
|
|
BulletConfiguration bullet = BulletConfigFactory.standardBulletConfig();
|
|
|
|
bullet.ammo = ModItems.gun_revolver_nightmare_ammo;
|
|
bullet.dmgMin = 1;
|
|
bullet.dmgMax = 50;
|
|
|
|
return bullet;
|
|
}
|
|
|
|
public static BulletConfiguration getRevNightmare2Config() {
|
|
|
|
BulletConfiguration bullet = BulletConfigFactory.standardBulletConfig();
|
|
|
|
bullet.ammo = ModItems.gun_revolver_nightmare_ammo;
|
|
bullet.bulletsMin = 4;
|
|
bullet.bulletsMax = 6;
|
|
bullet.dmgMin = 50;
|
|
bullet.dmgMax = 150;
|
|
bullet.destroysBlocks = true;
|
|
|
|
return bullet;
|
|
}
|
|
|
|
}
|