Fixed summons and globalitem derp

This commit is contained in:
DominicKarma committed 2020-03-12 16:39:14 -05:00
1 parent c4d55b30e9
commit 0dec2967a0
3 files changed
+5 -5

No files matched your search

+3 -3
View File
@@ -58,11 +58,11 @@ namespace CalamityMod.Items
public int timesUsed = 0;
// Rarity is provided both as the classic int and the new enum.
public CalamityRarity CustomRarity = CalamityRarity.NoEffect;
public CalamityRarity customRarity = CalamityRarity.NoEffect;
public int postMoonLordRarity
{
get => (int)CustomRarity;
set => CustomRarity = (CalamityRarity)value;
get => (int)customRarity;
set => customRarity = (CalamityRarity)value;
}
#region SetDefaults
+1 -1
View File
@@ -32,7 +32,7 @@ namespace CalamityMod.Projectiles.Summon
}
public override void Kill(int timeLeft)
{
if (Main.myPlayer == projectile.whoAmI)
if (Main.myPlayer == projectile.owner)
{
for (int i = 0; i < Main.rand.Next(18, 21); i++)
{
+1 -1
View File
@@ -83,7 +83,7 @@ namespace CalamityMod.Projectiles.Summon
projectile.ai[1]++;
NPC potentialTarget = projectile.Center.MinionHoming(DistanceToCheck, player);
if (potentialTarget != null && Main.myPlayer == projectile.whoAmI)
if (potentialTarget != null && Main.myPlayer == projectile.owner)
{
if (projectile.ai[1] % 35 == 34)
{