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
Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

@@ -0,0 +1,65 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.RainbowDemon;
public class TheRainbowDemon : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("The Rainbow Demon");
Tooltip.SetDefault("[c/B6FF00:Autoshoots] \nUnleashes a barrage of rainbow waves \nDoes not require ammo \nClass and projectiles fired can be changed via crafting \n[c/FF2B6E:Currently Unobtainable]");
}
public override void SetDefaults()
{
Item.damage = 82;
Item.width = 82;
Item.height = 39;
Item.useTime = 4;
Item.useAnimation = 4;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 0f;
Item.value = Item.sellPrice(40, 0, 0, 0);
Item.UseSound = SoundID.Item11;
Item.autoReuse = true;
Item.shoot = ProjectileID.PurificationPowder;
Item.shootSpeed = 25f;
Item.shoot = ModContent.ProjectileType<Projectiles.RainbowDemon.RainbowDemonMelee>();
Item.expert = true;
}
public override Vector2? HoldoutOffset()
{
return new Vector2(7f, -5f);
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
int numberProjectiles = 10;
for (int i = 0; i < numberProjectiles; i++)
{
Vector2 perturbedSpeed = Utils.RotatedByRandom(new Vector2(velocity.X, velocity.Y), (double)MathHelper.ToRadians(30f));
Projectile.NewProjectile(source, position.X, position.Y, perturbedSpeed.X, perturbedSpeed.Y, type, damage, knockback, player.whoAmI);
}
return false;
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddIngredient(ModContent.ItemType<Items.CraftingIngredients.RainbowHandle> ());
val.AddIngredient(ModContent.ItemType<Items.CraftingIngredients.RainbowMuzzle>());
val.AddTile(ModContent.TileType<global::FabusMod.Tiles.RainbowStation>());
val.Register();
Recipe val2 = CreateRecipe();
val2.AddRecipeGroup("FabusMod:TheRainbowDemon", 1);
val2.AddTile(ModContent.TileType<global::FabusMod.Tiles.RainbowStation>());
val2.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

@@ -0,0 +1,60 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.RainbowDemon;
public class TheRainbowDemonClaymore : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("The Rainbow Demon - Claymore");
Tooltip.SetDefault("[c/B6FF00:Autoshoots] \nUnleashes a slow-moving barrage of homing rainbow balls \nDoes not require ammo \nClass and projectiles fired can be changed via crafting \n[c/FF2B6E:Currently Unobtainable]");
}
public override void SetDefaults()
{
Item.damage = 82;
Item.width = 82;
Item.height = 39;
Item.useTime = 4;
Item.useAnimation = 4;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 0f;
Item.value = Item.sellPrice(40, 0, 0, 0);
Item.UseSound = SoundID.Item11;
Item.autoReuse = true;
Item.shoot = ProjectileID.PurificationPowder;
Item.shootSpeed = 25f;
Item.shoot = ModContent.ProjectileType<Projectiles.RainbowDemon.RainbowDemonClaymoreProj>();
Item.expert = true;
}
public override Vector2? HoldoutOffset()
{
return new Vector2(7f, -5f);
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
int numberProjectiles = 5;
for (int i = 0; i < numberProjectiles; i++)
{
Vector2 perturbedSpeed = Utils.RotatedByRandom(new Vector2(velocity.X, velocity.Y), (double)MathHelper.ToRadians(30f));
Projectile.NewProjectile(source, position.X, position.Y, perturbedSpeed.X, perturbedSpeed.Y, type, damage, knockback, player.whoAmI);
}
return false;
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddRecipeGroup("FabusMod:TheRainbowDemon", 1);
val.AddIngredient(ModContent.ItemType<Items.CraftingIngredients.RainbowDust>(), 2);
val.AddTile(ModContent.TileType<global::FabusMod.Tiles.RainbowStation>());
val.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

@@ -0,0 +1,61 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.RainbowDemon;
public class TheRainbowDemonMagic : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("The Rainbow Demon - Magic");
Tooltip.SetDefault("[c/B6FF00:Autoshoots] \nUnleashes a barrage of oval-shaped rainbow projectiles \nDoes not require mana \nClass and projectiles fired can be changed via crafting \n[c/FF2B6E:Currently Unobtainable]");
}
public override void SetDefaults()
{
Item.damage = 82;
Item.noMelee = true;
Item.width = 82;
Item.height = 39;
Item.useTime = 4;
Item.useAnimation = 4;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 0f;
Item.value = Item.sellPrice(40, 0, 0, 0);
Item.UseSound = SoundID.Item11;
Item.autoReuse = true;
Item.shoot = ProjectileID.PurificationPowder;
Item.shootSpeed = 25f;
Item.shoot = ModContent.ProjectileType<Projectiles.RainbowDemon.RainbowDemonMagicBall>();
Item.expert = true;
}
public override Vector2? HoldoutOffset()
{
return new Vector2(7f, -5f);
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
int numberProjectiles = 10;
for (int i = 0; i < numberProjectiles; i++)
{
Vector2 perturbedSpeed = Utils.RotatedByRandom(new Vector2(velocity.X, velocity.Y), (double)MathHelper.ToRadians(30f));
Projectile.NewProjectile(source, position.X, position.Y, perturbedSpeed.X, perturbedSpeed.Y, type, damage, knockback, player.whoAmI);
}
return false;
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddRecipeGroup("FabusMod:TheRainbowDemon", 1);
val.AddIngredient(ItemID.FragmentNebula, 2);
val.AddTile(ModContent.TileType<global::FabusMod.Tiles.RainbowStation>());
val.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

@@ -0,0 +1,61 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.RainbowDemon;
public class TheRainbowDemonRanged : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("The Rainbow Demon - Ranged");
Tooltip.SetDefault("[c/B6FF00:Autoshoots] \nUnleashes a barrage of rainbow arrows \nDoes not require ammo \nClass and projectiles fired can be changed via crafting \n[c/FF2B6E:Currently Unobtainable]");
}
public override void SetDefaults()
{
Item.damage = 82;
Item.noMelee = true;
Item.width = 82;
Item.height = 39;
Item.useTime = 4;
Item.useAnimation = 4;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 0f;
Item.value = Item.sellPrice(40, 0, 0, 0);
Item.UseSound = SoundID.Item11;
Item.autoReuse = true;
Item.shoot = ProjectileID.PurificationPowder;
Item.shootSpeed = 25f;
Item.shoot = ModContent.ProjectileType<Projectiles.RainbowDemon.RainbowDemonArrow>();
Item.expert = true;
}
public override Vector2? HoldoutOffset()
{
return new Vector2(7f, -5f);
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
int numberProjectiles = 10;
for (int i = 0; i < numberProjectiles; i++)
{
Vector2 perturbedSpeed = Utils.RotatedByRandom(new Vector2(velocity.X, velocity.Y), (double)MathHelper.ToRadians(30f));
Projectile.NewProjectile(source, position.X, position.Y, perturbedSpeed.X, perturbedSpeed.Y, type, damage, knockback, player.whoAmI);
}
return false;
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddRecipeGroup("FabusMod:TheRainbowDemon", 1);
val.AddIngredient(ItemID.FragmentVortex, 2);
val.AddTile(ModContent.TileType<global::FabusMod.Tiles.RainbowStation>());
val.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

@@ -0,0 +1,60 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.RainbowDemon;
public class TheRainbowDemonShredder : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("The Rainbow Demon - Shredder");
Tooltip.SetDefault("[c/B6FF00:Autoshoots] \nUnleashes a barrage of rainbow axes \nClass and projectiles fired can be changed via crafting \n[c/FF2B6E:Currently Unobtainable]");
}
public override void SetDefaults()
{
Item.damage = 82;
Item.width = 82;
Item.height = 39;
Item.useTime = 4;
Item.useAnimation = 4;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 0f;
Item.value = Item.sellPrice(40, 0, 0, 0);
Item.UseSound = SoundID.Item11;
Item.autoReuse = true;
Item.shoot = ProjectileID.PurificationPowder;
Item.shootSpeed = 25f;
Item.shoot = ModContent.ProjectileType<Projectiles.RainbowDemon.RainbowDemonShredderProj>();
Item.expert = true;
}
public override Vector2? HoldoutOffset()
{
return new Vector2(7f, -5f);
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
int numberProjectiles = 10;
for (int i = 0; i < numberProjectiles; i++)
{
Vector2 perturbedSpeed = Utils.RotatedByRandom(new Vector2(velocity.X, velocity.Y), (double)MathHelper.ToRadians(30f));
Projectile.NewProjectile(source, position.X, position.Y, perturbedSpeed.X, perturbedSpeed.Y, type, damage, knockback, player.whoAmI);
}
return false;
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddRecipeGroup("FabusMod:TheRainbowDemon", 1);
val.AddIngredient(ModContent.ItemType<Items.CraftingIngredients.RainbowDust>(), 2);
val.AddTile(ModContent.TileType<global::FabusMod.Tiles.RainbowStation>());
val.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

@@ -0,0 +1,62 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
namespace FabusMod.Items.Weapons.RainbowDemon;
public class TheRainbowDemonThrowing : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("The Rainbow Demon - Throwing");
Tooltip.SetDefault("[c/B6FF00:Autoshoots] \nUnleashes a barrage of rainbow daggers \nDoes not require ammo \nClass and projectiles fired can be changed via crafting \n[c/FF2B6E:Currently Unobtainable]");
}
public override void SetDefaults()
{
Item.damage = 82;
Item.noMelee = true;
Item.width = 82;
Item.height = 39;
Item.useTime = 4;
Item.useAnimation = 4;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 0f;
Item.value = Item.sellPrice(40, 0, 0, 0);
Item.UseSound = SoundID.Item11;
Item.autoReuse = true;
Item.shoot = ProjectileID.PurificationPowder;
Item.shootSpeed = 25f;
Item.shoot = ModContent.ProjectileType<Projectiles.RainbowDemon.RainbowDemonKnife>();
Item.expert = true;
}
public override Vector2? HoldoutOffset()
{
return new Vector2(7f, -5f);
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
int numberProjectiles = 10;
for (int i = 0; i < numberProjectiles; i++)
{
Vector2 perturbedSpeed = Utils.RotatedByRandom(new Vector2(velocity.X, velocity.Y), (double)MathHelper.ToRadians(30f));
Projectile.NewProjectile(source, position.X, position.Y, perturbedSpeed.X, perturbedSpeed.Y, type, damage, knockback, player.whoAmI);
}
return false;
}
public override void AddRecipes()
{
Recipe val = CreateRecipe();
val.AddRecipeGroup("FabusMod:TheRainbowDemon", 1);
val.AddIngredient(ItemID.FragmentSolar, 1);
val.AddIngredient(ItemID.FragmentVortex, 1);
val.AddTile(ModContent.TileType<global::FabusMod.Tiles.RainbowStation>());
val.Register();
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB