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,62 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.Ranged.MachinePistols;
public class AugmentedUzi : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Augmented Uzi");
Tooltip.SetDefault("[c/B6FF00:Autoshoots] \n70% chance to not consume ammo \nShoots incredibly fast");
}
public override void SetDefaults()
{
Item.damage = 32;
Item.width = 48;
Item.height = 38;
Item.useTime = 2;
Item.useAnimation = 2;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 0f;
Item.value = Item.sellPrice(0, 8, 20, 0);
Item.UseSound = SoundID.Item11;
Item.autoReuse = true;
Item.shoot = ProjectileID.PurificationPowder;
Item.shootSpeed = 18f;
Item.useAmmo = AmmoID.Bullet;
Item.rare = ItemRarityID.Lime;
}
public override Vector2? HoldoutOffset()
{
return new Vector2(-12f, -8f);
}
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(6f));
velocity.X = perturbedSpeed.X;
velocity.Y = perturbedSpeed.Y;
return true;
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddIngredient(ModContent.ItemType<MachinePistol>());
val.AddIngredient(ItemID.Uzi, 1);
val.AddTile(TileID.MythrilAnvil);
val.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 777 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.MachinePistols;
public class CosmicHacker : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Cosmic Uzi");
Tooltip.SetDefault("[c/B6FF00:Autoshoots] \n90% chance to not consume ammo \nConverts Musket Balls into homing Rainbow Bullets");
}
public override void SetDefaults()
{
Item.damage = 82;
Item.width = 48;
Item.height = 36;
Item.useTime = 2;
Item.useAnimation = 2;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 0f;
Item.value = Item.sellPrice(2, 30, 0, 0);
Item.UseSound = SoundID.Item11;
Item.autoReuse = true;
Item.shoot = ProjectileID.PurificationPowder;
Item.shootSpeed = 18f;
Item.useAmmo = AmmoID.Bullet;
Item.expert = true;
}
public override Vector2? HoldoutOffset()
{
return new Vector2(-8f, -8f);
}
public override bool CanConsumeAmmo(Item ammo, Player player)
{
return Utils.NextFloat(Main.rand) >= 0.9f;
}
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(5f));
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<MachinePistolGolden>());
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: 638 B

@@ -0,0 +1,62 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.Ranged.MachinePistols;
public class MachinePistol : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Machine Pistol");
Tooltip.SetDefault("[c/B6FF00:Autoshoots] \n80% chance to not consume ammo \nShoots incredibly fast ");
}
public override void SetDefaults()
{
Item.damage = 10;
Item.width = 50;
Item.height = 38;
Item.useTime = 2;
Item.useAnimation = 2;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 0f;
Item.value = Item.sellPrice(0, 7, 20, 0);
Item.UseSound = SoundID.Item11;
Item.autoReuse = true;
Item.shoot = ProjectileID.PurificationPowder;
Item.shootSpeed = 18f;
Item.useAmmo = AmmoID.Bullet;
Item.rare = ItemRarityID.LightRed;
}
public override bool CanConsumeAmmo(Item ammo, Player player)
{
return Utils.NextFloat(Main.rand) >= 0.8f;
}
public override Vector2? HoldoutOffset()
{
return new Vector2(-12f, -8f);
}
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(6f));
velocity.X = perturbedSpeed.X;
velocity.Y = perturbedSpeed.Y;
return true;
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddRecipeGroup("FabusMod:OrichalcumBar", 16);
val.AddIngredient(ItemID.Amethyst, 5);
val.AddTile(TileID.MythrilAnvil);
val.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

@@ -0,0 +1,62 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.Ranged.MachinePistols;
public class MachinePistolGolden : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Golden Machine Pistol");
Tooltip.SetDefault("[c/B6FF00:Autoshoots] \n80% chance to not consume ammo \nShoots incredibly fast");
}
public override void SetDefaults()
{
Item.damage = 66;
Item.width = 50;
Item.height = 38;
Item.useTime = 2;
Item.useAnimation = 2;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 0f;
Item.value = Item.sellPrice(0, 16, 50, 0);
Item.UseSound = SoundID.Item11;
Item.autoReuse = true;
Item.shoot = ProjectileID.PurificationPowder;
Item.shootSpeed = 18f;
Item.useAmmo = AmmoID.Bullet;
Item.rare = 12;
}
public override Vector2? HoldoutOffset()
{
return new Vector2(-12f, -8f);
}
public override bool CanConsumeAmmo(Item ammo, Player player)
{
return Utils.NextFloat(Main.rand) >= 0.8f;
}
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(5f));
velocity.X = perturbedSpeed.X;
velocity.Y = perturbedSpeed.Y;
return true;
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddRecipeGroup("FabusMod:Verano", 1);
val.AddIngredient(ModContent.ItemType<Items.CraftingIngredients.GoddessGold>(), 6);
val.AddTile(TileID.LunarCraftingStation);
val.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 665 B

@@ -0,0 +1,68 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.Ranged.MachinePistols;
public class Verano : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Verano");
Tooltip.SetDefault("[c/B6FF00:Autoshoots, dyeable] \n80% chance to not consume ammo \nShoots incredibly fast");
}
public override void SetDefaults()
{
Item.damage = 60;
Item.width = 48;
Item.height = 36;
Item.useTime = 2;
Item.useAnimation = 2;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 0f;
Item.value = Item.sellPrice(0, 10, 60, 0);
Item.UseSound = SoundID.Item11;
Item.autoReuse = true;
Item.shoot = ProjectileID.PurificationPowder;
Item.shootSpeed = 18f;
Item.useAmmo = AmmoID.Bullet;
Item.rare = ItemRarityID.Red;
}
public override Vector2? HoldoutOffset()
{
return new Vector2(-12f, -8f);
}
public override bool CanConsumeAmmo(Item ammo, Player player)
{
return Utils.NextFloat(Main.rand) >= 0.8f;
}
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(5f));
velocity.X = perturbedSpeed.X;
velocity.Y = perturbedSpeed.Y;
return true;
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddIngredient(ModContent.ItemType<AugmentedUzi>());
val.AddIngredient(ItemID.FragmentVortex, 12);
val.AddTile(TileID.LunarCraftingStation);
val.Register();
Recipe val2 = CreateRecipe();
val2.AddIngredient(ModContent.ItemType<VeranoRime>());
val2.AddIngredient(ItemID.GreenDye, 1);
val2.AddTile(TileID.DyeVat);
val2.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 710 B

@@ -0,0 +1,62 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.Ranged.MachinePistols;
public class VeranoRime : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Verano - Rime");
Tooltip.SetDefault("[c/B6FF00:Autoshoots] \n80% chance to not consume ammo \nShoots incredibly fast");
}
public override void SetDefaults()
{
Item.damage = 60;
Item.width = 56;
Item.height = 36;
Item.useTime = 2;
Item.useAnimation = 2;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 0f;
Item.value = Item.sellPrice(0, 10, 60, 0);
Item.UseSound = SoundID.Item11;
Item.autoReuse = true;
Item.shoot = ProjectileID.PurificationPowder;
Item.shootSpeed = 18f;
Item.useAmmo = AmmoID.Bullet;
Item.rare = ItemRarityID.Red;
}
public override Vector2? HoldoutOffset()
{
return new Vector2(-16f, 0f);
}
public override bool CanConsumeAmmo(Item ammo, Player player)
{
return Utils.NextFloat(Main.rand) >= 0.8f;
}
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(5f));
velocity.X = perturbedSpeed.X;
velocity.Y = perturbedSpeed.Y;
return true;
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddIngredient(ModContent.ItemType<Verano>());
val.AddIngredient(ItemID.BlueDye, 1);
val.AddTile(TileID.DyeVat);
val.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 660 B