local ben eats brimstone sword
This commit is contained in:
1 parent
eb386b1702
commit
419c3ebdc2
3 files changed
+14
-4
No files matched your search
@@ -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.");
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user