All Calamity no ammo ranged weapons are now affected by the Shroomite Helmet
* I did not include weapons that use charge. * I also intentionally did not put Flak Kraken or Flak Toxicannon, since they're getting reworked into rocket launchers.
This commit is contained in:
1 parent
59fa62fd06
commit
08f89d10bd
22 files changed
+92
-2
No files matched your search
@@ -19,6 +19,7 @@ namespace CalamityMod.Items.Fishing.BrimstoneCragCatches
|
||||
public int shotCounter = 0;
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
|
||||
Item.staff[Item.type] = true; //so it doesn't look weird af when holding it
|
||||
}
|
||||
|
||||
|
||||
@@ -13,6 +13,11 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public const int ChargeFrames = 28;
|
||||
public const int CooldownFrames = 16;
|
||||
public static readonly Color[] LightColors = new Color[] { new Color(235, 40, 121), new Color(49, 161, 246) }; //beam colors
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 54;
|
||||
|
||||
@@ -25,6 +25,11 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public static int Charge2Frames = 308;
|
||||
|
||||
public new string LocalizationCategory => "Items.Weapons.Ranged";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 72;
|
||||
|
||||
@@ -12,6 +12,10 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public class BarracudaGun : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Weapons.Ranged";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 54;
|
||||
|
||||
@@ -17,6 +17,11 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public static readonly SoundStyle Heartbeat = new("CalamityMod/Sounds/Item/Heartbeat") { PitchVariance = 0.2f, Volume = 0.55f };
|
||||
|
||||
public bool shotReturn = false;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 60;
|
||||
|
||||
@@ -10,6 +10,11 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public class CoralCannon : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Weapons.Ranged";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 52;
|
||||
|
||||
@@ -10,6 +10,11 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public class ElementalBlaster : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Weapons.Ranged";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 104;
|
||||
|
||||
@@ -21,6 +21,11 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public static int FullChargeFrames = 138; //126 frames is durration of charge sound
|
||||
|
||||
public new string LocalizationCategory => "Items.Weapons.Ranged";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 56;
|
||||
|
||||
@@ -12,6 +12,11 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public class MolecularManipulator : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Weapons.Ranged";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 56;
|
||||
|
||||
@@ -11,6 +11,11 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public class NullificationPistol : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Weapons.Ranged";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 52;
|
||||
|
||||
@@ -21,6 +21,10 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public static int AftershotCooldownFrames = 17;
|
||||
public static int FullChargeFrames = 88;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 48;
|
||||
|
||||
@@ -29,6 +29,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public static readonly SoundStyle Squeak = new("CalamityMod/Sounds/Custom/CuteSqueak") { Volume = 0.75f };
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
|
||||
Item.staff[Item.type] = true; //so it doesn't look weird af when holding it
|
||||
}
|
||||
|
||||
|
||||
@@ -12,6 +12,11 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public new string LocalizationCategory => "Items.Weapons.Ranged";
|
||||
|
||||
public const int MaxPumpkins = 5;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 72;
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -14,7 +14,8 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.ItemsThatAllowRepeatedRightClick[Item.type] = true;
|
||||
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
|
||||
ItemID.Sets.ItemsThatAllowRepeatedRightClick[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -9,6 +9,11 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public class SepticSkewer : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Weapons.Ranged";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 46;
|
||||
|
||||
@@ -30,6 +30,10 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(DashCooldown / 60);
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 52;
|
||||
|
||||
@@ -16,6 +16,11 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Weapons.Ranged";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 166;
|
||||
|
||||
@@ -9,6 +9,11 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public class StellarCannon : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Weapons.Ranged";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 50;
|
||||
|
||||
@@ -11,6 +11,11 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public class StormSurge : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Weapons.Ranged";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 58;
|
||||
|
||||
@@ -9,6 +9,11 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public class SulphuricAcidCannon : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Weapons.Ranged";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 90;
|
||||
|
||||
@@ -10,6 +10,11 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public class TitaniumRailgun : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Weapons.Ranged";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.IsRangedSpecialistWeapon[Item.type] = true;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 62;
|
||||
|
||||
Reference in new issue
Block a user