stop editing files that I'm likely to fix myself, thanks
No files matched your search
@@ -65,7 +65,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
public override void AI(Projectile projectile)
|
||||
{
|
||||
if (!projectile.npcProj && !projectile.trap && projectile.minion && !ProjectileID.Sets.MinionShot[projectile.type] && Main.player[projectile.owner].GetModPlayer<WulfrumBatteryPlayer>().battery)
|
||||
if (!projectile.npcProj && !projectile.trap && (projectile.minion||projectile.sentry) && !ProjectileID.Sets.MinionShot[projectile.type] && !ProjectileID.Sets.SentryShot[projectile.type] && Main.player[projectile.owner].GetModPlayer<WulfrumBatteryPlayer>().battery)
|
||||
{
|
||||
float lightMult = 1f;
|
||||
if (Lighting.UpdateEveryFrame) //The light loks wayyy too bright in retro/trippy
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
using CalamityMod.Cooldowns;
|
||||
using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Armor.Wulfrum;
|
||||
using CalamityMod.NPCs.NormalNPCs;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static CalamityMod.CalamityUtils;
|
||||
|
||||
namespace CalamityMod.Items.Materials
|
||||
{
|
||||
public class AnodizedWulfrumMetal : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Materials";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 25;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 18;
|
||||
Item.height = 18;
|
||||
Item.maxStack = Item.CommonMaxStack;
|
||||
Item.value = Item.sellPrice(copper: 10);
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.ammo = Item.type;
|
||||
}
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(1).
|
||||
AddIngredient<StormlionMandible>().
|
||||
AddIngredient<WulfrumMetalScrap>().
|
||||
AddTile(TileID.WorkBenches).
|
||||
Register();
|
||||
}
|
||||
//Added to avoid making the recipes really repeditive and nonsensical. It also makes the new metal color make sense. Adds a bit of flavor to the Wulfrum Recipes
|
||||
//Fun fact the reason used Stormlion Manible is because in order to anodize a metal you must use a current, the other option was a powercell but I feel StormlionMandible needed more uses
|
||||
//More uses are planned for other blocks and furniture for wulfrum that use this new metal color and gives a bit more depth to the set
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 373 B |
@@ -0,0 +1,32 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Tiles.FurnitureWulfrum;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.FurnitureWulfrum
|
||||
{
|
||||
public class WulfrumPlatform : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 200;
|
||||
}
|
||||
|
||||
public override void SetDefaults() => Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.FurnitureWulfrum.WulfrumPlatform>());
|
||||
|
||||
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI)
|
||||
{
|
||||
Item.DrawItemGlowmaskSingleFrame(spriteBatch, rotation, ModContent.Request<Texture2D>("CalamityMod/Items/Placeables/FurnitureWulfrum/WulfrumPlatform_Glow").Value);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(2).
|
||||
AddIngredient<WulfrumMetalScrap>().
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 407 B |
|
After Width: | Height: | Size: 108 B |
@@ -0,0 +1,32 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Walls;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.FurnitureWulfrum
|
||||
{
|
||||
public class WulfrumSheets : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 100;
|
||||
}
|
||||
|
||||
public override void SetDefaults() => Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.FurnitureWulfrum.WulfrumSheets>());
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(25).
|
||||
AddRecipeGroup("AnyStoneBlock", 25).
|
||||
AddIngredient<AnodizedWulfrumMetal>().
|
||||
AddTile(TileID.HeavyWorkBench).
|
||||
Register();
|
||||
//CreateRecipe().
|
||||
// AddIngredient<WulfrumPlatingWall>(4).
|
||||
// AddTile(TileID.WorkBenches).
|
||||
// DisableDecraft().
|
||||
// Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 288 B |
@@ -0,0 +1,33 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Walls;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.FurnitureWulfrum
|
||||
{
|
||||
public class WulfrumSiding : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 100;
|
||||
}
|
||||
|
||||
public override void SetDefaults() => Item.DefaultToPlaceableTile(ModContent.TileType<Tiles.FurnitureWulfrum.WulfrumSiding>());
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(25).
|
||||
AddRecipeGroup("AnyStoneBlock", 25).
|
||||
AddIngredient<AnodizedWulfrumMetal>().
|
||||
AddIngredient<WulfrumMetalScrap>().
|
||||
AddTile(TileID.HeavyWorkBench).
|
||||
Register();
|
||||
//CreateRecipe().
|
||||
// AddIngredient<WulfrumPlatingWall>(4).
|
||||
// AddTile(TileID.WorkBenches).
|
||||
// DisableDecraft().
|
||||
// Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 232 B |
@@ -0,0 +1,28 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.FurnitureWulfrum;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using WallTiles = CalamityMod.Walls;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.Walls
|
||||
{
|
||||
public class WulfrumPillar : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 400;
|
||||
}
|
||||
|
||||
public override void SetDefaults() => Item.DefaultToPlaceableWall(ModContent.WallType<WallTiles.WulfrumPillar>());
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(8).
|
||||
AddIngredient<AnodizedWulfrumMetal>().
|
||||
AddIngredient<WulfrumMetalScrap>().
|
||||
AddTile(TileID.WorkBenches).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 434 B |
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
{
|
||||
Item.width = 28;
|
||||
Item.height = 30;
|
||||
Item.damage = 54;
|
||||
Item.damage = 67;
|
||||
Item.DamageType = DamageClass.Magic;
|
||||
Item.mana = 15;
|
||||
Item.useTime = 8;
|
||||
|
||||
@@ -57,7 +57,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<IonBlaster>().
|
||||
AddIngredient(ItemID.FragmentSolar, 6).
|
||||
AddIngredient(ItemID.FragmentSolar, 12).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
Register();
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
{
|
||||
Item.width = 36;
|
||||
Item.height = 40;
|
||||
Item.damage = 143;
|
||||
Item.damage = 159;
|
||||
Item.DamageType = DamageClass.Magic;
|
||||
Item.mana = 38;
|
||||
Item.useTime = 50;
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
{
|
||||
Item.width = 38;
|
||||
Item.height = 42;
|
||||
Item.damage = 72;
|
||||
Item.damage = 79;
|
||||
Item.DamageType = DamageClass.Magic;
|
||||
Item.mana = 13;
|
||||
Item.useTime = 20;
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
{
|
||||
Item.width = 62;
|
||||
Item.height = 60;
|
||||
Item.damage = 188;
|
||||
Item.damage = 197;
|
||||
Item.DamageType = DamageClass.Magic;
|
||||
Item.mana = 60;
|
||||
Item.useTime = 3;
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
{
|
||||
Item.width = 40;
|
||||
Item.height = 56;
|
||||
Item.damage = 2800;
|
||||
Item.damage = 3900;
|
||||
Item.DamageType = DamageClass.Magic;
|
||||
Item.mana = 85;
|
||||
Item.useTime = 78;
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
{
|
||||
Item.width = 36;
|
||||
Item.height = 42;
|
||||
Item.damage = 210;
|
||||
Item.damage = 300;
|
||||
Item.DamageType = DamageClass.Magic;
|
||||
Item.mana = 48;
|
||||
Item.useTime = 68;
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
{
|
||||
Item.width = 58;
|
||||
Item.height = 56;
|
||||
Item.damage = 190;
|
||||
Item.damage = 260;
|
||||
Item.DamageType = DamageClass.Magic;
|
||||
Item.mana = 10;
|
||||
Item.useTime = 12;
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
Item.width = 92;
|
||||
Item.height = 94;
|
||||
Item.damage = 35;
|
||||
Item.damage = 48;
|
||||
|
||||
Item.DamageType = TrueMeleeDamageClass.Instance;
|
||||
Item.useAnimation = Item.useTime = 38;
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
Item.width = 118;
|
||||
Item.height = 118;
|
||||
|
||||
Item.damage = 235;
|
||||
Item.damage = 255;
|
||||
Item.useAnimation = Item.useTime = 45;
|
||||
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
@@ -76,7 +76,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
}
|
||||
if (player.Calamity().demonSwordKillMode && player.ownedProjectileCounts[ModContent.ProjectileType<DevilsDevastationHoldout>()] <= 0 && player.Calamity().killModeCooldown == KillMode.cooldownMax + KillMode.buffMax)
|
||||
{
|
||||
Projectile blade = Projectile.NewProjectileDirect(player.GetSource_FromThis(), player.MountedCenter, Vector2.Zero, ModContent.ProjectileType<DevilsDevastationHoldout>(), Item.damage * 30, Item.knockBack, player.whoAmI, 0, throwCount);
|
||||
Projectile blade = Projectile.NewProjectileDirect(player.GetSource_FromThis(), player.MountedCenter, Vector2.Zero, ModContent.ProjectileType<DevilsDevastationHoldout>(), Item.damage * 21, Item.knockBack, player.whoAmI, 0, throwCount); //This used to be 30x damage.
|
||||
}
|
||||
}
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
Item.width = 88;
|
||||
Item.height = 88;
|
||||
Item.damage = 95;
|
||||
Item.damage = 71;
|
||||
Item.useAnimation = Item.useTime = 45;
|
||||
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
@@ -74,7 +74,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
}
|
||||
if (player.Calamity().demonSwordKillMode && player.ownedProjectileCounts[ModContent.ProjectileType<ExaltedOathbladeHoldout>()] <= 0 && player.Calamity().killModeCooldown == KillMode.cooldownMax + KillMode.buffMax)
|
||||
{
|
||||
Projectile blade = Projectile.NewProjectileDirect(player.GetSource_FromThis(), player.MountedCenter, Vector2.Zero, ModContent.ProjectileType<ExaltedOathbladeHoldout>(), Item.damage * 23, Item.knockBack, player.whoAmI, 0, throwCount);
|
||||
Projectile blade = Projectile.NewProjectileDirect(player.GetSource_FromThis(), player.MountedCenter, Vector2.Zero, ModContent.ProjectileType<ExaltedOathbladeHoldout>(), Item.damage * 15, Item.knockBack, player.whoAmI, 0, throwCount); //This used to be 23x damage.
|
||||
}
|
||||
}
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
|
||||
@@ -75,7 +75,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
}
|
||||
if (player.Calamity().demonSwordKillMode && player.ownedProjectileCounts[ModContent.ProjectileType<ForbiddenOathbladeHoldout>()] <= 0 && player.Calamity().killModeCooldown == KillMode.cooldownMax + KillMode.buffMax)
|
||||
{
|
||||
Projectile blade = Projectile.NewProjectileDirect(player.GetSource_FromThis(), player.MountedCenter,Vector2.Zero, ModContent.ProjectileType<ForbiddenOathbladeHoldout>(), Item.damage * 12, Item.knockBack, player.whoAmI, 0, throwCount);
|
||||
Projectile blade = Projectile.NewProjectileDirect(player.GetSource_FromThis(), player.MountedCenter,Vector2.Zero, ModContent.ProjectileType<ForbiddenOathbladeHoldout>(), Item.damage * 10, Item.knockBack, player.whoAmI, 0, throwCount); // This used to be 12x damage.
|
||||
}
|
||||
}
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
Item.width = 130;
|
||||
Item.height = 130;
|
||||
Item.damage = 325;
|
||||
Item.damage = 515;
|
||||
Item.DamageType = TrueMeleeDamageClass.Instance;
|
||||
Item.useAnimation = 35;
|
||||
Item.useTime = 35;
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
Item.width = 100;
|
||||
Item.height = 100;
|
||||
Item.damage = 325;
|
||||
Item.damage = 365;
|
||||
Item.DamageType = TrueMeleeDamageClass.Instance;
|
||||
Item.useAnimation = 50;
|
||||
Item.useTime = 50;
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = Item.height = 108;
|
||||
Item.damage = 415;
|
||||
Item.damage = 445;
|
||||
Item.DamageType = DamageClass.Melee;
|
||||
Item.useAnimation = Item.useTime = useTime;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
Item.width = 50;
|
||||
Item.height = 50;
|
||||
Item.damage = 300;
|
||||
Item.damage = 490;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.useAnimation = Item.useTime = 13;
|
||||
Item.reuseDelay = 30;
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
Item.width = 100;
|
||||
Item.height = 118;
|
||||
Item.damage = 56;
|
||||
Item.damage = 98;
|
||||
Item.DamageType = TrueMeleeDamageClass.Instance;
|
||||
|
||||
Item.useAnimation = Item.useTime = 33;
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
Item.width = 62;
|
||||
Item.height = 34;
|
||||
Item.damage = 320;
|
||||
Item.damage = 465;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.useAnimation = Item.useTime = 30;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
@@ -51,11 +51,11 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
if (player.Calamity().cooldowns.TryGetValue(HellbornShots.ID, out var cooldown))
|
||||
{
|
||||
cooldown.timeLeft = 8 - player.Calamity().hellbornShots;
|
||||
cooldown.timeLeft = 12 - player.Calamity().hellbornShots;
|
||||
}
|
||||
else
|
||||
{
|
||||
player.AddCooldown(HellbornShots.ID, 8);
|
||||
player.AddCooldown(HellbornShots.ID, 12);
|
||||
}
|
||||
}
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
Item.width = 48;
|
||||
Item.height = 48;
|
||||
Item.damage = 111;
|
||||
Item.damage = 144;
|
||||
Item.noMelee = true;
|
||||
Item.noUseGraphic = true;
|
||||
Item.useAnimation = 17;
|
||||
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
Item.DamageType = RogueDamageClass.Instance;
|
||||
}
|
||||
|
||||
public override float StealthDamageMultiplier => 0.5f;
|
||||
public override float StealthDamageMultiplier => 0.65f;
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = Item.height = 94;
|
||||
Item.damage = 420;
|
||||
Item.damage = 438;
|
||||
Item.noMelee = true;
|
||||
Item.noUseGraphic = true;
|
||||
Item.useAnimation = Item.useTime = 90;
|
||||
|
||||
@@ -60,7 +60,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
if (buffList[playerIndex] == false)
|
||||
{
|
||||
buffList[playerIndex] = true;
|
||||
player.AddBuff(ModContent.BuffType<SandsWindBuff>(), 240);
|
||||
player.AddBuff(ModContent.BuffType<SandsWindBuff>(), 600);
|
||||
|
||||
int Dusts = 12;
|
||||
float radians = MathHelper.TwoPi / Dusts;
|
||||
|
||||
@@ -71,7 +71,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
if (buffList[playerIndex] == false)
|
||||
{
|
||||
buffList[playerIndex] = true;
|
||||
player.AddBuff(ModContent.BuffType<AeolianEarthBuff>(), 540);
|
||||
player.AddBuff(ModContent.BuffType<AeolianEarthBuff>(), 840);
|
||||
|
||||
int Dusts = 8;
|
||||
float radians = MathHelper.TwoPi / Dusts;
|
||||
|
||||
@@ -71,7 +71,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
if (buffList[playerIndex] == false)
|
||||
{
|
||||
buffList[playerIndex] = true;
|
||||
player.AddBuff(ModContent.BuffType<SandsWindBuff>(), 360);
|
||||
player.AddBuff(ModContent.BuffType<SandsWindBuff>(), 720);
|
||||
|
||||
int Dusts = 12;
|
||||
float radians = MathHelper.TwoPi / Dusts;
|
||||
|
||||
@@ -201,8 +201,8 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
}
|
||||
public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers)
|
||||
{
|
||||
modifiers.SourceDamage *= 0.1f;
|
||||
if (Owner.Calamity().hellbornShots < 8)
|
||||
modifiers.SourceDamage *= 0.115f;
|
||||
if (Owner.Calamity().hellbornShots < 12)
|
||||
{
|
||||
Owner.Calamity().hellbornShots++;
|
||||
}
|
||||
|
||||
@@ -27,8 +27,16 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
}
|
||||
public override void AI()
|
||||
{
|
||||
if (Main.zenithWorld)
|
||||
{
|
||||
Projectile.hostile = true;
|
||||
Projectile.friendly = true;
|
||||
}
|
||||
|
||||
if (Projectile.ai[0] == 1)
|
||||
ExplosionRadius = 800;
|
||||
{
|
||||
ExplosionRadius = 800;
|
||||
}
|
||||
}
|
||||
public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers)
|
||||
{
|
||||
|
||||
@@ -44,6 +44,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
}
|
||||
public override void AI()
|
||||
{
|
||||
|
||||
if (setRot)
|
||||
{
|
||||
rotDirection = Main.rand.NextBool() ? 1 : -1;
|
||||
@@ -151,24 +152,41 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
|
||||
internal void Explode(bool big)
|
||||
{
|
||||
float sizeBonus = big ? 2 : 1;
|
||||
float bigExplosionDamage = 1f;
|
||||
|
||||
|
||||
float sizeBonus = big ? Main.zenithWorld ? 6 : 2 : 1;
|
||||
float bigExplosionDamage = 3f;
|
||||
Player Owner = Main.player[Projectile.owner];
|
||||
Particle orb = new CustomPulse(Projectile.Center, Vector2.Zero, Color.LightGreen with { A = 0 }, "CalamityMod/Particles/LargeBloom", new Vector2(1, 1), Main.rand.NextFloat(-10, 10), 0f, 0.82f * sizeBonus, 11);
|
||||
GeneralParticleHandler.SpawnParticle(orb);
|
||||
Particle orb2 = new CustomPulse(Projectile.Center, Vector2.Zero, Color.White, "CalamityMod/Particles/LargeBloom", new Vector2(1, 1), Main.rand.NextFloat(-10, 10), 0f, 0.74f * sizeBonus, 11);
|
||||
GeneralParticleHandler.SpawnParticle(orb2);
|
||||
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Vector2.Zero, ModContent.ProjectileType<DestructionExplosion>(), (int)(Projectile.damage * (big ? bigExplosionDamage : Projectile.Calamity().stealthStrike ? 0.25f : 1f)), Projectile.knockBack * 1.5f, Projectile.owner);
|
||||
SoundStyle explo = new("CalamityMod/Sounds/Item/MeldExplosion");
|
||||
SoundEngine.PlaySound(explo with { Volume = 0.9f }, Projectile.Center);
|
||||
|
||||
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, Vector2.Zero, ModContent.ProjectileType<DestructionExplosion>(), (int)(Projectile.damage * (big ? Main.zenithWorld ? bigExplosionDamage * 4f : bigExplosionDamage : Projectile.Calamity().stealthStrike ? 0.25f : 1f)), Projectile.knockBack * 1.5f, Projectile.owner);
|
||||
|
||||
if (!Main.zenithWorld || !big)
|
||||
{
|
||||
SoundStyle explo = new("CalamityMod/Sounds/Item/MeldExplosion");
|
||||
SoundEngine.PlaySound(explo with { Volume = 0.9f }, Projectile.Center);
|
||||
}
|
||||
else
|
||||
{
|
||||
SoundStyle gfbExplosion = new("CalamityMod/Sounds/Custom/ExoMechs/AresGaussNukeExplosion");
|
||||
SoundEngine.PlaySound(gfbExplosion with { Volume = 1f, Pitch = -0.5f }, Projectile.Center);
|
||||
}
|
||||
|
||||
if (big)
|
||||
{
|
||||
SoundStyle explo2 = new("CalamityMod/Sounds/Item/EarthMeteor");
|
||||
SoundEngine.PlaySound(explo2 with { Volume = 0.9f, Pitch = -0.2f }, Projectile.Center);
|
||||
if (!Main.zenithWorld)
|
||||
{
|
||||
SoundStyle explo2 = new("CalamityMod/Sounds/Item/EarthMeteor");
|
||||
SoundEngine.PlaySound(explo2 with { Volume = 0.9f, Pitch = -0.2f }, Projectile.Center);
|
||||
|
||||
SoundStyle explo3 = new("CalamityMod/Sounds/Item/ExobladeDashImpact");
|
||||
SoundEngine.PlaySound(explo3 with { Volume = 0.9f, Pitch = -0.2f }, Projectile.Center);
|
||||
}
|
||||
|
||||
SoundStyle explo3 = new("CalamityMod/Sounds/Item/ExobladeDashImpact");
|
||||
SoundEngine.PlaySound(explo3 with { Volume = 0.9f, Pitch = -0.2f }, Projectile.Center);
|
||||
}
|
||||
|
||||
Particle bolt2 = new CustomPulse(Projectile.Center, Vector2.Zero, Color.LightGreen, "CalamityMod/Particles/BloomRing", Vector2.One, Main.rand.NextFloat(-10f, 10f), 0f, 2.56f * 1.3f * sizeBonus, 18);
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
using CalamityMod.Items.Placeables.FurnitureWulfrum;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using ReLogic.Content;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Tiles.FurnitureWulfrum
|
||||
{
|
||||
public class WulfrumPlatform : ModTile
|
||||
{
|
||||
internal static Texture2D GlowTexture;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
GlowTexture = ModContent.Request<Texture2D>("CalamityMod/Tiles/FurnitureWulfrum/WulfrumPlatform_Glow", AssetRequestMode.ImmediateLoad).Value;
|
||||
}
|
||||
|
||||
this.SetUpPlatform(ModContent.ItemType<Items.Placeables.FurnitureWulfrum.WulfrumPlatform>(), true);
|
||||
}
|
||||
|
||||
public override bool CanExplode(int i, int j) => false;
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
{
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.TerraBlade, 0f, 0f, 1, new Color(255, 255, 255), 1f);
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void PostSetDefaults()
|
||||
{
|
||||
Main.tileNoSunLight[Type] = false;
|
||||
}
|
||||
|
||||
public override void NumDust(int i, int j, bool fail, ref int num)
|
||||
{
|
||||
num = fail ? 1 : 3;
|
||||
}
|
||||
public override void PostDraw(int i, int j, SpriteBatch spriteBatch)
|
||||
{
|
||||
// If the cached textures don't exist for some reason, don't bother using them.
|
||||
if (GlowTexture is null)
|
||||
return;
|
||||
|
||||
Tile tile = CalamityUtils.ParanoidTileRetrieval(i, j);
|
||||
if (tile.IsTileActuallyInvisible())
|
||||
return;
|
||||
|
||||
int xPos = tile.TileFrameX;
|
||||
int frameOffset = (i + j) % 6 * AnimationFrameHeight;
|
||||
int yPos = tile.TileFrameY + frameOffset;
|
||||
Vector2 drawOffset = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange);
|
||||
Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffset;
|
||||
|
||||
if (!tile.IsHalfBlock)
|
||||
{
|
||||
spriteBatch.Draw(GlowTexture, drawPosition, new Rectangle?(new Rectangle(xPos, yPos, 18, 18)), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
|
||||
}
|
||||
else if (tile.IsHalfBlock)
|
||||
{
|
||||
spriteBatch.Draw(GlowTexture, drawPosition + new Vector2(0f, 8f), new Rectangle?(new Rectangle(xPos, yPos, 18, 8)), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 240 B |
@@ -0,0 +1,51 @@
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Systems;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Tiles.FurnitureWulfrum
|
||||
{
|
||||
public class WulfrumSheets : ModTile
|
||||
{
|
||||
public static readonly SoundStyle MinePlatingSound = new("CalamityMod/Sounds/Custom/PlatingMine", 3);
|
||||
private const short subsheetWidth = 216;
|
||||
private const short subsheetHeight = 72;
|
||||
public static int TypeCache;
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
TypeCache = Type;
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileBlockLight[Type] = false;
|
||||
Main.tileShine2[Type] = true;
|
||||
|
||||
CalamityUtils.MergeWithGeneral(Type);
|
||||
|
||||
HitSound = MinePlatingSound;
|
||||
AddMapEntry(new Color(164, 150, 125));
|
||||
}
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
{
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.TerraBlade, 0f, 0f, 1, new Color(255, 255, 255), 1f);
|
||||
return false;
|
||||
}
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
TileFramingSystem.CompactFraming(i, j, resetFrame);
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void AnimateIndividualTile(int type, int i, int j, ref int frameXOffset, ref int frameYOffset)
|
||||
{
|
||||
int xPos = i % 2;
|
||||
int yPos = j % 2;
|
||||
frameXOffset = xPos * subsheetWidth;
|
||||
frameYOffset = yPos * subsheetHeight;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 8.2 KiB |
@@ -0,0 +1,38 @@
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Systems;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Tiles.FurnitureWulfrum
|
||||
{
|
||||
public class WulfrumSiding : ModTile
|
||||
{
|
||||
public static readonly SoundStyle MinePlatingSound = new("CalamityMod/Sounds/Custom/PlatingMine", 3);
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.tileSolid[Type] = true;
|
||||
Main.tileBlockLight[Type] = true;
|
||||
|
||||
CalamityUtils.MergeWithGeneral(Type);
|
||||
|
||||
HitSound = MinePlatingSound;
|
||||
AddMapEntry(new Color(164, 150, 125));
|
||||
}
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
{
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.TerraBlade, 0f, 0f, 1, new Color(255, 255, 255), 1f);
|
||||
return false;
|
||||
}
|
||||
|
||||
public override bool TileFrame(int i, int j, ref bool resetFrame, ref bool noBreak)
|
||||
{
|
||||
return TileFramingSystem.BetterGemsparkFraming(i, j, resetFrame);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 3.7 KiB |
@@ -648,6 +648,7 @@ namespace CalamityMod
|
||||
SetMerge(type, TileType<AshenSlab>());
|
||||
SetMerge(type, TileType<VoidstoneSlab>());
|
||||
SetMerge(type, TileType<WulfrumPanels>());
|
||||
SetMerge(type, TileType<WulfrumSiding>());
|
||||
SetMerge(type, TileType<WulfrumPlating>());
|
||||
SetMerge(type, TileType<WulfrumEnergyBarrier>());
|
||||
}
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Walls
|
||||
{
|
||||
public class WulfrumPillar : ModWall
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.wallHouse[Type] = true;
|
||||
AddMapEntry(new Color(82, 109, 80));
|
||||
}
|
||||
|
||||
public override bool CreateDust(int i, int j, ref int type)
|
||||
{
|
||||
Dust.NewDust(new Vector2(i, j) * 16f, 16, 16, DustID.TerraBlade, 0f, 0f, 1, new Color(255, 255, 255), 1f);
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void NumDust(int i, int j, bool fail, ref int num) => num = fail ? 1 : 3;
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 7.0 KiB |