Declared the rarity to be item specific
This commit is contained in:
1 parent
bc910b25ae
commit
2b882bb2e7
9 files changed
+9
-9
No files matched your search
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.Armor
|
||||
item.height = 18;
|
||||
item.value = Item.buyPrice(4, 0, 0, 0);
|
||||
item.defense = 50;
|
||||
item.Calamity().customRarity = CalamityRarity.Developer;
|
||||
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Armor
|
||||
item.height = 18;
|
||||
item.value = Item.buyPrice(3, 0, 0, 0);
|
||||
item.defense = 50; //15
|
||||
item.Calamity().customRarity = CalamityRarity.Developer;
|
||||
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace CalamityMod.Items.Armor
|
||||
item.height = 18;
|
||||
item.value = Item.buyPrice(5, 0, 0, 0);
|
||||
item.defense = 50; //15
|
||||
item.Calamity().customRarity = CalamityRarity.Developer;
|
||||
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
|
||||
}
|
||||
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs)
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.rare = 10;
|
||||
item.shoot = ModContent.ProjectileType<IllustriousKnife>();
|
||||
item.shootSpeed = 9f;
|
||||
item.Calamity().customRarity = CalamityRarity.Developer;
|
||||
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.rare = 10;
|
||||
item.shoot = ModContent.ProjectileType<TriactisOPHammer>();
|
||||
item.shootSpeed = 25f;
|
||||
item.Calamity().customRarity = CalamityRarity.Developer;
|
||||
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
item.shoot = ModContent.ProjectileType<ContagionBow>();
|
||||
item.shootSpeed = 20f;
|
||||
item.useAmmo = AmmoID.Arrow;
|
||||
item.Calamity().customRarity = CalamityRarity.Developer;
|
||||
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
|
||||
}
|
||||
|
||||
public override bool CanUseItem(Player player) => player.ownedProjectileCounts[item.shoot] <= 0;
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
item.shoot = ModContent.ProjectileType<SlashRound>();
|
||||
item.shootSpeed = 30f;
|
||||
item.useAmmo = AmmoID.Bullet;
|
||||
item.Calamity().customRarity = CalamityRarity.Developer;
|
||||
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
|
||||
}
|
||||
|
||||
public override Vector2? HoldoutOffset()
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
item.shoot = ModContent.ProjectileType<IllustriousKnife>();
|
||||
item.shootSpeed = 9f;
|
||||
item.Calamity().rogue = true;
|
||||
item.Calamity().customRarity = CalamityRarity.Developer;
|
||||
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
item.shoot = ModContent.ProjectileType<TriactisOPHammer>();
|
||||
item.shootSpeed = 25f;
|
||||
item.Calamity().rogue = true;
|
||||
item.Calamity().customRarity = CalamityRarity.Developer;
|
||||
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
|
||||
Reference in new issue
Block a user