Merge branch 'master' of https://github.com/UncleDanny/CalamityMod
This commit is contained in:
commit
df36c62e4b
30 files changed
+101
-59
No files matched your search
@@ -9,7 +9,7 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Adrenaline Mode");
|
||||
Description.SetDefault("150% damage boost. Can burnout down to 49.5%.");
|
||||
Description.SetDefault("150% damage boost.");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
|
||||
@@ -185,19 +185,13 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
if (abyssPosX)
|
||||
{
|
||||
switch (Main.rand.Next(4))
|
||||
switch (Main.rand.Next(2))
|
||||
{
|
||||
case 0:
|
||||
rareItemList.Add(ModContent.ItemType<IronBoots>());
|
||||
rareItemList.Add(ModContent.ItemType<AlluringBait>());
|
||||
break;
|
||||
case 1:
|
||||
rareItemList.Add(ModContent.ItemType<DepthCharm>());
|
||||
break;
|
||||
case 2:
|
||||
rareItemList.Add(ModContent.ItemType<AnechoicPlating>());
|
||||
break;
|
||||
case 3:
|
||||
rareItemList.Add(ModContent.ItemType<StrangeOrb>());
|
||||
rareItemList.Add(ModContent.ItemType<AbyssalAmulet>());
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,6 +24,7 @@ namespace CalamityMod.Items.Accessories
|
||||
item.value = Item.buyPrice(0, 60, 0, 0);
|
||||
item.rare = 10;
|
||||
item.accessory = true;
|
||||
item.Calamity().postMoonLordRarity = 13;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
|
||||
@@ -3,6 +3,7 @@ using CalamityMod.Items.Materials;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.Player;
|
||||
|
||||
namespace CalamityMod.Items.Armor
|
||||
{
|
||||
@@ -37,7 +38,8 @@ namespace CalamityMod.Items.Armor
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.statigelSet = true;
|
||||
player.doubleJumpSail = true;
|
||||
player.jumpBoost = true;
|
||||
Player.jumpHeight += 5;
|
||||
player.jumpSpeedBoost += 1.5f;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
|
||||
@@ -3,6 +3,7 @@ using CalamityMod.Items.Materials;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.Player;
|
||||
|
||||
namespace CalamityMod.Items.Armor
|
||||
{
|
||||
@@ -37,7 +38,8 @@ namespace CalamityMod.Items.Armor
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.statigelSet = true;
|
||||
player.doubleJumpSail = true;
|
||||
player.jumpBoost = true;
|
||||
Player.jumpHeight += 5;
|
||||
player.jumpSpeedBoost += 1.5f;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
|
||||
@@ -3,6 +3,7 @@ using CalamityMod.Items.Materials;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.Player;
|
||||
|
||||
namespace CalamityMod.Items.Armor
|
||||
{
|
||||
@@ -37,7 +38,8 @@ namespace CalamityMod.Items.Armor
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.statigelSet = true;
|
||||
player.doubleJumpSail = true;
|
||||
player.jumpBoost = true;
|
||||
Player.jumpHeight += 5;
|
||||
player.jumpSpeedBoost += 1.5f;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
|
||||
@@ -5,6 +5,7 @@ using CalamityMod.Projectiles.Summon;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.Player;
|
||||
|
||||
namespace CalamityMod.Items.Armor
|
||||
{
|
||||
@@ -41,7 +42,8 @@ namespace CalamityMod.Items.Armor
|
||||
modPlayer.statigelSet = true;
|
||||
modPlayer.slimeGod = true;
|
||||
player.doubleJumpSail = true;
|
||||
player.jumpBoost = true;
|
||||
Player.jumpHeight += 5;
|
||||
player.jumpSpeedBoost += 1.5f;
|
||||
player.minionDamage += 0.18f;
|
||||
if (player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
|
||||
@@ -3,6 +3,7 @@ using CalamityMod.Items.Materials;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.Player;
|
||||
|
||||
namespace CalamityMod.Items.Armor
|
||||
{
|
||||
@@ -42,7 +43,8 @@ namespace CalamityMod.Items.Armor
|
||||
modPlayer.statigelSet = true;
|
||||
modPlayer.rogueStealthMax += 1.05f;
|
||||
player.doubleJumpSail = true;
|
||||
player.jumpBoost = true;
|
||||
Player.jumpHeight += 5;
|
||||
player.jumpSpeedBoost += 1.5f;
|
||||
player.Calamity().wearingRogueArmor = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -35,11 +35,7 @@ namespace CalamityMod.Items.DifficultyItems
|
||||
|
||||
public override bool CanUseItem(Player player)
|
||||
{
|
||||
if (CalamityWorld.downedBossAny)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return !CalamityWorld.downedBossAny;
|
||||
}
|
||||
|
||||
public override bool UseItem(Player player)
|
||||
|
||||
@@ -27,6 +27,11 @@ namespace CalamityMod.Items.DifficultyItems
|
||||
item.consumable = true;
|
||||
}
|
||||
|
||||
public override bool CanUseItem(Player player)
|
||||
{
|
||||
return !CalamityWorld.demonMode;
|
||||
}
|
||||
|
||||
public override bool UseItem(Player player)
|
||||
{
|
||||
CalamityWorld.demonMode = true;
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Pets
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Trifigelycen Etomer");
|
||||
DisplayName.SetDefault("Triboluminescent Etomer");
|
||||
Tooltip.SetDefault("Summons an electric troublemaker\n" +
|
||||
"A little note is attached:\n" +
|
||||
"Thank you, Aloe! Very much appreciated from Ben");
|
||||
@@ -48,9 +48,8 @@ namespace CalamityMod.Items.Pets
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<PrismShard>(), 5);
|
||||
recipe.AddIngredient(ItemID.IronBar, 10);
|
||||
recipe.AddRecipeGroup("AnyGoldBar", 8);
|
||||
recipe.AddIngredient(ModContent.ItemType<DemonicBoneAsh>());
|
||||
recipe.anyIronBar = true;
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -12,7 +12,9 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Azathoth");
|
||||
Tooltip.SetDefault("Fires cosmic orbs that blast nearby enemies with lasers\nAn exceptionally agile yoyo\n'Destroy the universe in the blink of an eye'");
|
||||
Tooltip.SetDefault("Fires cosmic orbs that blast nearby enemies with lasers\n" +
|
||||
"A very agile yoyo\n" +
|
||||
"Destroy the universe in the blink of an eye");
|
||||
ItemID.Sets.Yoyo[item.type] = true;
|
||||
ItemID.Sets.GamepadExtraRange[item.type] = 15;
|
||||
ItemID.Sets.GamepadSmartQuickReach[item.type] = true;
|
||||
|
||||
@@ -11,7 +11,9 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Lacerator");
|
||||
Tooltip.SetDefault("Enemies that are hit by the yoyo will have their life drained\nAn exceptionally agile yoyo\n'Someone thought this was a viable weapon against DoG at one point lol'");
|
||||
Tooltip.SetDefault("Enemies that are hit by the yoyo will have their life drained\n" +
|
||||
"A very agile yoyo\n"
|
||||
"Someone thought this was a viable weapon against DoG at one point lol");
|
||||
ItemID.Sets.Yoyo[item.type] = true;
|
||||
ItemID.Sets.GamepadExtraRange[item.type] = 15;
|
||||
ItemID.Sets.GamepadSmartQuickReach[item.type] = true;
|
||||
|
||||
@@ -13,7 +13,10 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("The Oracle");
|
||||
Tooltip.SetDefault("Emits an aura of red lightning which charges up when hitting enemies\nFires auric orbs when supercharged\nAn incredibly agile yoyo\n'Gaze into the past, the present, the future... and the circumstances of your inevitable demise'");
|
||||
Tooltip.SetDefault("Emits an aura of red lightning which charges up when hitting enemies\n" +
|
||||
"Fires auric orbs when supercharged\n" +
|
||||
"An exceptionally agile yoyo\n" +
|
||||
"Gaze into the past, the present, the future... and the circumstances of your inevitable demise");
|
||||
ItemID.Sets.Yoyo[item.type] = true;
|
||||
ItemID.Sets.GamepadExtraRange[item.type] = 15;
|
||||
ItemID.Sets.GamepadSmartQuickReach[item.type] = true;
|
||||
|
||||
@@ -10,7 +10,8 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Solar Flare");
|
||||
Tooltip.SetDefault("Emits large holy explosions on hit\nAn exceptionally agile yoyo");
|
||||
Tooltip.SetDefault("Emits large holy explosions on hit\n" +
|
||||
"A very agile yoyo");
|
||||
ItemID.Sets.Yoyo[item.type] = true;
|
||||
ItemID.Sets.GamepadExtraRange[item.type] = 15;
|
||||
ItemID.Sets.GamepadSmartQuickReach[item.type] = true;
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
DisplayName.SetDefault("The Microwave");
|
||||
Tooltip.SetDefault("Fries nearby enemies with radiation\n" +
|
||||
"An exceptionally agile yoyo\n" +
|
||||
"A very agile yoyo\n" +
|
||||
"Cooking, Astral Infection style");
|
||||
ItemID.Sets.Yoyo[item.type] = true;
|
||||
ItemID.Sets.GamepadExtraRange[item.type] = 15;
|
||||
|
||||
@@ -10,7 +10,8 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("The Obliterator");
|
||||
Tooltip.SetDefault("Ruins nearby enemies with death lasers\nAn incredibly agile yoyo\n");
|
||||
Tooltip.SetDefault("Ruins nearby enemies with death lasers\n" +
|
||||
"An exceptionally agile yoyo");
|
||||
ItemID.Sets.Yoyo[item.type] = true;
|
||||
ItemID.Sets.GamepadExtraRange[item.type] = 15;
|
||||
ItemID.Sets.GamepadSmartQuickReach[item.type] = true;
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 11;
|
||||
item.damage = 6;
|
||||
item.ranged = true;
|
||||
item.width = 60;
|
||||
item.height = 28;
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
DisplayName.SetDefault("Lunar Kunai");
|
||||
Tooltip.SetDefault("Throws out a set of three kunai that ignore gravity and slightly home in on enemies\n"
|
||||
+"After traveling enough distance, the kunai supercharge with lunar energy, homing in far more aggressively and exploding on impact\n"
|
||||
+"Stealth strikes instantly throw twelve supercharged Kunai");
|
||||
+"Stealth strikes instantly throw nine supercharged Kunai");
|
||||
}
|
||||
|
||||
public override void SafeSetDefaults()
|
||||
@@ -68,7 +68,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
num79 *= num80;
|
||||
if (player.Calamity().StealthStrikeAvailable())
|
||||
{
|
||||
for (int i = 0; i < 12; i++)
|
||||
for (int i = 0; i < 9; i++)
|
||||
{
|
||||
float num148 = num78;
|
||||
float num149 = num79;
|
||||
@@ -81,7 +81,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
num149 *= num80;
|
||||
float x4 = vector2.X;
|
||||
float y4 = vector2.Y;
|
||||
int stealth = Projectile.NewProjectile(x4, y4, num148, num149, ModContent.ProjectileType<LunarKunaiProj>(), (int)(damage *1.1) , knockBack, player.whoAmI, 0f, 0f);
|
||||
int stealth = Projectile.NewProjectile(x4, y4, num148, num149, ModContent.ProjectileType<LunarKunaiProj>(), damage, knockBack, player.whoAmI, 0f, 0f);
|
||||
Main.projectile[stealth].Calamity().stealthStrike = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -418,7 +418,7 @@ namespace CalamityMod
|
||||
calamity,
|
||||
"Devourer of Gods",
|
||||
(Func<bool>)(() => CalamityWorld.downedDoG), ModContent.ItemType<CosmicWorm>(),
|
||||
new List<int>() {ModContent.ItemType<DevourerofGodsTrophy>(), ModContent.ItemType<KnowledgeDevourerofGods>(), ModContent.ItemType<CosmicPlushie>()},
|
||||
new List<int>() {ModContent.ItemType<DevourerofGodsTrophy>(), ModContent.ItemType<KnowledgeDevourerofGods>()},
|
||||
new List<int>() {ModContent.ItemType<DevourerofGodsBag>(), ModContent.ItemType<CosmiliteBar>(), ModContent.ItemType<CosmiliteBrick>(), ModContent.ItemType<Excelsus>(), ModContent.ItemType<EradicatorMelee>(), ModContent.ItemType<TheObliterator>(), ModContent.ItemType<Deathwind>(), ModContent.ItemType<DeathhailStaff>(), ModContent.ItemType<StaffoftheMechworm>(), ModContent.ItemType<Eradicator>(), ModContent.ItemType<Skullmasher>(), ModContent.ItemType<Norfleet>(), ModContent.ItemType<CosmicDischarge>(), ModContent.ItemType<NebulousCore>(), ModContent.ItemType<Fabsol>(), ModContent.ItemType<SupremeHealingPotion>()},
|
||||
"Use a [i:" + ModContent.ItemType<CosmicWorm>() + "]",
|
||||
"[c/00FFFF:The Devourer of Gods has slain everyone and feasted on their essence.]",
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 1.3 KiB |
@@ -1144,7 +1144,7 @@ namespace CalamityMod.NPCs
|
||||
}
|
||||
}
|
||||
|
||||
if (NPC.downedPlantBoss && (npc.type == NPCID.SandShark || npc.type == NPCID.SandsharkHallow || npc.type == NPCID.SandsharkCorrupt || npc.type == NPCID.SandsharkCrimson || npc.type == ModContent.NPCType<FusionFeeder>()) && !NPC.AnyNPCs(ModContent.NPCType<GreatSandShark.GreatSandShark>()))
|
||||
if (NPC.downedPlantBoss && (npc.type == NPCID.SandShark || npc.type == NPCID.SandsharkHallow || npc.type == NPCID.SandsharkCorrupt || npc.type == NPCID.SandsharkCrimson) && !NPC.AnyNPCs(ModContent.NPCType<GreatSandShark.GreatSandShark>()))
|
||||
{
|
||||
CalamityMod.sharkKillCount++;
|
||||
if (CalamityMod.sharkKillCount == 4)
|
||||
|
||||
@@ -79,12 +79,12 @@ namespace CalamityMod.Projectiles.Magic
|
||||
|
||||
public override void ModifyHitNPC(NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection)
|
||||
{
|
||||
damage = (int)(((double)damage * (double)projectile.localAI[0]) * (((penetrationAmt + 1) - projectile.penetrate) * 0.02f));
|
||||
damage = (int)(((double)damage * (double)projectile.localAI[0]) / (projectile.penetrate / 2));
|
||||
}
|
||||
|
||||
public override void ModifyHitPvp(Player target, ref int damage, ref bool crit)
|
||||
{
|
||||
damage = (int)(((double)damage * (double)projectile.localAI[0]) * (((penetrationAmt + 1) - projectile.penetrate) * 0.02f));
|
||||
damage = (int)(((double)damage * (double)projectile.localAI[0]) / (projectile.penetrate / 2));
|
||||
}
|
||||
|
||||
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
|
||||
@@ -98,7 +98,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
{
|
||||
echoCooldown = 60;
|
||||
int echoID = ModContent.ProjectileType<HadopelagicEcho2>();
|
||||
int echoDamage = (int)(0.2f * projectile.damage * (((penetrationAmt + 1) - projectile.penetrate) * 0.02f));
|
||||
int echoDamage = (int)(0.2f * projectile.damage);
|
||||
float echoKB = projectile.knockBack / 3;
|
||||
int echos = 5;
|
||||
for (int i = 0; i < echos; ++i)
|
||||
|
||||
@@ -13,8 +13,6 @@ namespace CalamityMod.Projectiles.Melee
|
||||
{
|
||||
public class CosmicDischargeFlail : ModProjectile
|
||||
{
|
||||
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Cosmic Discharge");
|
||||
@@ -271,7 +269,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
}
|
||||
if (projectile.localAI[1] <= 0f && projectile.owner == Main.myPlayer)
|
||||
{
|
||||
Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType<CosmicIceBurst>(), damage, 10f, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f);
|
||||
Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType<CosmicIceBurst>(), projectile.damage, 10f, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f);
|
||||
}
|
||||
projectile.localAI[1] = 4f;
|
||||
player.AddBuff(ModContent.BuffType<CosmicFreeze>(), 300);
|
||||
|
||||
@@ -209,7 +209,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
target.AddBuff(BuffID.Daybreak, 300);
|
||||
if (projectile.localAI[1] <= 0f && projectile.owner == Main.myPlayer)
|
||||
{
|
||||
Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, 612, damage, 10f, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f);
|
||||
Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, 612, projectile.damage, 10f, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f);
|
||||
}
|
||||
projectile.localAI[1] = 4f;
|
||||
}
|
||||
|
||||
@@ -220,7 +220,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
target.AddBuff(ModContent.BuffType<AstralInfectionDebuff>(), 120);
|
||||
if (projectile.localAI[1] <= 0f && projectile.owner == Main.myPlayer)
|
||||
{
|
||||
Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType<Nebudust>(), damage, knockback, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f);
|
||||
Projectile.NewProjectile(target.Center.X, target.Center.Y, 0f, 0f, ModContent.ProjectileType<Nebudust>(), projectile.damage, knockback, projectile.owner, 0f, 0.85f + Main.rand.NextFloat() * 1.15f);
|
||||
}
|
||||
projectile.localAI[1] = 4f;
|
||||
}
|
||||
|
||||
@@ -54,7 +54,16 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
}
|
||||
}
|
||||
|
||||
public override bool CanDamage()
|
||||
public override bool? CanHitNPC(NPC target)
|
||||
{
|
||||
if (HomingCooldown != 0)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public override bool CanHitPvp(Player target)
|
||||
{
|
||||
return HomingCooldown == 0;
|
||||
}
|
||||
@@ -63,12 +72,6 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
HomingCooldown = 25;
|
||||
projectile.velocity *= -0.75f; //bounce off of enemy
|
||||
|
||||
//prevent dummy exploits
|
||||
if (target.type == NPCID.TargetDummy || target.type == ModContent.NPCType<SuperDummy>())
|
||||
{
|
||||
projectile.Kill();
|
||||
}
|
||||
}
|
||||
public override void Kill(int timeLeft)
|
||||
{
|
||||
|
||||
@@ -116,9 +116,18 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
}
|
||||
|
||||
// Cannot deal damage for the first several frames of existence.
|
||||
public override bool CanDamage()
|
||||
{
|
||||
return projectile.timeLeft < 100;
|
||||
}
|
||||
public override bool? CanHitNPC(NPC target)
|
||||
{
|
||||
if (projectile.timeLeft >= 100)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public override bool CanHitPvp(Player target)
|
||||
{
|
||||
return projectile.timeLeft < 100;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -179,9 +179,18 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
}
|
||||
|
||||
// Cannot deal damage for the first several frames of existence.
|
||||
public override bool CanDamage()
|
||||
{
|
||||
return projectile.timeLeft < 590;
|
||||
}
|
||||
public override bool? CanHitNPC(NPC target)
|
||||
{
|
||||
if (projectile.timeLeft >= 590)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public override bool CanHitPvp(Player target)
|
||||
{
|
||||
return projectile.timeLeft < 590;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -199,7 +199,16 @@ namespace CalamityMod.Projectiles.Typeless
|
||||
target.AddBuff(ModContent.BuffType<Vaporfied>(), 120);
|
||||
}
|
||||
|
||||
public override bool CanDamage()
|
||||
public override bool? CanHitNPC(NPC target)
|
||||
{
|
||||
if (projectile.alpha >= 128)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public override bool CanHitPvp(Player target)
|
||||
{
|
||||
return projectile.alpha < 128;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user