mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
lol?
This commit is contained in:
parent
1ec84ff294
commit
23fea92fc4
@ -1,15 +1,19 @@
|
|||||||
package com.hbm.items;
|
package com.hbm.items.weapon;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
import com.hbm.entity.EntityBullet;
|
import com.google.common.collect.Multimap;
|
||||||
|
import com.hbm.entity.projectile.EntityBullet;
|
||||||
|
import com.hbm.items.ModItems;
|
||||||
import com.hbm.lib.ModDamageSource;
|
import com.hbm.lib.ModDamageSource;
|
||||||
|
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
import net.minecraft.enchantment.Enchantment;
|
import net.minecraft.enchantment.Enchantment;
|
||||||
import net.minecraft.enchantment.EnchantmentHelper;
|
import net.minecraft.enchantment.EnchantmentHelper;
|
||||||
|
import net.minecraft.entity.SharedMonsterAttributes;
|
||||||
|
import net.minecraft.entity.ai.attributes.AttributeModifier;
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
import net.minecraft.item.EnumAction;
|
import net.minecraft.item.EnumAction;
|
||||||
import net.minecraft.item.EnumRarity;
|
import net.minecraft.item.EnumRarity;
|
||||||
@ -43,11 +47,19 @@ public class GunSuicide extends Item {
|
|||||||
this.ammo = ModItems.gun_revolver_ammo;
|
this.ammo = ModItems.gun_revolver_ammo;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public EnumRarity getRarity(ItemStack p_77613_1_) {
|
public EnumRarity getRarity(ItemStack p_77613_1_) {
|
||||||
|
|
||||||
return EnumRarity.uncommon;
|
if (this == ModItems.gun_revolver_schrabidium) {
|
||||||
}
|
return EnumRarity.rare;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this == ModItems.gun_revolver_cursed) {
|
||||||
|
return EnumRarity.uncommon;
|
||||||
|
}
|
||||||
|
|
||||||
|
return EnumRarity.common;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* called when the player releases the use item button. Args: itemstack, world, entityplayer, itemInUseCount
|
* called when the player releases the use item button. Args: itemstack, world, entityplayer, itemInUseCount
|
||||||
@ -85,6 +97,21 @@ public class GunSuicide extends Item {
|
|||||||
//p_77615_2_.playSoundAtEntity(p_77615_3_, "random.explode", 1.0F, 3.0F);
|
//p_77615_2_.playSoundAtEntity(p_77615_3_, "random.explode", 1.0F, 3.0F);
|
||||||
p_77615_2_.playSoundAtEntity(p_77615_3_, "hbm:weapon.revolverShoot", 1.0F, 1.0F);
|
p_77615_2_.playSoundAtEntity(p_77615_3_, "hbm:weapon.revolverShoot", 1.0F, 1.0F);
|
||||||
}
|
}
|
||||||
|
if(this == ModItems.gun_revolver || this == ModItems.gun_revolver_iron || this == ModItems.gun_revolver_gold || this == ModItems.gun_revolver_lead)
|
||||||
|
{
|
||||||
|
//p_77615_2_.playSoundAtEntity(p_77615_3_, "random.explode", 1.0F, 3.0F);
|
||||||
|
p_77615_2_.playSoundAtEntity(p_77615_3_, "hbm:weapon.revolverShoot", 1.0F, 1.0F);
|
||||||
|
}
|
||||||
|
if(this == ModItems.gun_revolver_cursed)
|
||||||
|
{
|
||||||
|
//p_77615_2_.playSoundAtEntity(p_77615_3_, "random.explode", 3.0F, 1.5F);
|
||||||
|
p_77615_2_.playSoundAtEntity(p_77615_3_, "hbm:weapon.heavyShoot", 3.0F, 1.0F);
|
||||||
|
}
|
||||||
|
if(this == ModItems.gun_revolver_schrabidium)
|
||||||
|
{
|
||||||
|
//p_77615_2_.playSoundAtEntity(p_77615_3_, "random.explode", 1.0F, 3.0F);
|
||||||
|
p_77615_2_.playSoundAtEntity(p_77615_3_, "hbm:weapon.schrabidiumShoot", 1.0F, 1.0F);
|
||||||
|
}
|
||||||
|
|
||||||
if (flag)
|
if (flag)
|
||||||
{ }
|
{ }
|
||||||
@ -159,7 +186,53 @@ public class GunSuicide extends Item {
|
|||||||
list.add("...I shouldn't have seen.");
|
list.add("...I shouldn't have seen.");
|
||||||
list.add("");
|
list.add("");
|
||||||
list.add("Ammo: Lead Bullets");
|
list.add("Ammo: Lead Bullets");
|
||||||
list.add("Damage: ∞");
|
list.add("Damage: infinite");
|
||||||
|
}
|
||||||
|
if (this == ModItems.gun_revolver_iron) {
|
||||||
|
list.add("Cheap.");
|
||||||
|
list.add("");
|
||||||
|
list.add("Ammo: Iron Bullets");
|
||||||
|
list.add("Damage: 5 - 15");
|
||||||
|
}
|
||||||
|
if (this == ModItems.gun_revolver) {
|
||||||
|
list.add("I feel like a cowboy!");
|
||||||
|
list.add("");
|
||||||
|
list.add("Ammo: Lead Bullets");
|
||||||
|
list.add("Damage: 10 - 25");
|
||||||
|
}
|
||||||
|
if (this == ModItems.gun_revolver_gold) {
|
||||||
|
list.add("GoldenEye would be proud!");
|
||||||
|
list.add("");
|
||||||
|
list.add("Ammo: Golden Bullets");
|
||||||
|
list.add("Damage: 20 - 30");
|
||||||
|
}
|
||||||
|
if (this == ModItems.gun_revolver_lead) {
|
||||||
|
list.add("Made from lead for your safety!");
|
||||||
|
list.add("");
|
||||||
|
list.add("Ammo: Atomic Bullets");
|
||||||
|
list.add("Damage: 5 - 15");
|
||||||
|
list.add("Bullets are radioactive.");
|
||||||
|
}
|
||||||
|
if (this == ModItems.gun_revolver_schrabidium) {
|
||||||
|
list.add("Kills everyone and everything.");
|
||||||
|
list.add("");
|
||||||
|
list.add("Ammo: Schrabidium Bullets");
|
||||||
|
list.add("Damage: 10000 - 100000");
|
||||||
|
list.add("Sets enemy's health to zero.");
|
||||||
|
}
|
||||||
|
if (this == ModItems.gun_revolver_cursed) {
|
||||||
|
list.add("You're dead.");
|
||||||
|
list.add("");
|
||||||
|
list.add("Ammo: Steel Bullets");
|
||||||
|
list.add("Damage: 25 - 40");
|
||||||
|
list.add("33% chance of user being withered.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Multimap getItemAttributeModifiers() {
|
||||||
|
Multimap multimap = super.getItemAttributeModifiers();
|
||||||
|
multimap.put(SharedMonsterAttributes.attackDamage.getAttributeUnlocalizedName(),
|
||||||
|
new AttributeModifier(field_111210_e, "Weapon modifier", (double) 2.5, 0));
|
||||||
|
return multimap;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user