Commit of decompiled and "updated" code.

This commit is contained in:
Big Duckie
2022-07-03 14:13:26 -06:00
parent 3d34e53842
commit e1441e74a5
731 changed files with 18423 additions and 0 deletions
@@ -0,0 +1,67 @@
using FabusMod.Projectiles;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.Ranged.PulsePistols;
public class GoldenPulse : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Golden Pulse");
Tooltip.SetDefault("[c/B6FF00:Autoshoots] \n90% chance to not consume ammo \nShoots incredibly fast \nConverts Musket Balls into golden Pulse Bullets");
}
public override void SetDefaults()
{
Item.damage = 66;
Item.width = 40;
Item.height = 28;
Item.useTime = 2;
Item.useAnimation = 2;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 0f;
Item.value = Item.sellPrice(0, 15, 70, 0);
Item.UseSound = SoundID.Item11;
Item.autoReuse = true;
Item.shoot = ProjectileID.VilethornTip;
Item.shootSpeed = 25f;
Item.useAmmo = AmmoID.Bullet;
Item.rare = 12;
}
public override bool CanConsumeAmmo(Item ammo, Player player)
{
return Utils.NextFloat(Main.rand) >= 0.9f;
}
public override Vector2? HoldoutOffset()
{
return new Vector2(1f, -2f);
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
Vector2 perturbedSpeed = Utils.RotatedByRandom(new Vector2(velocity.X, velocity.Y), (double)MathHelper.ToRadians(8f));
velocity.X = perturbedSpeed.X;
velocity.Y = perturbedSpeed.Y;
if (type == 14)
{
type = ModContent.ProjectileType<PulseBulletGolden>();
}
return true;
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddRecipeGroup("FabusMod:PulseSprayer", 1);
val.AddIngredient(ModContent.ItemType<Items.CraftingIngredients.GoddessGold>(), 2);
val.AddTile(TileID.LunarCraftingStation);
val.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 609 B

@@ -0,0 +1,67 @@
using FabusMod.Projectiles;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.Ranged.PulsePistols;
public class Graffiti : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Graffiti");
Tooltip.SetDefault("[c/B6FF00:Autoshoots] \n90% chance to not consume ammo \nConverts Musket Balls into homing Rainbow Bullets");
}
public override void SetDefaults()
{
Item.damage = 80;
Item.width = 40;
Item.height = 28;
Item.useTime = 2;
Item.useAnimation = 2;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 0f;
Item.value = Item.sellPrice(2, 25, 0, 0);
Item.UseSound = SoundID.Item11;
Item.autoReuse = true;
Item.shoot = ProjectileID.PurificationPowder;
Item.shootSpeed = 40f;
Item.useAmmo = AmmoID.Bullet;
Item.expert = true;
}
public override bool CanConsumeAmmo(Item ammo, Player player)
{
return Utils.NextFloat(Main.rand) >= 0.9f;
}
public override Vector2? HoldoutOffset()
{
return new Vector2(1f, -2f);
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
Vector2 perturbedSpeed = Utils.RotatedByRandom(new Vector2(velocity.X, velocity.Y), (double)MathHelper.ToRadians(8f));
velocity.X = perturbedSpeed.X;
velocity.Y = perturbedSpeed.Y;
if (type == 14)
{
type = ModContent.ProjectileType<RainbowBullet>();
}
return true;
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddIngredient(ModContent.ItemType<GoldenPulse>());
val.AddIngredient(ModContent.ItemType<Bars.RainbowChunk>(), 10);
val.AddTile(ModContent.TileType<global::FabusMod.Tiles.RainbowStation>());
val.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 688 B

@@ -0,0 +1,68 @@
using FabusMod.Projectiles;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.Ranged.PulsePistols;
public class PulsePistol : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Pulse Pistol");
Tooltip.SetDefault("[c/B6FF00:Autoshoots] \n70% chance to not consume ammo \nShoots incredibly fast \nConverts Musket Balls into Pulse Bullets");
}
public override void SetDefaults()
{
Item.damage = 10;
Item.width = 40;
Item.height = 28;
Item.useTime = 2;
Item.useAnimation = 2;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 0f;
Item.value = Item.sellPrice(0, 5, 32, 0);
Item.UseSound = SoundID.Item11;
Item.autoReuse = true;
Item.shoot = ProjectileID.PurificationPowder;
Item.shootSpeed = 25f;
Item.useAmmo = AmmoID.Bullet;
Item.rare = ItemRarityID.LightRed;
}
public override bool CanConsumeAmmo(Item ammo, Player player)
{
return Utils.NextFloat(Main.rand) >= 0.7f;
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
Vector2 perturbedSpeed = Utils.RotatedByRandom(new Vector2(velocity.X, velocity.Y), (double)MathHelper.ToRadians(8f));
velocity.X = perturbedSpeed.X;
velocity.Y = perturbedSpeed.Y;
if (type == 14)
{
type = ModContent.ProjectileType<PulseBullet>();
}
return true;
}
public override Vector2? HoldoutOffset()
{
return new Vector2(1f, -2f);
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddRecipeGroup("FabusMod:AdamantiteBar", 6);
val.AddIngredient(ItemID.Diamond, 2);
val.AddIngredient(ItemID.Sapphire, 2);
val.AddTile(TileID.MythrilAnvil);
val.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 623 B

@@ -0,0 +1,73 @@
using FabusMod.Projectiles;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.Ranged.PulsePistols;
public class PulseSprayer : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Pulse Sprayer");
Tooltip.SetDefault("[c/B6FF00:Autoshoots, dyeable] \n80% chance to not consume ammo \nShoots incredibly fast \nConverts Musket Balls into dark blue Pulse Bullets");
}
public override void SetDefaults()
{
Item.damage = 54;
Item.width = 40;
Item.height = 28;
Item.useTime = 2;
Item.useAnimation = 2;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 0f;
Item.value = Item.sellPrice(0, 10, 20, 0);
Item.UseSound = SoundID.Item11;
Item.autoReuse = true;
Item.shoot = ProjectileID.PurificationPowder;
Item.shootSpeed = 25f;
Item.useAmmo = AmmoID.Bullet;
Item.rare = ItemRarityID.Red;
}
public override bool CanConsumeAmmo(Item ammo, Player player)
{
return Utils.NextFloat(Main.rand) >= 0.8f;
}
public override Vector2? HoldoutOffset()
{
return new Vector2(1f, -2f);
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
Vector2 perturbedSpeed = Utils.RotatedByRandom(new Vector2(velocity.X, velocity.Y), (double)MathHelper.ToRadians(8f));
velocity.X = perturbedSpeed.X;
velocity.Y = perturbedSpeed.Y;
if (type == 14)
{
type = ModContent.ProjectileType<PulseBulletBlue>();
}
return true;
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddRecipeGroup("FabusMod:PunksPulse", 1);
val.AddIngredient(ItemID.FragmentVortex, 8);
val.AddTile(TileID.LunarCraftingStation);
val.Register();
Recipe val2 = CreateRecipe();
val2.AddIngredient(ModContent.ItemType<PulseSprayerCadet>());
val2.AddIngredient(ItemID.BlueDye, 1);
val2.AddTile(TileID.DyeVat);
val2.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 670 B

@@ -0,0 +1,67 @@
using FabusMod.Projectiles;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.Ranged.PulsePistols;
public class PulseSprayerCadet : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Pulse Sprayer - Cadet");
Tooltip.SetDefault("[c/B6FF00:Autoshoots] \n80% chance to not consume ammo \nShoots incredibly fast \nConverts Musket Balls into Pulse Bullets");
}
public override void SetDefaults()
{
Item.damage = 54;
Item.width = 40;
Item.height = 28;
Item.useTime = 2;
Item.useAnimation = 2;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 0f;
Item.value = Item.sellPrice(0, 10, 20, 0);
Item.UseSound = SoundID.Item11;
Item.autoReuse = true;
Item.shoot = ProjectileID.PurificationPowder;
Item.shootSpeed = 25f;
Item.useAmmo = AmmoID.Bullet;
Item.rare = ItemRarityID.Red;
}
public override bool CanConsumeAmmo(Item ammo, Player player)
{
return Utils.NextFloat(Main.rand) >= 0.8f;
}
public override Vector2? HoldoutOffset()
{
return new Vector2(1f, -2f);
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
Vector2 perturbedSpeed = Utils.RotatedByRandom(new Vector2(velocity.X, velocity.Y), (double)MathHelper.ToRadians(8f));
velocity.X = perturbedSpeed.X;
velocity.Y = perturbedSpeed.Y;
if (type == 14)
{
type = ModContent.ProjectileType<PulseBullet>();
}
return true;
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddIngredient(ModContent.ItemType<PulseSprayer>());
val.AddIngredient(ItemID.SilverDye, 1);
val.AddTile(TileID.DyeVat);
val.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 600 B

@@ -0,0 +1,74 @@
using FabusMod.Projectiles;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.Ranged.PulsePistols;
public class PunksPulse : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Punk's Pulse");
Tooltip.SetDefault("[c/B6FF00:Autoshoots, dyeable] \n70% chance to not consume ammo \nShoots incredibly fast \nConverts Musket Balls into Pulse Bullets");
}
public override void SetDefaults()
{
Item.damage = 25;
Item.width = 40;
Item.height = 28;
Item.useTime = 2;
Item.useAnimation = 2;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 0f;
Item.value = Item.sellPrice(0, 8, 64, 0);
Item.UseSound = SoundID.Item11;
Item.autoReuse = true;
Item.shoot = ProjectileID.PurificationPowder;
Item.shootSpeed = 25f;
Item.useAmmo = AmmoID.Bullet;
Item.rare = ItemRarityID.Pink;
}
public override bool CanConsumeAmmo(Item ammo, Player player)
{
return Utils.NextFloat(Main.rand) >= 0.7f;
}
public override Vector2? HoldoutOffset()
{
return new Vector2(1f, -2f);
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
Vector2 perturbedSpeed = Utils.RotatedByRandom(new Vector2(velocity.X, velocity.Y), (double)MathHelper.ToRadians(8f));
velocity.X = perturbedSpeed.X;
velocity.Y = perturbedSpeed.Y;
if (type == 14)
{
type = ModContent.ProjectileType<PulseBullet>();
}
return true;
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddIngredient(ModContent.ItemType<PulsePistol>());
val.AddIngredient(ItemID.HallowedBar, 8);
val.AddIngredient(ItemID.SoulofNight, 6);
val.AddTile(TileID.AdamantiteForge);
val.Register();
Recipe val2 = CreateRecipe();
val2.AddIngredient(ModContent.ItemType<PunksPulseUltraviolet>());
val2.AddIngredient(ItemID.BlueDye, 1);
val2.AddTile(TileID.DyeVat);
val2.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 632 B

@@ -0,0 +1,67 @@
using FabusMod.Projectiles;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.Ranged.PulsePistols;
public class PunksPulseUltraviolet : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Punk's Pulse - Ultraviolet");
Tooltip.SetDefault("[c/B6FF00:Autoshoots] \n70% chance to not consume ammo \nShoots incredibly fast \nConverts Musket Balls into pink Pulse Bullets");
}
public override void SetDefaults()
{
Item.damage = 25;
Item.width = 40;
Item.height = 28;
Item.useTime = 2;
Item.useAnimation = 2;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 0f;
Item.value = Item.sellPrice(0, 8, 64, 0);
Item.UseSound = SoundID.Item11;
Item.autoReuse = true;
Item.shoot = ProjectileID.PurificationPowder;
Item.shootSpeed = 25f;
Item.useAmmo = AmmoID.Bullet;
Item.rare = ItemRarityID.Pink;
}
public override bool CanConsumeAmmo(Item ammo, Player player)
{
return Utils.NextFloat(Main.rand) >= 0.7f;
}
public override Vector2? HoldoutOffset()
{
return new Vector2(1f, -2f);
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
Vector2 perturbedSpeed = Utils.RotatedByRandom(new Vector2(velocity.X, velocity.Y), (double)MathHelper.ToRadians(8f));
velocity.X = perturbedSpeed.X;
velocity.Y = perturbedSpeed.Y;
if (type == 14)
{
type = ModContent.ProjectileType<PulseBulletPink>();
}
return true;
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddIngredient(ModContent.ItemType<PunksPulse>());
val.AddIngredient(ItemID.PinkDye, 1);
val.AddTile(TileID.DyeVat);
val.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 632 B