Merge: CIT miscellaneous work
No files matched your search
|
Before Width: | Height: | Size: 445 B After Width: | Height: | Size: 786 B |
|
Before Width: | Height: | Size: 401 B After Width: | Height: | Size: 366 B |
|
Before Width: | Height: | Size: 290 B After Width: | Height: | Size: 463 B |
@@ -30,9 +30,9 @@ namespace CalamityMod.Items.Accessories
|
||||
}
|
||||
public override void ModifyTooltips(List<TooltipLine> list)
|
||||
{
|
||||
Player player = Main.LocalPlayer;
|
||||
if (Main.LocalPlayer != null)
|
||||
list.FindAndReplace("[DAMAGE]", ((int)(Bane.debuffData.EnemyLostRegen / 2 * player.Calamity().playerBaneDebuffDamage)).ToString());
|
||||
list.FindAndReplace("[DAMAGELINE]", Main.LocalPlayer.Calamity().abaddon ? this.GetLocalization("Equipped").Format(((int)(Bane.debuffData.EnemyLostRegen / 2 * Main.LocalPlayer.Calamity().playerBaneDebuffDamage)).ToString())
|
||||
: this.GetLocalizedValue("Unequipped"));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -42,9 +42,9 @@ namespace CalamityMod.Items.Accessories
|
||||
}
|
||||
public override void ModifyTooltips(List<TooltipLine> list)
|
||||
{
|
||||
Player player = Main.LocalPlayer;
|
||||
if (Main.LocalPlayer != null)
|
||||
list.FindAndReplace("[DAMAGE]", ((int)(Bane.debuffData.EnemyLostRegen / 2 * player.Calamity().playerBaneDebuffDamage)).ToString());
|
||||
list.FindAndReplace("[DAMAGELINE]", Main.LocalPlayer.Calamity().apollyon ? this.GetLocalization("Equipped").Format(((int)(Bane.debuffData.EnemyLostRegen / 2 * Main.LocalPlayer.Calamity().playerBaneDebuffDamage)).ToString())
|
||||
: this.GetLocalizedValue("Unequipped"));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -16,8 +16,8 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
private bool BigSpear = false;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 52;
|
||||
Item.height = 52;
|
||||
Item.width = 100;
|
||||
Item.height = 100;
|
||||
Item.damage = 70;
|
||||
Item.noMelee = true;
|
||||
Item.noUseGraphic = true;
|
||||
|
||||
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 1.7 KiB |
@@ -4,8 +4,10 @@ Abaddon: {
|
||||
'''
|
||||
Critical strikes curse enemies with [cbuff:CalamityMod/Bane] that scales off of your critical strike chance
|
||||
When critically hit, enemies spread all debuffs they are afflicted with that are weaker than your [cbuff:CalamityMod/Bane] to nearby enemies
|
||||
Current [cbuff:CalamityMod/Bane] damage: [DAMAGE] DPS
|
||||
[DAMAGELINE]
|
||||
'''
|
||||
Equipped: Current [cbuff:CalamityMod/Bane] damage: {0} DPS
|
||||
Unequipped: Equip this accessory to view your current [cbuff:CalamityMod/Bane] damage
|
||||
}
|
||||
|
||||
AbyssalDivingGear: {
|
||||
@@ -159,8 +161,10 @@ Apollyon: {
|
||||
Critical strikes curse enemies with [cbuff:CalamityMod/Bane] that greatly scales off of your critical strike chance
|
||||
When critically hit, enemies spread all debuffs they are afflicted with that are weaker than your [cbuff:CalamityMod/Bane] to nearby enemies
|
||||
Critical strikes deal an additional 3% damage per debuff on the enemy
|
||||
Current [cbuff:CalamityMod/Bane] damage: [DAMAGE] DPS
|
||||
[DAMAGELINE]
|
||||
'''
|
||||
Equipped: Current [cbuff:CalamityMod/Bane] damage: {0} DPS
|
||||
Unequipped: Equip this accessory to view your current [cbuff:CalamityMod/Bane] damage
|
||||
}
|
||||
|
||||
AquaticEmblem: {
|
||||
|
||||
@@ -785,7 +785,7 @@ SHPC: {
|
||||
{0}
|
||||
Press <right> to use the machine as a vacuum, pulling in lingering souls
|
||||
Once released, a torrent of soul lasers is discharged scaling with the number of souls pulled in
|
||||
Shift-Right Click this item in your inventory to eject the currently loaded Soul
|
||||
Shift-<right> this item in your inventory to eject the currently loaded Soul
|
||||
'''
|
||||
// These are the soul effect descriptions, the number is the item ID of the soul
|
||||
NoSoul: "[c/808080:There is currently no soul type injected into the weapon]"
|
||||
|
||||
@@ -154,6 +154,7 @@ Cooldowns: {
|
||||
SuperradiantSawBoost: Superradiant Saw Boost
|
||||
TarragonCloak: Tarragon Cloak Cooldown
|
||||
TarragonImmunity: Tarragon Immunity Cooldown
|
||||
TransformerCooldown: The Transformer Cooldown
|
||||
UniverseSplitter: Universe Splitter Cooldown
|
||||
WarbanneroftheRighteousBuff: Warbanner Strength
|
||||
WardingWave: Warding Wave Cooldown
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
public static readonly SoundStyle Hitsound = new("CalamityMod/Sounds/NPCKilled/DevourerSegmentBreak2") { Volume = 0.6f, PitchVariance = 0.3f };
|
||||
public new string LocalizationCategory => "Projectiles.Rogue";
|
||||
public override string Texture => "CalamityMod/Projectiles/Rogue/LanceofDestiny";
|
||||
public override string Texture => "CalamityMod/Items/Weapons/Rogue/SpearofDestiny";
|
||||
public bool posthit = false;
|
||||
public int Time = 0;
|
||||
public int hitsDust = 7;
|
||||
|
||||
|
Before Width: | Height: | Size: 3.4 KiB |
@@ -11,7 +11,6 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
public class SpearofDestinyProjectile : ModProjectile, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Projectiles.Rogue";
|
||||
public override string Texture => "CalamityMod/Items/Weapons/Rogue/SpearofDestiny";
|
||||
public static readonly SoundStyle Hitsound = new("CalamityMod/Sounds/Item/WulfrumKnifeTileHit2") { PitchVariance = 0.3f, Volume = 0.5f };
|
||||
|
||||
public int framesInAir = 0;
|
||||
|
||||
|
After Width: | Height: | Size: 738 B |
@@ -14,7 +14,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
public static readonly SoundStyle Hitsound = new("CalamityMod/Sounds/Item/BlazingCoreParry") { Volume = 0.7f, PitchVariance = 0.3f };
|
||||
public new string LocalizationCategory => "Projectiles.Rogue";
|
||||
public override string Texture => "CalamityMod/Projectiles/Rogue/LanceofDestiny";
|
||||
public override string Texture => "CalamityMod/Items/Weapons/Rogue/SpearofDestiny";
|
||||
public bool posthit = false;
|
||||
public int Time = 0;
|
||||
public ref float Timer => ref Projectile.ai[0];
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
|
||||
if (spawnDust)
|
||||
{
|
||||
Projectile.ai[1] = -1;
|
||||
Projectile.ai[2] = -1;
|
||||
int dustAmt = 36;
|
||||
for (int d = 0; d < dustAmt; d++)
|
||||
{
|
||||
@@ -105,7 +105,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
{
|
||||
spawnDust = true;
|
||||
}
|
||||
int npcIndex = (int)Projectile.ai[1];
|
||||
int npcIndex = (int)Projectile.ai[2];
|
||||
if (Projectile.localAI[0] >= 600000f) //tryna make it stay on there "forever" without glitching
|
||||
{
|
||||
breakAway = true;
|
||||
@@ -193,7 +193,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
|
||||
//let the projectile know it is sticking and the npc it is sticking too
|
||||
Projectile.ai[0] = 3f;
|
||||
Projectile.ai[1] = npcIndex;
|
||||
Projectile.ai[2] = npcIndex;
|
||||
|
||||
//follow the NPC
|
||||
Projectile.velocity = (npc.Center - Projectile.Center) * 0.75f;
|
||||
@@ -203,12 +203,11 @@ namespace CalamityMod.Projectiles.Summon
|
||||
//Count how many projectiles are attached, delete as necessary
|
||||
Point[] array2 = new Point[10];
|
||||
int projCount = 0;
|
||||
for (int projIndex = 0; projIndex < Main.maxProjectiles; projIndex++)
|
||||
foreach (Projectile p in Main.ActiveProjectiles)
|
||||
{
|
||||
Projectile proj = Main.projectile[projIndex];
|
||||
if (projIndex != Projectile.whoAmI && proj.active && proj.owner == Main.myPlayer && proj.type == Projectile.type && proj.ai[0] == 3f && proj.ai[1] == npcIndex)
|
||||
if (p.whoAmI != Projectile.whoAmI && p.owner == Main.myPlayer && p.type == Projectile.type && p.ai[0] == 3f && p.ai[2] == npcIndex)
|
||||
{
|
||||
array2[projCount++] = new Point(projIndex, proj.timeLeft);
|
||||
array2[projCount++] = new Point(p.whoAmI, p.timeLeft);
|
||||
if (projCount >= array2.Length)
|
||||
{
|
||||
break;
|
||||
|
||||