Merge pull request #1593 from CalamityTeam/more-more-fixes
more more fixes
This commit is contained in:
4 files changed
+16
-7
No files matched your search
@@ -209,9 +209,9 @@ namespace CalamityMod.CalPlayer
|
||||
chaliceBleedoutBuffer = 0D;
|
||||
chaliceDamagePointPartialProgress = 0D;
|
||||
}
|
||||
Player.HealPlayer(300);
|
||||
Player.HealPlayer(Items.Accessories.NebulousCore.HealLifeOnRevive);
|
||||
|
||||
Player.AddCooldown(Cooldowns.NebulousCore.ID, CalamityUtils.SecondsToFrames(90));
|
||||
Player.AddCooldown(Cooldowns.NebulousCore.ID, Items.Accessories.NebulousCore.ReviveCooldown);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ using CalamityMod.Rarities;
|
||||
using CalamityMod.Systems.Collections;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Accessories
|
||||
@@ -12,6 +13,13 @@ namespace CalamityMod.Items.Accessories
|
||||
public class NebulousCore : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Accessories";
|
||||
|
||||
public static float DamageBoost => 0.12f;
|
||||
public static int HealLifeOnRevive => 300;
|
||||
public static int ReviveCooldown => CalamityUtils.SecondsToFrames(90);
|
||||
public static int MaxStars => 15;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(DamageBoost.ToPercent(), HealLifeOnRevive, ReviveCooldown.FramesToSeconds());
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType<GodSlayerInferno>()];
|
||||
@@ -37,7 +45,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.nebulousCore = true;
|
||||
player.GetDamage<GenericDamageClass>() += 0.12f;
|
||||
player.GetDamage<GenericDamageClass>() += DamageBoost;
|
||||
|
||||
// Spawn nebula stars
|
||||
if (Main.rand.NextBool(15))
|
||||
@@ -51,7 +59,7 @@ namespace CalamityMod.Items.Accessories
|
||||
numProj++;
|
||||
}
|
||||
}
|
||||
if (Main.rand.Next(15) >= numProj && numProj < 15)
|
||||
if (Main.rand.Next(15) >= numProj && numProj < MaxStars)
|
||||
{
|
||||
int spawnRadius = 24;
|
||||
for (int j = 0; j < 50; j++) // Attempt to spawn the star randomly around the player
|
||||
|
||||
@@ -1216,10 +1216,10 @@ NebulousCore: {
|
||||
DisplayName: Nebulous Core
|
||||
Tooltip:
|
||||
'''
|
||||
12% increased damage
|
||||
{0}% increased damage
|
||||
Summons floating nebula stars to protect you
|
||||
Taking a fatal hit revives you to 100 HP
|
||||
This effect has a 90 second cooldown
|
||||
Taking a fatal hit revives you to {1} HP
|
||||
This effect has a {2} second cooldown
|
||||
'''
|
||||
}
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
NPC.rarity = 3;
|
||||
NPC.catchItem = (short)ModContent.ItemType<PiggyGoldItem>();
|
||||
Banner = 0;
|
||||
BannerItem = 0;
|
||||
}
|
||||
|
||||
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
|
||||
|
||||
Reference in new issue
Block a user