suggestions
This commit is contained in:
1 parent
1f9a55f3d6
commit
026d914ed5
14 files changed
+82
-39
No files matched your search
@@ -1,4 +1,5 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Placeables
|
||||
@@ -7,10 +8,11 @@ namespace CalamityMod.Buffs.Placeables
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.buffNoSave[Type] = false;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.debuff[Type] = false;
|
||||
Main.persistentBuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
BuffID.Sets.TimeLeftDoesNotDecrease[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Placeables
|
||||
@@ -7,10 +8,11 @@ namespace CalamityMod.Buffs.Placeables
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.buffNoSave[Type] = false;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.debuff[Type] = false;
|
||||
Main.persistentBuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
BuffID.Sets.TimeLeftDoesNotDecrease[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Armor.Astral
|
||||
{
|
||||
player.statLifeMax2 += 20;
|
||||
player.statManaMax2 += 80;
|
||||
player.detectCreature = true;
|
||||
player.GetDamage<GenericDamageClass>() += 0.1f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -34,16 +34,18 @@ namespace CalamityMod.Items.Armor.Astral
|
||||
player.setBonus = this.GetLocalizedValue("SetBonus");
|
||||
var modPlayer = player.Calamity();
|
||||
modPlayer.astralStarRain = true;
|
||||
modPlayer.omniscience = true;
|
||||
player.moveSpeed += 0.05f;
|
||||
player.GetDamage<GenericDamageClass>() += 0.35f;
|
||||
player.GetDamage<GenericDamageClass>() += 0.1f;
|
||||
player.maxMinions += 3;
|
||||
player.GetCritChance<GenericDamageClass>() += 25;
|
||||
player.GetCritChance<GenericDamageClass>() += 10;
|
||||
player.Calamity().wearingRogueArmor = true;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.dangerSense = true;
|
||||
player.GetDamage<GenericDamageClass>() += 0.05f;
|
||||
player.GetCritChance<GenericDamageClass>() += 15;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -20,8 +20,8 @@ namespace CalamityMod.Items.Armor.Astral
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.moveSpeed += 0.1f;
|
||||
player.findTreasure = true;
|
||||
player.moveSpeed += 0.15f;
|
||||
player.GetDamage<GenericDamageClass>() += 0.1f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -1006,6 +1006,8 @@ namespace CalamityMod.Items
|
||||
{
|
||||
player.setBonus = CalamityUtils.GetTextValue("Vanilla.Armor.SetBonus.CrystalAssassin");
|
||||
modPlayer.DashID = string.Empty;
|
||||
modPlayer.rogueStealthMax += 0.9f;
|
||||
modPlayer.wearingRogueArmor = true;
|
||||
}
|
||||
else if (set == "SquireTier2")
|
||||
{
|
||||
|
||||
@@ -2,18 +2,19 @@ AstralBreastplate: {
|
||||
DisplayName: Astral Breastplate
|
||||
Tooltip:
|
||||
'''
|
||||
10% increased damage
|
||||
+80 max mana and +20 max life
|
||||
Creature detection
|
||||
'''
|
||||
}
|
||||
|
||||
AstralHelm: {
|
||||
DisplayName: Astral Helm
|
||||
Tooltip: Danger detection
|
||||
Tooltip: 5% increased damage and 15% increased critical strike chance
|
||||
SetBonus:
|
||||
'''
|
||||
5% increased movement speed and +3 max minions
|
||||
35% increased damage and 25% increased critical strike chance
|
||||
+3 max minions
|
||||
10% increased damage and critical strike chance
|
||||
Detects nearby creatures, enemy projectiles, danger sources, and treasure
|
||||
Whenever you crit an enemy, a barrage of stars will rain down
|
||||
This effect has a 1 second cooldown before it can trigger again
|
||||
'''
|
||||
@@ -23,8 +24,8 @@ AstralLeggings: {
|
||||
DisplayName: Astral Leggings
|
||||
Tooltip:
|
||||
'''
|
||||
10% increased movement speed
|
||||
Treasure and ore detection
|
||||
10% increased damage
|
||||
15% increased movement speed
|
||||
'''
|
||||
}
|
||||
|
||||
|
||||
@@ -512,8 +512,8 @@ CorruptionEffigy: {
|
||||
DisplayName: Corruption Effigy
|
||||
Tooltip:
|
||||
'''
|
||||
When placed down, nearby players have their movement speed and crit chance increased by 10%
|
||||
Nearby players also suffer a 5% decrease to their damage reduction
|
||||
<right> when placed to gain 10% increased movement speed and critical strike chance
|
||||
However, this comes at a cost of 5% damage reduction
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -605,8 +605,8 @@ CrimsonEffigy: {
|
||||
DisplayName: Crimson Effigy
|
||||
Tooltip:
|
||||
'''
|
||||
When placed down nearby players have their damage increased by 15% and defense by 10
|
||||
Nearby players also suffer a 10% decrease to their maximum health
|
||||
<right> when placed to gain 15% damage and 10 defense
|
||||
However, this comes at a cost of 10% maximum health
|
||||
'''
|
||||
}
|
||||
|
||||
|
||||
@@ -137,6 +137,7 @@ SetBonus: {
|
||||
'''
|
||||
Allows the ability to dash
|
||||
10% increased damage and critical strike chance
|
||||
+90 maximum stealth
|
||||
'''
|
||||
SquireTier2:
|
||||
'''
|
||||
|
||||
@@ -1375,15 +1375,6 @@ namespace CalamityMod.Systems
|
||||
r.Register();
|
||||
r.DisableDecraft();
|
||||
|
||||
// Gelatin Crystal (Queen Slime summon)
|
||||
r = Recipe.Create(ItemID.QueenSlimeCrystal);
|
||||
r.AddIngredient(ItemID.CrystalShard, 10);
|
||||
r.AddIngredient(ItemID.PinkGel, 5);
|
||||
r.AddIngredient(ItemID.SoulofLight, 5);
|
||||
r.AddTile(TileID.Solidifier);
|
||||
r.Register();
|
||||
r.DisableDecraft();
|
||||
|
||||
// Temple Key
|
||||
r = Recipe.Create(ItemID.TempleKey);
|
||||
r.AddIngredient(ItemID.JungleSpores, 15);
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
using CalamityMod.Buffs.Placeables;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.Enums;
|
||||
using Terraria.GameContent.ObjectInteractions;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ObjectData;
|
||||
@@ -15,6 +18,7 @@ namespace CalamityMod.Tiles.Furniture
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileLavaDeath[Type] = true;
|
||||
TileID.Sets.HasOutlines[Type] = true;
|
||||
|
||||
TileObjectData.newTile.Width = 2;
|
||||
TileObjectData.newTile.Height = 4;
|
||||
@@ -34,13 +38,30 @@ namespace CalamityMod.Tiles.Furniture
|
||||
AddMapEntry(new Color(126, 156, 134), CalamityUtils.GetItemName<Items.Placeables.Furniture.CorruptionEffigy>());
|
||||
}
|
||||
|
||||
public override void NearbyEffects(int i, int j, bool closer)
|
||||
public override bool HasSmartInteract(int i, int j, SmartInteractScanSettings settings) => true;
|
||||
|
||||
public override bool RightClick(int i, int j)
|
||||
{
|
||||
Player p = Main.LocalPlayer;
|
||||
|
||||
// Forcibly remove Crimson Effigy's buff.
|
||||
p.ClearBuff(ModContent.BuffType<CrimsonEffigyBuff>());
|
||||
|
||||
// 108000 is the duration used by Ammo Box.
|
||||
p.AddBuff(ModContent.BuffType<CorruptionEffigyBuff>(), 108000);
|
||||
|
||||
// Play a sound.
|
||||
SoundEngine.PlaySound(SoundID.NPCHit13 with { Pitch = -0.4f, PitchVariance = 0.2f }, new Vector2(i * 16, j * 16));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
Player player = Main.LocalPlayer;
|
||||
if (player is null)
|
||||
return;
|
||||
if (!player.dead && player.active)
|
||||
player.AddBuff(ModContent.BuffType<CorruptionEffigyBuff>(), 20);
|
||||
player.noThrow = 2;
|
||||
player.cursorItemIconEnabled = true;
|
||||
player.cursorItemIconID = ModContent.ItemType<Items.Placeables.Furniture.CorruptionEffigy>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 624 B |
@@ -1,8 +1,11 @@
|
||||
using CalamityMod.Buffs.Placeables;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.Enums;
|
||||
using Terraria.GameContent.ObjectInteractions;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ObjectData;
|
||||
@@ -15,6 +18,7 @@ namespace CalamityMod.Tiles.Furniture
|
||||
{
|
||||
Main.tileFrameImportant[Type] = true;
|
||||
Main.tileLavaDeath[Type] = true;
|
||||
TileID.Sets.HasOutlines[Type] = true;
|
||||
|
||||
TileObjectData.newTile.Width = 2;
|
||||
TileObjectData.newTile.Height = 4;
|
||||
@@ -34,13 +38,30 @@ namespace CalamityMod.Tiles.Furniture
|
||||
AddMapEntry(new Color(238, 145, 105), CalamityUtils.GetItemName<Items.Placeables.Furniture.CrimsonEffigy>());
|
||||
}
|
||||
|
||||
public override void NearbyEffects(int i, int j, bool closer)
|
||||
public override bool HasSmartInteract(int i, int j, SmartInteractScanSettings settings) => true;
|
||||
|
||||
public override bool RightClick(int i, int j)
|
||||
{
|
||||
Player p = Main.LocalPlayer;
|
||||
|
||||
// Forcibly remove Corruption Effigy's buff.
|
||||
p.ClearBuff(ModContent.BuffType<CorruptionEffigyBuff>());
|
||||
|
||||
// 108000 is the duration used by Ammo Box.
|
||||
p.AddBuff(ModContent.BuffType<CrimsonEffigyBuff>(), 108000);
|
||||
|
||||
// Play a sound.
|
||||
SoundEngine.PlaySound(SoundID.NPCHit13 with { Pitch = 0.4f, PitchVariance = 0.2f }, new Vector2(i * 16, j * 16));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public override void MouseOver(int i, int j)
|
||||
{
|
||||
Player player = Main.LocalPlayer;
|
||||
if (player is null)
|
||||
return;
|
||||
if (!player.dead && player.active)
|
||||
player.AddBuff(ModContent.BuffType<CrimsonEffigyBuff>(), 20);
|
||||
player.noThrow = 2;
|
||||
player.cursorItemIconEnabled = true;
|
||||
player.cursorItemIconID = ModContent.ItemType<Items.Placeables.Furniture.CrimsonEffigy>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 705 B |
Reference in new issue
Block a user