Fixed summons and globalitem derp
This commit is contained in:
1 parent
c4d55b30e9
commit
0dec2967a0
3 files changed
+5
-5
No files matched your search
@@ -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
|
||||
|
||||
@@ -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++)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user