removed fluff code from jerries

This commit is contained in:
Altixal committed 2023-08-15 10:30:55 +07:00
1 parent 4195b311c8
commit eb87000554
4 files changed
+8 -76

No files matched your search

+2 -19
View File
@@ -18,7 +18,6 @@ namespace CalamityMod.Projectiles.Typless
{
public new string LocalizationCategory => "Projectiles.Healing";
public override string Texture => "CalamityMod/Projectiles/InvisibleProj";
public Player Owner => Main.player[Projectile.owner];
private static float Radius = 160f;
public int ShinkGrow = 0;
public int Framecounter = 0;
@@ -33,16 +32,11 @@ namespace CalamityMod.Projectiles.Typless
public override void SetDefaults()
{
//These shouldn't matter because its circular
Projectile.width = 336;
Projectile.height = 336;
Projectile.width = Projectile.height = 336;
Projectile.friendly = true;
Projectile.DamageType = DamageClass.Default;
Projectile.ignoreWater = true;
Projectile.tileCollide = false;
Projectile.penetrate = -1;
Projectile.timeLeft = 2710;
Projectile.usesLocalNPCImmunity = true;
Projectile.localNPCHitCooldown = 10;
}
public override void AI()
@@ -135,17 +129,6 @@ namespace CalamityMod.Projectiles.Typless
}
}
public override bool? CanCutTiles()
{
return false;
}
public override bool? CanHitNPC(NPC target)
{
return false;
}
public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) => CalamityUtils.CircularHitboxCollision(Projectile.Center, Radius, targetHitbox);
public override bool? CanDamage() => false;
}
}
+2 -19
View File
@@ -18,7 +18,6 @@ namespace CalamityMod.Projectiles.Typless
{
public new string LocalizationCategory => "Projectiles.Healing";
public override string Texture => "CalamityMod/Projectiles/InvisibleProj";
public Player Owner => Main.player[Projectile.owner];
private static float Radius = 160f;
public int ShinkGrow = 0;
public int Framecounter = 0;
@@ -34,16 +33,11 @@ namespace CalamityMod.Projectiles.Typless
public override void SetDefaults()
{
//These shouldn't matter because its circular
Projectile.width = 336;
Projectile.height = 336;
Projectile.width = Projectile.height = 336;
Projectile.friendly = true;
Projectile.DamageType = DamageClass.Default;
Projectile.ignoreWater = true;
Projectile.tileCollide = false;
Projectile.penetrate = -1;
Projectile.timeLeft = 2710;
Projectile.usesLocalNPCImmunity = true;
Projectile.localNPCHitCooldown = 10;
}
public override void AI()
@@ -133,17 +127,6 @@ namespace CalamityMod.Projectiles.Typless
}
}
public override bool? CanCutTiles()
{
return false;
}
public override bool? CanHitNPC(NPC target)
{
return false;
}
public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) => CalamityUtils.CircularHitboxCollision(Projectile.Center, Radius, targetHitbox);
public override bool? CanDamage() => false;
}
}
+2 -19
View File
@@ -18,7 +18,6 @@ namespace CalamityMod.Projectiles.Typless
{
public new string LocalizationCategory => "Projectiles.Healing";
public override string Texture => "CalamityMod/Projectiles/InvisibleProj";
public Player Owner => Main.player[Projectile.owner];
private static float Radius = 160f;
public int ShinkGrow = 0;
public int Framecounter = 0;
@@ -33,16 +32,11 @@ namespace CalamityMod.Projectiles.Typless
public override void SetDefaults()
{
//These shouldn't matter because its circular
Projectile.width = 336;
Projectile.height = 336;
Projectile.width = Projectile.height = 336;
Projectile.friendly = true;
Projectile.DamageType = DamageClass.Default;
Projectile.ignoreWater = true;
Projectile.tileCollide = false;
Projectile.penetrate = -1;
Projectile.timeLeft = 2710;
Projectile.usesLocalNPCImmunity = true;
Projectile.localNPCHitCooldown = 10;
}
public override void AI()
@@ -135,17 +129,6 @@ namespace CalamityMod.Projectiles.Typless
}
}
public override bool? CanCutTiles()
{
return false;
}
public override bool? CanHitNPC(NPC target)
{
return false;
}
public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) => CalamityUtils.CircularHitboxCollision(Projectile.Center, Radius, targetHitbox);
public override bool? CanDamage() => false;
}
}
+2 -19
View File
@@ -16,7 +16,6 @@ namespace CalamityMod.Projectiles.Typless
{
public new string LocalizationCategory => "Projectiles.Healing";
public override string Texture => "CalamityMod/Projectiles/InvisibleProj";
public Player Owner => Main.player[Projectile.owner];
private static float Radius = 160f;
public int ShinkGrow = 0;
public int Framecounter = 0;
@@ -28,16 +27,11 @@ namespace CalamityMod.Projectiles.Typless
public override void SetDefaults()
{
//These shouldn't matter because its circular
Projectile.width = 336;
Projectile.height = 336;
Projectile.width = Projectile.height = 336;
Projectile.friendly = true;
Projectile.DamageType = DamageClass.Default;
Projectile.ignoreWater = true;
Projectile.tileCollide = false;
Projectile.penetrate = -1;
Projectile.timeLeft = 2710;
Projectile.usesLocalNPCImmunity = true;
Projectile.localNPCHitCooldown = 10;
}
public override void AI()
@@ -108,17 +102,6 @@ namespace CalamityMod.Projectiles.Typless
}
}
public override bool? CanCutTiles()
{
return false;
}
public override bool? CanHitNPC(NPC target)
{
return false;
}
public override bool? Colliding(Rectangle projHitbox, Rectangle targetHitbox) => CalamityUtils.CircularHitboxCollision(Projectile.Center, Radius, targetHitbox);
public override bool? CanDamage() => false;
}
}