39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
using Emiliasmod.Content.Projectiles;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace Emiliasmod.Content.Items.Ammo
|
|
{
|
|
|
|
//[Autoload(false)]
|
|
public class VacuumTube : ModItem {
|
|
public override void SetDefaults() {
|
|
Item.width = 24;
|
|
Item.height = 24;
|
|
Item.maxStack = 24;//need to introduce overheat if i want to make this 9999
|
|
Item.consumable = true;
|
|
Item.knockBack = 0f;
|
|
Item.crit = 0;
|
|
Item.value = Item.sellPrice(0, 15, 5, 0);
|
|
Item.rare = ItemRarityID.Red;
|
|
Item.shoot = ModContent.ProjectileType<SpaceBlasterProjectile>();
|
|
Item.ammo = ModContent.ItemType<VacuumTube>();
|
|
}
|
|
}
|
|
public class QuantumVacuumTube : ModItem {//for debug purpose while overheat isn't created
|
|
public override void SetDefaults() {
|
|
Item.width = 24;
|
|
Item.height = 24;
|
|
Item.maxStack = 1;
|
|
Item.consumable = false;
|
|
Item.knockBack = 0f;
|
|
Item.crit = 0;
|
|
Item.value = Item.sellPrice(0, 15, 5, 0);
|
|
Item.rare = ItemRarityID.Red;
|
|
Item.shoot = ModContent.ProjectileType<SpaceBlasterProjectile>();
|
|
Item.ammo = ModContent.ItemType<VacuumTube>();
|
|
}
|
|
}
|
|
}
|