local ben eats brimstone sword

This commit is contained in:
termigator1359 committed 2020-04-05 22:38:03 -04:00
1 parent eb386b1702
commit 419c3ebdc2
3 files changed
+14 -4

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;