Builder sets buffs
This commit is contained in:
1 parent
bd68fb67be
commit
98bf2564cd
8 files changed
+26
-26
No files matched your search
@@ -2266,11 +2266,12 @@ namespace CalamityMod.CalPlayer
|
||||
double breathLossMult = 1D -
|
||||
(Player.gills ? 0.2 : 0D) - // 0.8
|
||||
(oceanCrest ? 0.2 : 0D) - // 0.8
|
||||
(victideSet ? 0.2 : 0D) - // 0.8
|
||||
(Player.accDivingHelm ? 0.25 : 0D) - // 0.75
|
||||
(Player.arcticDivingGear ? 0.25 : 0D) - // 0.75
|
||||
(aquaticEmblem ? 0.25 : 0D) - // 0.75
|
||||
(Player.accMerman ? 0.3 : 0D) - // 0.7
|
||||
(victideSet ? 0.2 : 0D) - // 0.85
|
||||
(reaverExplore ? 0.3 : 0D) - // 0.7
|
||||
((aquaticHeart && NPC.downedBoss3) ? 0.3 : 0D) - // 0.7
|
||||
(abyssalDivingSuit ? 0.3 : 0D); // 0.7
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ namespace CalamityMod.Items.Armor.MarniteArchitect
|
||||
Item.height = 18;
|
||||
Item.value = CalamityGlobalItem.RarityBlueBuyPrice;
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.defense = 0;
|
||||
Item.defense = 1;
|
||||
}
|
||||
|
||||
private void ActivateLift(Terraria.On_Player.orig_QuickMount orig, Player self)
|
||||
@@ -155,12 +155,13 @@ namespace CalamityMod.Items.Armor.MarniteArchitect
|
||||
Item.height = 18;
|
||||
Item.value = CalamityGlobalItem.RarityBlueBuyPrice;
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.defense = 1;
|
||||
Item.defense = 2;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.tileSpeed += 0.5f;
|
||||
player.wallSpeed += 0.5f;
|
||||
}
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> tooltips) => MarniteArchitectHeadgear.ModifySetTooltips(this, tooltips);
|
||||
|
||||
@@ -41,8 +41,9 @@ namespace CalamityMod.Items.Armor.Reaver
|
||||
modPlayer.reaverExplore = true;
|
||||
modPlayer.wearingRogueArmor = true;
|
||||
player.findTreasure = true;
|
||||
player.blockRange += 4;
|
||||
player.aggro -= 200;
|
||||
if (player.IsUnderwater())
|
||||
player.gills = true;
|
||||
|
||||
if (player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
@@ -55,6 +56,10 @@ namespace CalamityMod.Items.Armor.Reaver
|
||||
{
|
||||
Projectile.NewProjectile(source, player.Center, Vector2.Zero, ModContent.ProjectileType<ReaverOrb>(), 0, 0f, player.whoAmI);
|
||||
}
|
||||
|
||||
// These are static variables. Awesome
|
||||
Player.tileRangeX += 7;
|
||||
Player.tileRangeY += 7;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -63,8 +68,8 @@ namespace CalamityMod.Items.Armor.Reaver
|
||||
player.ignoreWater = true;
|
||||
player.lavaImmune = true;
|
||||
player.pickSpeed -= 0.2f;
|
||||
player.tileSpeed += 0.4f;
|
||||
player.wallSpeed += 0.4f;
|
||||
player.tileSpeed += 0.5f;
|
||||
player.wallSpeed += 0.5f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -1629,9 +1629,10 @@ namespace CalamityMod.Items
|
||||
if (grabRangeMultiplier > 1f)
|
||||
grabRange = (int)(grabRangeMultiplier * grabRange);
|
||||
|
||||
// Then, if wearing the appropriate Reaver armor, add 20 flat item grab range.
|
||||
// Then, if wearing the appropriate Reaver armor, add 246 flat item grab range. (2.625 + 15.375 = 18 tiles)
|
||||
// For reference, Treasure Magnet adds 150 (2.625 + 9.375 = 12 tiles)
|
||||
if (player.Calamity().reaverExplore)
|
||||
grabRange += 20;
|
||||
grabRange += 246;
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -460,17 +460,17 @@ ReaverHeadExplore: {
|
||||
DisplayName: Reaver Headgear
|
||||
Tooltip:
|
||||
'''
|
||||
20% increased mining speed and block/wall placement speed
|
||||
20% increased mining speed
|
||||
50% increased block & wall placement speed
|
||||
Grants immunity to lava and can move freely through liquids
|
||||
'''
|
||||
SetBonus:
|
||||
'''
|
||||
Highlights all treasure nearby
|
||||
Increased item grab range and block placement range
|
||||
Mining tiles restores breath while underwater
|
||||
Summons a reaver orb to light up the area around you
|
||||
Reduces enemy aggression, even in the abyss
|
||||
Provides a small amount of light in the abyss
|
||||
Summons an orb which highlights nearby treasure and provides light
|
||||
Grants underwater breathing and reduced enemy aggression
|
||||
These have a moderate effect while in the Abyss
|
||||
Increased block placement & tool range by 7
|
||||
Increases pickup range for items
|
||||
'''
|
||||
}
|
||||
|
||||
|
||||
@@ -96,7 +96,7 @@ MarniteArchitectHeadgear: {
|
||||
|
||||
MarniteArchitectToga: {
|
||||
DisplayName: Marnite Architect Toga
|
||||
Tooltip: Increases tile placement speed by 50%
|
||||
Tooltip: Increases block & wall placement speed by 50%
|
||||
}
|
||||
|
||||
SnowRuffianChestplate: {
|
||||
|
||||
@@ -85,9 +85,6 @@ namespace CalamityMod.Tiles
|
||||
}
|
||||
}
|
||||
|
||||
// This function has two purposes:
|
||||
// 1 - Shatters adjacent Lumenyl or Sea Prism crystals when a neighboring solid tile is destroyed
|
||||
// 2 - Gives the player breath back when breaking blocks with Reaver set bonus
|
||||
public override void KillTile(int i, int j, int type, ref bool fail, ref bool effectOnly, ref bool noItem)
|
||||
{
|
||||
Tile tile = Main.tile[i, j];
|
||||
@@ -309,13 +306,6 @@ namespace CalamityMod.Tiles
|
||||
if (player is null || !player.active)
|
||||
return;
|
||||
|
||||
if (player.Calamity().reaverExplore && !fail)
|
||||
{
|
||||
player.breath += 20;
|
||||
if (player.breath > player.breathMax)
|
||||
player.breath = player.breathMax;
|
||||
}
|
||||
|
||||
// Mining set gives a chance for additional ore. This can be abused for infinite ore but it has a cooldown to prevent too much abuse
|
||||
if (player.Calamity().miningSet && player.Calamity().miningSetCooldown <= 0 && !fail && TileID.Sets.Ore[tile.TileType])
|
||||
{
|
||||
|
||||
@@ -224,6 +224,8 @@ namespace CalamityMod
|
||||
light += 1;
|
||||
if (mp.jellyfishNecklace && underwater) // inherited by jellyfish diving gear and higher
|
||||
light += 1;
|
||||
if (mp.reaverExplore)
|
||||
light += 2;
|
||||
if (mp.lumenousAmulet && underwater)
|
||||
light += 2;
|
||||
if (mp.shine)
|
||||
|
||||
Reference in new issue
Block a user