This commit is contained in:
Ozzatron committed 2020-04-06 00:52:28 -04:00
commit 0734829bdf
4 files changed
+14 -19

No files matched your search

+3 -1
View File
@@ -1335,7 +1335,7 @@ namespace CalamityMod
#region Item Rarity
public static bool SetCalamityRarity(Item item, int rarityNum)
{
CalamityGlobalItem cgi = item.GetGlobalItem<CalamityGlobalItem>();
CalamityGlobalItem cgi = item.Calamity();
cgi.customRarity = (CalamityRarity)rarityNum;
return cgi.customRarity != CalamityRarity.NoEffect;
}
@@ -1663,6 +1663,7 @@ namespace CalamityMod
Item item = (Item)args[1];
int rarity = (int)args[2];
return SetCalamityRarity(item, rarity);
case "AbominationnClearEvents":
bool eventActive = CalamityWorld.rainingAcid;
bool canClear = Convert.ToBoolean(args[1]); //This is to indicate whether abomm is able to clear the event due to a cooldown
@@ -1673,6 +1674,7 @@ namespace CalamityMod
AcidRainEvent.UpdateInvasion(false);
}
return eventActive;
default:
return new ArgumentException("ERROR: Invalid method name.");
}
+10 -2
View File
@@ -3435,6 +3435,10 @@ namespace CalamityMod.NPCs
{
damage = (int)(damage * 0.75);
}
else if (projectile.type == ModContent.ProjectileType<ProfanedSwordProj>())
{
damage = (int)(damage * 0.5);
}
else if (projectile.type == ModContent.ProjectileType<SulphuricNukesplosion>())
{
damage /= 3;
@@ -3446,7 +3450,7 @@ namespace CalamityMod.NPCs
else if (projectile.type == ModContent.ProjectileType<BrimstoneSwordExplosion>())
{
if (projectile.penetrate == -1)
projectile.penetrate = 5;
projectile.penetrate = 4;
damage = (int)(damage * 0.1);
}
}
@@ -3457,13 +3461,17 @@ namespace CalamityMod.NPCs
damage = (int)(damage * 0.5);
}
if (projectile.type == ModContent.ProjectileType<FlameBeamTip>() || projectile.type == ModContent.ProjectileType<FlameBeamTip2>())
{
damage = (int)(damage * 0.5);
}
else if (projectile.type == ModContent.ProjectileType<ProfanedSwordProj>())
{
damage = (int)(damage * 0.5);
}
else if (projectile.type == ModContent.ProjectileType<BrimstoneSwordExplosion>())
{
if (projectile.penetrate == -1)
projectile.penetrate = 5;
projectile.penetrate = 4;
damage = (int)(damage * 0.1);
}
}
+1 -1
View File
@@ -20,7 +20,7 @@ namespace CalamityMod.Projectiles.Melee
projectile.width = 10;
projectile.height = 10;
projectile.friendly = true;
projectile.penetrate = 5;
projectile.penetrate = 4;
projectile.aiStyle = 113;
projectile.timeLeft = 600;
aiType = ProjectileID.BoneJavelin;
@@ -30,21 +30,6 @@ namespace CalamityMod.Projectiles.Melee.Spears
public override float InitialSpeed => 3f;
public override float ReelbackSpeed => 1.1f;
public override float ForwardSpeed => 0.95f;
public override void ExtraBehavior()
{
if (Main.rand.NextBool(5))
Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 12, projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f);
projectile.localAI[0] += 1f;
if (projectile.localAI[0] >= 6f)
{
projectile.localAI[0] = 0f;
if (Main.myPlayer == projectile.owner)
{
Projectile.NewProjectile(projectile.Center.X + projectile.velocity.X, projectile.Center.Y + projectile.velocity.Y,
projectile.velocity.X, projectile.velocity.Y, ModContent.ProjectileType<Feather>(), (int)(projectile.damage * 0.2), 0f, projectile.owner, 0f, 0f);
}
}
}
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
{