Commit of decompiled and "updated" code.
This commit is contained in:
@@ -0,0 +1,70 @@
|
||||
using FabusMod.Projectiles.Arrows;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Items.Weapons.Ranged.Bows.StormBows;
|
||||
|
||||
public class DemonsBow : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Demon's Bow");
|
||||
Tooltip.SetDefault("[c/B6FF00:Autoshoots] \nDoesn't use ammo \nAlways shoots Hellfire Arrows (except with <right>) \nPressing <right> fires 6 demonic arrows in quick succession, but it has lower damage and a 2 second cooldown");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 34;
|
||||
Item.width = 18;
|
||||
Item.height = 38;
|
||||
Item.useTime = 16;
|
||||
Item.useAnimation = 16;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.noMelee = true;
|
||||
Item.knockBack = 3f;
|
||||
Item.value = Item.sellPrice(0, 3, 0, 0);
|
||||
Item.expert = true;
|
||||
Item.UseSound = SoundID.Item5;
|
||||
Item.autoReuse = true;
|
||||
Item.shootSpeed = 16f;
|
||||
}
|
||||
|
||||
public override bool AltFunctionUse(Player player)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public override bool CanUseItem(Player player)
|
||||
{
|
||||
if (player.altFunctionUse == 2)
|
||||
{
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.useTime = 4;
|
||||
Item.useAnimation = 24;
|
||||
Item.damage = 30;
|
||||
Item.reuseDelay = 60;
|
||||
Item.shoot = ModContent.ProjectileType<DemonArrow>();
|
||||
}
|
||||
else
|
||||
{
|
||||
Item.reuseDelay = 0;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.useTime = 16;
|
||||
Item.useAnimation = 16;
|
||||
Item.damage = 34;
|
||||
Item.shoot = ProjectileID.HellfireArrow;
|
||||
}
|
||||
return CanUseItem(player);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddIngredient(ModContent.ItemType<StormBow>());
|
||||
val.AddIngredient(ModContent.ItemType<StonePlatedBow>());
|
||||
val.AddIngredient(ItemID.HellstoneBar, 6);
|
||||
val.AddTile(TileID.Anvils);
|
||||
val.Register();
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 489 B |
@@ -0,0 +1,69 @@
|
||||
using FabusMod.Projectiles.Arrows;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Items.Weapons.Ranged.Bows.StormBows;
|
||||
|
||||
public class GoldenKabuki : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Golden Kabuki");
|
||||
Tooltip.SetDefault("[c/B6FF00:Autoshoots] \nDoesn't use ammo \nAlways shoots Holy Arrows (except with <right>) \nPressing <right> fires 16 spiritual, golden arrows in quick succession, but it has lower damage and a 1 second cooldown");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 58;
|
||||
Item.width = 18;
|
||||
Item.height = 38;
|
||||
Item.useTime = 12;
|
||||
Item.useAnimation = 12;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.noMelee = true;
|
||||
Item.knockBack = 3f;
|
||||
Item.value = Item.sellPrice(0, 22, 0, 0);
|
||||
Item.expert = true;
|
||||
Item.UseSound = SoundID.Item5;
|
||||
Item.autoReuse = true;
|
||||
Item.shootSpeed = 18f;
|
||||
}
|
||||
|
||||
public override bool AltFunctionUse(Player player)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public override bool CanUseItem(Player player)
|
||||
{
|
||||
if (player.altFunctionUse == 2)
|
||||
{
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.useTime = 2;
|
||||
Item.useAnimation = 32;
|
||||
Item.damage = 54;
|
||||
Item.reuseDelay = 30;
|
||||
Item.shoot = ModContent.ProjectileType<GoldenSpiritArrow>();
|
||||
}
|
||||
else
|
||||
{
|
||||
Item.reuseDelay = 0;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.useTime = 12;
|
||||
Item.useAnimation = 12;
|
||||
Item.damage = 58;
|
||||
Item.shoot = ProjectileID.HolyArrow;
|
||||
}
|
||||
return CanUseItem(player);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddIngredient(ModContent.ItemType<Kabuki>());
|
||||
val.AddIngredient(ModContent.ItemType<Items.CraftingIngredients.GoddessGold>(), 6);
|
||||
val.AddTile(TileID.MythrilAnvil);
|
||||
val.Register();
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 609 B |
@@ -0,0 +1,69 @@
|
||||
using FabusMod.Projectiles.Arrows;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Items.Weapons.Ranged.Bows.StormBows;
|
||||
|
||||
public class Kabuki : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Kabuki");
|
||||
Tooltip.SetDefault("[c/B6FF00:Autoshoots] \nDoesn't use ammo \nAlways shoots Hellfire Arrows (except with <right>) \nPressing <right> fires 8 demonic arrows in quick succession, but it has lower damage and a 1.2 second cooldown");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 42;
|
||||
Item.width = 18;
|
||||
Item.height = 38;
|
||||
Item.useTime = 14;
|
||||
Item.useAnimation = 14;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.noMelee = true;
|
||||
Item.knockBack = 3f;
|
||||
Item.value = Item.sellPrice(0, 5, 40, 0);
|
||||
Item.expert = true;
|
||||
Item.UseSound = SoundID.Item5;
|
||||
Item.autoReuse = true;
|
||||
Item.shootSpeed = 18f;
|
||||
}
|
||||
|
||||
public override bool AltFunctionUse(Player player)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public override bool CanUseItem(Player player)
|
||||
{
|
||||
if (player.altFunctionUse == 2)
|
||||
{
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.useTime = 3;
|
||||
Item.useAnimation = 24;
|
||||
Item.damage = 38;
|
||||
Item.reuseDelay = 36;
|
||||
Item.shoot = ModContent.ProjectileType<DemonArrow>();
|
||||
}
|
||||
else
|
||||
{
|
||||
Item.reuseDelay = 0;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.useTime = 14;
|
||||
Item.useAnimation = 14;
|
||||
Item.damage = 42;
|
||||
Item.shoot = ProjectileID.HellfireArrow;
|
||||
}
|
||||
return CanUseItem(player);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddIngredient(ModContent.ItemType<DemonsBow>());
|
||||
val.AddIngredient(ItemID.HallowedBar, 6);
|
||||
val.AddTile(TileID.MythrilAnvil);
|
||||
val.Register();
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 605 B |
@@ -0,0 +1,69 @@
|
||||
using FabusMod.Projectiles.Arrows;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Items.Weapons.Ranged.Bows.StormBows;
|
||||
|
||||
public class RainBow : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Rain-Bow");
|
||||
Tooltip.SetDefault("[c/B6FF00:Autoshoots] \nDoesn't use ammo \nAlways shoots two Rainbow Arrows in quick succession (except with <right>) \nPressing <right> fires 18 Holy Arrows in quick succession, but it has lower damage and a 1 second cooldown");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 90;
|
||||
Item.width = 30;
|
||||
Item.height = 50;
|
||||
Item.useTime = 3;
|
||||
Item.useAnimation = 6;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.noMelee = true;
|
||||
Item.knockBack = 3f;
|
||||
Item.value = Item.sellPrice(1, 50, 0, 0);
|
||||
Item.expert = true;
|
||||
Item.UseSound = SoundID.Item5;
|
||||
Item.autoReuse = true;
|
||||
Item.shootSpeed = 20f;
|
||||
}
|
||||
|
||||
public override bool AltFunctionUse(Player player)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public override bool CanUseItem(Player player)
|
||||
{
|
||||
if (player.altFunctionUse == 2)
|
||||
{
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.useTime = 2;
|
||||
Item.useAnimation = 40;
|
||||
Item.damage = 84;
|
||||
Item.reuseDelay = 30;
|
||||
Item.shoot = ProjectileID.HolyArrow;
|
||||
}
|
||||
else
|
||||
{
|
||||
Item.reuseDelay = 0;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.useTime = 3;
|
||||
Item.useAnimation = 6;
|
||||
Item.damage = 90;
|
||||
Item.shoot = ModContent.ProjectileType<RainbowArrow>();
|
||||
}
|
||||
return CanUseItem(player);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddIngredient(ModContent.ItemType<GoldenKabuki>());
|
||||
val.AddIngredient(ModContent.ItemType<Bars.RainbowChunk>(), 6);
|
||||
val.AddTile(ModContent.TileType<global::FabusMod.Tiles.RainbowStation>());
|
||||
val.Register();
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 614 B |
@@ -0,0 +1,41 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Items.Weapons.Ranged.Bows.StormBows;
|
||||
|
||||
public class StonePlatedBow : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Stone-Plated Bow");
|
||||
Tooltip.SetDefault("Doesn't use ammo\nAlways shoots Wooden Arrows");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 5;
|
||||
Item.width = 18;
|
||||
Item.height = 38;
|
||||
Item.useTime = 32;
|
||||
Item.useAnimation = 32;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.noMelee = true;
|
||||
Item.knockBack = 0f;
|
||||
Item.value = Item.sellPrice(0, 0, 5, 60);
|
||||
Item.UseSound = SoundID.Item5;
|
||||
Item.autoReuse = false;
|
||||
Item.shootSpeed = 9f;
|
||||
Item.shoot = ProjectileID.WoodenArrowFriendly;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddIngredient(ModContent.ItemType<Items.WeaponParts.UntreatedBowPart>(), 2);
|
||||
val.AddIngredient(ItemID.StoneBlock, 4);
|
||||
val.AddIngredient(ItemID.FallenStar, 1);
|
||||
val.AddTile(ModContent.TileType<global::FabusMod.Tiles.ReinforcedWorkBench>());
|
||||
val.Register();
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 518 B |
@@ -0,0 +1,60 @@
|
||||
using FabusMod.Projectiles.Arrows;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Items.Weapons.Ranged.Bows.StormBows;
|
||||
|
||||
public class StormBow : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Storm Bow");
|
||||
Tooltip.SetDefault("[c/B6FF00:Autoshoots] \nDoesn't use ammo \nAlways shoots Wooden Arrows (except with <right>) \nPressing <right> fires 6 Storm Arrows in quick succession, but it has lower damage and a 3 second cooldown");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 24;
|
||||
Item.width = 18;
|
||||
Item.height = 38;
|
||||
Item.useTime = 18;
|
||||
Item.useAnimation = 18;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.noMelee = true;
|
||||
Item.knockBack = 2f;
|
||||
Item.value = Item.sellPrice(0, 0, 60, 0);
|
||||
Item.expert = true;
|
||||
Item.UseSound = SoundID.Item5;
|
||||
Item.autoReuse = true;
|
||||
Item.shootSpeed = 16f;
|
||||
}
|
||||
|
||||
public override bool AltFunctionUse(Player player)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public override bool CanUseItem(Player player)
|
||||
{
|
||||
if (player.altFunctionUse == 2)
|
||||
{
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.useTime = 4;
|
||||
Item.useAnimation = 24;
|
||||
Item.damage = 24;
|
||||
Item.reuseDelay = 90;
|
||||
Item.shoot = ModContent.ProjectileType<StormArrow>();
|
||||
}
|
||||
else
|
||||
{
|
||||
Item.reuseDelay = 0;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.useTime = 18;
|
||||
Item.useAnimation = 18;
|
||||
Item.damage = 28;
|
||||
Item.shoot = ProjectileID.WoodenArrowFriendly;
|
||||
}
|
||||
return CanUseItem(player);
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 513 B |
Reference in New Issue
Block a user