many holdout adjustments
This commit is contained in:
1 parent
e3cede44c0
commit
d016e9373f
11 files changed
+96
-5
No files matched your search
@@ -1,7 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Items;
|
||||
|
||||
namespace CalamityMod.Items.Patreon
|
||||
{
|
||||
@@ -39,7 +43,7 @@ namespace CalamityMod.Items.Patreon
|
||||
|
||||
public override Vector2? HoldoutOffset()
|
||||
{
|
||||
return new Vector2(-15, 10);
|
||||
return new Vector2(-15, 5);
|
||||
}
|
||||
|
||||
public override bool CanUseItem(Player player)
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Items;
|
||||
|
||||
namespace CalamityMod.Items.Weapons.AbyssWeapons
|
||||
{
|
||||
@@ -35,7 +39,7 @@ namespace CalamityMod.Items.Weapons.AbyssWeapons
|
||||
|
||||
public override Vector2? HoldoutOffset()
|
||||
{
|
||||
return new Vector2(-5, 0);
|
||||
return new Vector2(-10, -5);
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Items;
|
||||
|
||||
namespace CalamityMod.Items.Weapons.Astral
|
||||
{
|
||||
@@ -32,6 +37,11 @@ namespace CalamityMod.Items.Weapons.Astral
|
||||
item.shoot = mod.ProjectileType("AstralRound");
|
||||
item.useAmmo = 97;
|
||||
}
|
||||
|
||||
public override Vector2? HoldoutOffset()
|
||||
{
|
||||
return new Vector2(-5, 0);
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
{
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Items;
|
||||
|
||||
namespace CalamityMod.Items.Weapons.Bumblebirb
|
||||
{
|
||||
@@ -32,6 +37,11 @@ namespace CalamityMod.Items.Weapons.Bumblebirb
|
||||
item.useAmmo = 97;
|
||||
item.GetGlobalItem<CalamityGlobalItem>(mod).postMoonLordRarity = 12;
|
||||
}
|
||||
|
||||
public override Vector2? HoldoutOffset()
|
||||
{
|
||||
return new Vector2(-5, 0);
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
{
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Items;
|
||||
|
||||
namespace CalamityMod.Items.Weapons.Crabulon
|
||||
{
|
||||
@@ -31,6 +36,11 @@ namespace CalamityMod.Items.Weapons.Crabulon
|
||||
item.shootSpeed = 14f;
|
||||
item.useAmmo = 97;
|
||||
}
|
||||
|
||||
public override Vector2? HoldoutOffset()
|
||||
{
|
||||
return new Vector2(-5, 0);
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
{
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Items;
|
||||
|
||||
namespace CalamityMod.Items.Weapons
|
||||
{
|
||||
@@ -36,7 +40,7 @@ namespace CalamityMod.Items.Weapons
|
||||
|
||||
public override Vector2? HoldoutOffset()
|
||||
{
|
||||
return new Vector2(-5, 0);
|
||||
return new Vector2(-10, 0);
|
||||
}
|
||||
|
||||
public override bool ConsumeAmmo(Player player)
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Items;
|
||||
|
||||
namespace CalamityMod.Items.Weapons.Perforators
|
||||
{
|
||||
@@ -32,6 +37,11 @@ namespace CalamityMod.Items.Weapons.Perforators
|
||||
item.shootSpeed = 22f;
|
||||
item.useAmmo = 97;
|
||||
}
|
||||
|
||||
public override Vector2? HoldoutOffset()
|
||||
{
|
||||
return new Vector2(-7, 0);
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
{
|
||||
|
||||
+11
-1
@@ -1,6 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Items;
|
||||
|
||||
namespace CalamityMod.Items.Weapons
|
||||
{
|
||||
@@ -34,7 +39,12 @@ namespace CalamityMod.Items.Weapons
|
||||
item.useAmmo = 97;
|
||||
item.GetGlobalItem<CalamityGlobalItem>(mod).postMoonLordRarity = 14;
|
||||
}
|
||||
|
||||
|
||||
public override Vector2? HoldoutOffset()
|
||||
{
|
||||
return new Vector2(-10, 0);
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
{
|
||||
float SpeedX = speedX + (float)Main.rand.Next(-5, 6) * 0.05f;
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Items;
|
||||
|
||||
namespace CalamityMod.Items.Weapons
|
||||
{
|
||||
@@ -31,6 +36,11 @@ namespace CalamityMod.Items.Weapons
|
||||
item.shoot = mod.ProjectileType("SlagRound");
|
||||
item.useAmmo = 97;
|
||||
}
|
||||
|
||||
public override Vector2? HoldoutOffset()
|
||||
{
|
||||
return new Vector2(-10, 0);
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
{
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Items;
|
||||
|
||||
namespace CalamityMod.Items.Weapons.SlimeGod
|
||||
{
|
||||
@@ -31,6 +36,11 @@ namespace CalamityMod.Items.Weapons.SlimeGod
|
||||
item.shootSpeed = 5f;
|
||||
item.useAmmo = 97;
|
||||
}
|
||||
|
||||
public override Vector2? HoldoutOffset()
|
||||
{
|
||||
return new Vector2(-5, 0);
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, ref Microsoft.Xna.Framework.Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
{
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
using CalamityMod.Items;
|
||||
namespace CalamityMod.Items.Weapons.SlimeGod
|
||||
{
|
||||
public class OverloadedBlaster : ModItem
|
||||
@@ -32,6 +36,11 @@ namespace CalamityMod.Items.Weapons.SlimeGod
|
||||
item.shoot = mod.ProjectileType("SlimeBolt");
|
||||
item.useAmmo = 23;
|
||||
}
|
||||
|
||||
public override Vector2? HoldoutOffset()
|
||||
{
|
||||
return new Vector2(-4, 0);
|
||||
}
|
||||
|
||||
public override bool ConsumeAmmo(Player player)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user