- Changed Bloodshot Eye's music to Boss 1 Orchestra ( https://www.youtube.com/watch?time_continue=120&v=r-9nKGc85FQ )
- Added support for animated projectiles - Refactoring - Removed useless fields - Fixed swords not dealing damages - Added Hour Hand (from Evie's PR)
@ -1,7 +1,7 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace Decimation.Buffs.Buffs
|
||||
namespace Decimation.Content.Buffs.Buffs
|
||||
{
|
||||
internal class Commander : DecimationBuff
|
||||
{
|
||||
|
Before Width: | Height: | Size: 447 B After Width: | Height: | Size: 447 B |
@ -2,7 +2,7 @@
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace Decimation.Buffs.Buffs
|
||||
namespace Decimation.Content.Buffs.Buffs
|
||||
{
|
||||
internal class DemonicallyBewitched : DecimationBuff
|
||||
{
|
||||
|
Before Width: | Height: | Size: 507 B After Width: | Height: | Size: 507 B |
@ -2,7 +2,7 @@
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.DataStructures;
|
||||
|
||||
namespace Decimation.Buffs.Buffs
|
||||
namespace Decimation.Content.Buffs.Buffs
|
||||
{
|
||||
internal class FatesSmile : DecimationBuff
|
||||
{
|
||||
|
Before Width: | Height: | Size: 489 B After Width: | Height: | Size: 489 B |
@ -1,6 +1,6 @@
|
||||
using Terraria;
|
||||
|
||||
namespace Decimation.Buffs.Buffs
|
||||
namespace Decimation.Content.Buffs.Buffs
|
||||
{
|
||||
internal class MysticFlame : DecimationBuff
|
||||
{
|
||||
|
Before Width: | Height: | Size: 462 B After Width: | Height: | Size: 462 B |
@ -2,7 +2,7 @@
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.DataStructures;
|
||||
|
||||
namespace Decimation.Buffs.Buffs
|
||||
namespace Decimation.Content.Buffs.Buffs
|
||||
{
|
||||
internal class NaturesAura : DecimationBuff
|
||||
{
|
||||
|
Before Width: | Height: | Size: 489 B After Width: | Height: | Size: 489 B |
@ -1,10 +1,10 @@
|
||||
using Decimation.Projectiles;
|
||||
using Decimation.Content.Projectiles;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace Decimation.Buffs.Buffs
|
||||
namespace Decimation.Content.Buffs.Buffs
|
||||
{
|
||||
internal class ScarabEndurance : DecimationBuff
|
||||
{
|
||||
|
Before Width: | Height: | Size: 480 B After Width: | Height: | Size: 480 B |
@ -3,7 +3,7 @@ using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace Decimation.Buffs.Buffs
|
||||
namespace Decimation.Content.Buffs.Buffs
|
||||
{
|
||||
internal class SlimyFeet : DecimationBuff
|
||||
{
|
||||
|
Before Width: | Height: | Size: 435 B After Width: | Height: | Size: 435 B |
@ -2,7 +2,7 @@
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace Decimation.Buffs.Buffs
|
||||
namespace Decimation.Content.Buffs.Buffs
|
||||
{
|
||||
internal class Ubered : DecimationBuff
|
||||
{
|
||||
|
Before Width: | Height: | Size: 429 B After Width: | Height: | Size: 429 B |
@ -3,7 +3,7 @@ using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace Decimation.Buffs.Buffs
|
||||
namespace Decimation.Content.Buffs.Buffs
|
||||
{
|
||||
internal class Vampire : DecimationBuff
|
||||
{
|
||||
|
Before Width: | Height: | Size: 381 B After Width: | Height: | Size: 381 B |
@ -1,7 +1,7 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace Decimation.Buffs.Buffs
|
||||
namespace Decimation.Content.Buffs.Buffs
|
||||
{
|
||||
internal class Warlock : DecimationBuff
|
||||
{
|
||||
|
Before Width: | Height: | Size: 522 B After Width: | Height: | Size: 522 B |
@ -2,7 +2,7 @@
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace Decimation.Buffs.Buffs
|
||||
namespace Decimation.Content.Buffs.Buffs
|
||||
{
|
||||
internal class Werepire : DecimationBuff
|
||||
{
|
||||
|
Before Width: | Height: | Size: 453 B After Width: | Height: | Size: 453 B |
@ -1,7 +1,7 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace Decimation.Buffs.Debuffs
|
||||
namespace Decimation.Content.Buffs.Debuffs
|
||||
{
|
||||
internal class Amnesia : DecimationBuff
|
||||
{
|
||||
|
Before Width: | Height: | Size: 378 B After Width: | Height: | Size: 378 B |
@ -2,7 +2,7 @@
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace Decimation.Buffs.Debuffs
|
||||
namespace Decimation.Content.Buffs.Debuffs
|
||||
{
|
||||
internal class AvianFlu : DecimationBuff
|
||||
{
|
||||
|
Before Width: | Height: | Size: 392 B After Width: | Height: | Size: 392 B |
@ -2,7 +2,7 @@
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace Decimation.Buffs.Debuffs
|
||||
namespace Decimation.Content.Buffs.Debuffs
|
||||
{
|
||||
internal class Corrosion : DecimationBuff
|
||||
{
|
||||
|
Before Width: | Height: | Size: 392 B After Width: | Height: | Size: 392 B |
@ -2,7 +2,7 @@
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace Decimation.Buffs.Debuffs
|
||||
namespace Decimation.Content.Buffs.Debuffs
|
||||
{
|
||||
internal class Discombobulated : DecimationBuff
|
||||
{
|
||||
|
Before Width: | Height: | Size: 392 B After Width: | Height: | Size: 392 B |
@ -2,7 +2,7 @@
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace Decimation.Buffs.Debuffs
|
||||
namespace Decimation.Content.Buffs.Debuffs
|
||||
{
|
||||
internal class Enveloped : DecimationBuff
|
||||
{
|
||||
|
Before Width: | Height: | Size: 392 B After Width: | Height: | Size: 392 B |
@ -3,7 +3,7 @@ using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace Decimation.Buffs.Debuffs
|
||||
namespace Decimation.Content.Buffs.Debuffs
|
||||
{
|
||||
internal class Hyperthermic : DecimationBuff
|
||||
{
|
||||
|
Before Width: | Height: | Size: 392 B After Width: | Height: | Size: 392 B |
@ -2,7 +2,7 @@
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace Decimation.Buffs.Debuffs
|
||||
namespace Decimation.Content.Buffs.Debuffs
|
||||
{
|
||||
internal class InfernalGaze : DecimationBuff
|
||||
{
|
||||
|
Before Width: | Height: | Size: 424 B After Width: | Height: | Size: 424 B |
@ -2,7 +2,7 @@
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace Decimation.Buffs.Debuffs
|
||||
namespace Decimation.Content.Buffs.Debuffs
|
||||
{
|
||||
internal class PiercingGaze : DecimationBuff
|
||||
{
|
||||
|
Before Width: | Height: | Size: 396 B After Width: | Height: | Size: 396 B |
@ -2,7 +2,7 @@
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace Decimation.Buffs.Debuffs
|
||||
namespace Decimation.Content.Buffs.Debuffs
|
||||
{
|
||||
internal class Singed : DecimationBuff
|
||||
{
|
||||
|
Before Width: | Height: | Size: 606 B After Width: | Height: | Size: 606 B |
@ -2,7 +2,7 @@ using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.DataStructures;
|
||||
|
||||
namespace Decimation.Buffs.Debuffs
|
||||
namespace Decimation.Content.Buffs.Debuffs
|
||||
{
|
||||
internal class Slimed : DecimationBuff
|
||||
{
|
||||
|
Before Width: | Height: | Size: 352 B After Width: | Height: | Size: 352 B |
@ -6,7 +6,7 @@ using System.Threading.Tasks;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria;
|
||||
|
||||
namespace Decimation.Buffs
|
||||
namespace Decimation.Content.Buffs
|
||||
{
|
||||
internal abstract class DecimationBuff : ModBuff
|
||||
{
|
||||
@ -1,166 +1,166 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Decimation.NPCs.Arachnus;
|
||||
using Decimation.NPCs.AncientDuneWorm;
|
||||
using Decimation.UI;
|
||||
using System.Collections.Generic;
|
||||
using Decimation.Core.Util;
|
||||
using Terraria.UI;
|
||||
using Microsoft.Xna.Framework;
|
||||
|
||||
namespace Decimation
|
||||
{
|
||||
public class Decimation : Mod
|
||||
{
|
||||
public static Decimation Instance { set; get; }
|
||||
|
||||
public static AmuletSlotState amuletSlotState;
|
||||
private UserInterface amuletSlotInterface;
|
||||
|
||||
internal UserInterface skeletonUserInterface;
|
||||
|
||||
public Decimation()
|
||||
{
|
||||
Instance = this;
|
||||
|
||||
Properties = new ModProperties()
|
||||
{
|
||||
Autoload = true,
|
||||
AutoloadGores = true,
|
||||
AutoloadSounds = true
|
||||
};
|
||||
|
||||
References.mod = this;
|
||||
}
|
||||
|
||||
public override void Load()
|
||||
{
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
amuletSlotState = new AmuletSlotState();
|
||||
amuletSlotState.Activate();
|
||||
amuletSlotInterface = new UserInterface();
|
||||
amuletSlotInterface.SetState(amuletSlotState);
|
||||
|
||||
skeletonUserInterface = new UserInterface();
|
||||
}
|
||||
}
|
||||
|
||||
public override void UpdateUI(GameTime gameTime)
|
||||
{
|
||||
Player player = Main.LocalPlayer;
|
||||
if (player.GetModPlayer<DecimationPlayer>().necrosisStoneEquipped && player.respawnTimer != 0)
|
||||
player.respawnTimer -= 1;
|
||||
|
||||
amuletSlotInterface?.Update(gameTime);
|
||||
skeletonUserInterface?.Update(gameTime);
|
||||
}
|
||||
|
||||
public override void ModifyInterfaceLayers(List<GameInterfaceLayer> layers)
|
||||
{
|
||||
int inventoryIndex = layers.FindIndex(layer => layer.Name.Equals("Vanilla: Inventory"));
|
||||
|
||||
if (inventoryIndex != -1)
|
||||
{
|
||||
layers.Insert(inventoryIndex + 1, new LegacyGameInterfaceLayer(
|
||||
"Decimation: Amulet Slot",
|
||||
delegate
|
||||
{
|
||||
if (Main.playerInventory)
|
||||
amuletSlotInterface.Draw(Main.spriteBatch, new GameTime());
|
||||
return true;
|
||||
},
|
||||
InterfaceScaleType.UI)
|
||||
);
|
||||
|
||||
layers.Insert(inventoryIndex + 2, new LegacyGameInterfaceLayer(
|
||||
"Decimation: Skeleton UI",
|
||||
delegate
|
||||
{
|
||||
skeletonUserInterface.Draw(Main.spriteBatch, new GameTime());
|
||||
return true;
|
||||
},
|
||||
InterfaceScaleType.UI)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
public override void PostSetupContent()
|
||||
{
|
||||
Mod bossChecklist = ModLoader.GetMod("BossChecklist");
|
||||
if (bossChecklist != null)
|
||||
{
|
||||
bossChecklist.Call("AddBossWithInfo", "The Bloodshot Eye", 2.5f, (Func<bool>)(() => DecimationWorld.downedBloodshotEye), "INSERT LATER");
|
||||
bossChecklist.Call("AddBossWithInfo", "The Ancient Dune Worm", 5.7f, (Func<bool>)(() => DecimationWorld.downedDuneWorm), "INSERT LATER");
|
||||
bossChecklist.Call("AddBossWithInfo", "Arachnus", 20f, (Func<bool>)(() => DecimationWorld.downedArachnus), "INSERT LATER");
|
||||
}
|
||||
}
|
||||
|
||||
public override void AddRecipeGroups()
|
||||
{
|
||||
RecipeGroup gems = new RecipeGroup(() => Lang.misc[37] + " Gem", new int[]
|
||||
{
|
||||
ItemID.Amethyst,
|
||||
ItemID.Topaz,
|
||||
ItemID.Emerald,
|
||||
ItemID.Sapphire,
|
||||
ItemID.Ruby,
|
||||
ItemID.Diamond,
|
||||
});
|
||||
|
||||
RecipeGroup threads = new RecipeGroup(() => Lang.misc[37] + " Thread", new int[]
|
||||
{
|
||||
ItemID.BlackThread,
|
||||
ItemID.GreenThread,
|
||||
ItemID.PinkThread
|
||||
});
|
||||
|
||||
RecipeGroup.RegisterGroup("AnyGem", gems);
|
||||
RecipeGroup.RegisterGroup("AnyThread", threads);
|
||||
}
|
||||
|
||||
public override void HandlePacket(BinaryReader reader, int whoAmI)
|
||||
{
|
||||
DecimationModMessageType msgType = (DecimationModMessageType)reader.ReadByte();
|
||||
|
||||
switch (msgType)
|
||||
{
|
||||
case DecimationModMessageType.Arachnus:
|
||||
Arachnus arachnus = (Arachnus)Main.npc[reader.ReadInt32()].modNPC;
|
||||
if (arachnus != null && arachnus.npc.active)
|
||||
{
|
||||
arachnus.HandlePacket(reader);
|
||||
}
|
||||
break;
|
||||
case DecimationModMessageType.DuneWorm:
|
||||
AncientDuneWormHead duneWorm = (AncientDuneWormHead)Main.npc[reader.ReadInt32()].modNPC;
|
||||
if (duneWorm != null && duneWorm.npc.active)
|
||||
{
|
||||
// TODO multiplayer
|
||||
//duneWorm.HandlePacket(reader);
|
||||
}
|
||||
break;
|
||||
case DecimationModMessageType.SpawnBoss:
|
||||
int type = reader.ReadInt32();
|
||||
int player = reader.ReadInt32();
|
||||
Main.PlaySound(15, (int)Main.player[player].position.X, (int)Main.player[player].position.Y, 0);
|
||||
if (Main.netMode != 1)
|
||||
NPC.SpawnOnPlayer(player, type);
|
||||
break;
|
||||
default:
|
||||
ErrorLogger.Log("DecimationMod: Unknown Message type: " + msgType);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
enum DecimationModMessageType : byte
|
||||
{
|
||||
Arachnus,
|
||||
DuneWorm,
|
||||
SpawnBoss
|
||||
}
|
||||
using System;
|
||||
using System.IO;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Decimation.Content.NPCs.Arachnus;
|
||||
using Decimation.Content.NPCs.AncientDuneWorm;
|
||||
using Decimation.Content.UI;
|
||||
using System.Collections.Generic;
|
||||
using Decimation.Lib.Util;
|
||||
using Terraria.UI;
|
||||
using Microsoft.Xna.Framework;
|
||||
|
||||
namespace Decimation.Content
|
||||
{
|
||||
public class Decimation : Mod
|
||||
{
|
||||
public static Decimation Instance { set; get; }
|
||||
|
||||
public static AmuletSlotState amuletSlotState;
|
||||
private UserInterface amuletSlotInterface;
|
||||
|
||||
internal UserInterface skeletonUserInterface;
|
||||
|
||||
public Decimation()
|
||||
{
|
||||
Instance = this;
|
||||
|
||||
Properties = new ModProperties()
|
||||
{
|
||||
Autoload = true,
|
||||
AutoloadGores = true,
|
||||
AutoloadSounds = true
|
||||
};
|
||||
|
||||
References.mod = this;
|
||||
}
|
||||
|
||||
public override void Load()
|
||||
{
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
amuletSlotState = new AmuletSlotState();
|
||||
amuletSlotState.Activate();
|
||||
amuletSlotInterface = new UserInterface();
|
||||
amuletSlotInterface.SetState(amuletSlotState);
|
||||
|
||||
skeletonUserInterface = new UserInterface();
|
||||
}
|
||||
}
|
||||
|
||||
public override void UpdateUI(GameTime gameTime)
|
||||
{
|
||||
Player player = Main.LocalPlayer;
|
||||
if (player.GetModPlayer<DecimationPlayer>().necrosisStoneEquipped && player.respawnTimer != 0)
|
||||
player.respawnTimer -= 1;
|
||||
|
||||
amuletSlotInterface?.Update(gameTime);
|
||||
skeletonUserInterface?.Update(gameTime);
|
||||
}
|
||||
|
||||
public override void ModifyInterfaceLayers(List<GameInterfaceLayer> layers)
|
||||
{
|
||||
int inventoryIndex = layers.FindIndex(layer => layer.Name.Equals("Vanilla: Inventory"));
|
||||
|
||||
if (inventoryIndex != -1)
|
||||
{
|
||||
layers.Insert(inventoryIndex + 1, new LegacyGameInterfaceLayer(
|
||||
"Decimation: Amulet Slot",
|
||||
delegate
|
||||
{
|
||||
if (Main.playerInventory)
|
||||
amuletSlotInterface.Draw(Main.spriteBatch, new GameTime());
|
||||
return true;
|
||||
},
|
||||
InterfaceScaleType.UI)
|
||||
);
|
||||
|
||||
layers.Insert(inventoryIndex + 2, new LegacyGameInterfaceLayer(
|
||||
"Decimation: Skeleton UI",
|
||||
delegate
|
||||
{
|
||||
skeletonUserInterface.Draw(Main.spriteBatch, new GameTime());
|
||||
return true;
|
||||
},
|
||||
InterfaceScaleType.UI)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
public override void PostSetupContent()
|
||||
{
|
||||
Mod bossChecklist = ModLoader.GetMod("BossChecklist");
|
||||
if (bossChecklist != null)
|
||||
{
|
||||
bossChecklist.Call("AddBossWithInfo", "The Bloodshot Eye", 2.5f, (Func<bool>)(() => DecimationWorld.downedBloodshotEye), "INSERT LATER");
|
||||
bossChecklist.Call("AddBossWithInfo", "The Ancient Dune Worm", 5.7f, (Func<bool>)(() => DecimationWorld.downedDuneWorm), "INSERT LATER");
|
||||
bossChecklist.Call("AddBossWithInfo", "Arachnus", 20f, (Func<bool>)(() => DecimationWorld.downedArachnus), "INSERT LATER");
|
||||
}
|
||||
}
|
||||
|
||||
public override void AddRecipeGroups()
|
||||
{
|
||||
RecipeGroup gems = new RecipeGroup(() => Lang.misc[37] + " Gem", new int[]
|
||||
{
|
||||
ItemID.Amethyst,
|
||||
ItemID.Topaz,
|
||||
ItemID.Emerald,
|
||||
ItemID.Sapphire,
|
||||
ItemID.Ruby,
|
||||
ItemID.Diamond,
|
||||
});
|
||||
|
||||
RecipeGroup threads = new RecipeGroup(() => Lang.misc[37] + " Thread", new int[]
|
||||
{
|
||||
ItemID.BlackThread,
|
||||
ItemID.GreenThread,
|
||||
ItemID.PinkThread
|
||||
});
|
||||
|
||||
RecipeGroup.RegisterGroup("AnyGem", gems);
|
||||
RecipeGroup.RegisterGroup("AnyThread", threads);
|
||||
}
|
||||
|
||||
public override void HandlePacket(BinaryReader reader, int whoAmI)
|
||||
{
|
||||
DecimationModMessageType msgType = (DecimationModMessageType)reader.ReadByte();
|
||||
|
||||
switch (msgType)
|
||||
{
|
||||
case DecimationModMessageType.Arachnus:
|
||||
Arachnus arachnus = (Arachnus)Main.npc[reader.ReadInt32()].modNPC;
|
||||
if (arachnus != null && arachnus.npc.active)
|
||||
{
|
||||
arachnus.HandlePacket(reader);
|
||||
}
|
||||
break;
|
||||
case DecimationModMessageType.DuneWorm:
|
||||
AncientDuneWormHead duneWorm = (AncientDuneWormHead)Main.npc[reader.ReadInt32()].modNPC;
|
||||
if (duneWorm != null && duneWorm.npc.active)
|
||||
{
|
||||
// TODO multiplayer
|
||||
//duneWorm.HandlePacket(reader);
|
||||
}
|
||||
break;
|
||||
case DecimationModMessageType.SpawnBoss:
|
||||
int type = reader.ReadInt32();
|
||||
int player = reader.ReadInt32();
|
||||
Main.PlaySound(15, (int)Main.player[player].position.X, (int)Main.player[player].position.Y, 0);
|
||||
if (Main.netMode != 1)
|
||||
NPC.SpawnOnPlayer(player, type);
|
||||
break;
|
||||
default:
|
||||
ErrorLogger.Log("DecimationMod: Unknown Message type: " + msgType);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
enum DecimationModMessageType : byte
|
||||
{
|
||||
Arachnus,
|
||||
DuneWorm,
|
||||
SpawnBoss
|
||||
}
|
||||
}
|
||||
@ -1,100 +1,100 @@
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.World.Generation;
|
||||
using Terraria.GameContent.Generation;
|
||||
using Terraria.ModLoader.IO;
|
||||
using Decimation.Structures;
|
||||
using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace Decimation
|
||||
{
|
||||
public class DecimationWorld : ModWorld
|
||||
{
|
||||
public static bool downedBloodshotEye;
|
||||
public static bool downedDuneWorm;
|
||||
public static bool downedArachnus;
|
||||
public static bool downedWyvern;
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
downedBloodshotEye = false;
|
||||
downedDuneWorm = false;
|
||||
downedArachnus = false;
|
||||
downedWyvern = false;
|
||||
}
|
||||
|
||||
public override TagCompound Save()
|
||||
{
|
||||
var downed = new List<string>();
|
||||
if (downedBloodshotEye) downed.Add("downedBloodshotEye");
|
||||
if (downedDuneWorm) downed.Add("downedDuneWorm");
|
||||
if (downedArachnus) downed.Add("downedArachnus");
|
||||
if (downedWyvern) downed.Add("downedWyvern");
|
||||
return new TagCompound {
|
||||
{"downed", downed},
|
||||
};
|
||||
}
|
||||
public override void Load(TagCompound tag)
|
||||
{
|
||||
var downed = tag.GetList<string>("downed");
|
||||
downedBloodshotEye = downed.Contains("downedBloodshotEye");
|
||||
downedDuneWorm = downed.Contains("downedDuneWorm");
|
||||
downedArachnus = downed.Contains("downedArachnus");
|
||||
downedWyvern = downed.Contains("downedWyvern");
|
||||
}
|
||||
public override void NetSend(BinaryWriter writer)
|
||||
{
|
||||
BitsByte flags = new BitsByte();
|
||||
flags[0] = downedBloodshotEye; //+1 flag number for each new boss
|
||||
flags[1] = downedDuneWorm;
|
||||
flags[2] = downedArachnus;
|
||||
flags[3] = downedWyvern;
|
||||
writer.Write(flags);
|
||||
}
|
||||
public override void NetReceive(BinaryReader reader)
|
||||
{
|
||||
BitsByte flags = reader.ReadByte();
|
||||
downedBloodshotEye = flags[0];
|
||||
downedDuneWorm = flags[1];
|
||||
downedArachnus = flags[2];
|
||||
downedWyvern = flags[3];
|
||||
}
|
||||
public override void LoadLegacy(BinaryReader reader)
|
||||
{
|
||||
int loadVersion = reader.ReadInt32();
|
||||
if (loadVersion == 1)
|
||||
{
|
||||
byte flags = reader.ReadByte();
|
||||
DecimationWorld.downedBloodshotEye = ((flags & 1) != 0);
|
||||
DecimationWorld.downedDuneWorm = ((flags & 2) != 0); //double flag numbers with each new boss
|
||||
DecimationWorld.downedArachnus = ((flags & 4) != 0);
|
||||
DecimationWorld.downedWyvern = ((flags & 8) != 0);
|
||||
}
|
||||
else if (loadVersion == 2)
|
||||
{
|
||||
byte flags = reader.ReadByte();
|
||||
byte flags2 = reader.ReadByte();
|
||||
DecimationWorld.downedBloodshotEye = ((flags & 1) != 0);
|
||||
DecimationWorld.downedDuneWorm = ((flags & 2) != 0);
|
||||
DecimationWorld.downedArachnus = ((flags & 4) != 0);
|
||||
DecimationWorld.downedWyvern = ((flags & 8) != 0);
|
||||
}
|
||||
}
|
||||
|
||||
// For custom biome
|
||||
public override void ModifyWorldGenTasks(List<GenPass> tasks, ref float totalWeight)
|
||||
{
|
||||
ShrineoftheMoltenOne biome = new ShrineoftheMoltenOne();
|
||||
|
||||
int genIndex = tasks.FindIndex(genpass => genpass.Name.Equals("Micro Biomes"));
|
||||
tasks.Insert(genIndex + 1, new PassLegacy("[Decimation] The Shrine of the Molten One", delegate (GenerationProgress progress)
|
||||
{
|
||||
biome.Generate();
|
||||
}));
|
||||
}
|
||||
}
|
||||
}
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.World.Generation;
|
||||
using Terraria.GameContent.Generation;
|
||||
using Terraria.ModLoader.IO;
|
||||
using Decimation.Content.Structures;
|
||||
using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace Decimation.Content
|
||||
{
|
||||
public class DecimationWorld : ModWorld
|
||||
{
|
||||
public static bool downedBloodshotEye;
|
||||
public static bool downedDuneWorm;
|
||||
public static bool downedArachnus;
|
||||
public static bool downedWyvern;
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
downedBloodshotEye = false;
|
||||
downedDuneWorm = false;
|
||||
downedArachnus = false;
|
||||
downedWyvern = false;
|
||||
}
|
||||
|
||||
public override TagCompound Save()
|
||||
{
|
||||
var downed = new List<string>();
|
||||
if (downedBloodshotEye) downed.Add("downedBloodshotEye");
|
||||
if (downedDuneWorm) downed.Add("downedDuneWorm");
|
||||
if (downedArachnus) downed.Add("downedArachnus");
|
||||
if (downedWyvern) downed.Add("downedWyvern");
|
||||
return new TagCompound {
|
||||
{"downed", downed},
|
||||
};
|
||||
}
|
||||
public override void Load(TagCompound tag)
|
||||
{
|
||||
var downed = tag.GetList<string>("downed");
|
||||
downedBloodshotEye = downed.Contains("downedBloodshotEye");
|
||||
downedDuneWorm = downed.Contains("downedDuneWorm");
|
||||
downedArachnus = downed.Contains("downedArachnus");
|
||||
downedWyvern = downed.Contains("downedWyvern");
|
||||
}
|
||||
public override void NetSend(BinaryWriter writer)
|
||||
{
|
||||
BitsByte flags = new BitsByte();
|
||||
flags[0] = downedBloodshotEye; //+1 flag number for each new boss
|
||||
flags[1] = downedDuneWorm;
|
||||
flags[2] = downedArachnus;
|
||||
flags[3] = downedWyvern;
|
||||
writer.Write(flags);
|
||||
}
|
||||
public override void NetReceive(BinaryReader reader)
|
||||
{
|
||||
BitsByte flags = reader.ReadByte();
|
||||
downedBloodshotEye = flags[0];
|
||||
downedDuneWorm = flags[1];
|
||||
downedArachnus = flags[2];
|
||||
downedWyvern = flags[3];
|
||||
}
|
||||
public override void LoadLegacy(BinaryReader reader)
|
||||
{
|
||||
int loadVersion = reader.ReadInt32();
|
||||
if (loadVersion == 1)
|
||||
{
|
||||
byte flags = reader.ReadByte();
|
||||
DecimationWorld.downedBloodshotEye = ((flags & 1) != 0);
|
||||
DecimationWorld.downedDuneWorm = ((flags & 2) != 0); //double flag numbers with each new boss
|
||||
DecimationWorld.downedArachnus = ((flags & 4) != 0);
|
||||
DecimationWorld.downedWyvern = ((flags & 8) != 0);
|
||||
}
|
||||
else if (loadVersion == 2)
|
||||
{
|
||||
byte flags = reader.ReadByte();
|
||||
byte flags2 = reader.ReadByte();
|
||||
DecimationWorld.downedBloodshotEye = ((flags & 1) != 0);
|
||||
DecimationWorld.downedDuneWorm = ((flags & 2) != 0);
|
||||
DecimationWorld.downedArachnus = ((flags & 4) != 0);
|
||||
DecimationWorld.downedWyvern = ((flags & 8) != 0);
|
||||
}
|
||||
}
|
||||
|
||||
// For custom biome
|
||||
public override void ModifyWorldGenTasks(List<GenPass> tasks, ref float totalWeight)
|
||||
{
|
||||
ShrineoftheMoltenOne biome = new ShrineoftheMoltenOne();
|
||||
|
||||
int genIndex = tasks.FindIndex(genpass => genpass.Name.Equals("Micro Biomes"));
|
||||
tasks.Insert(genIndex + 1, new PassLegacy("[Decimation] The Shrine of the Molten One", delegate (GenerationProgress progress)
|
||||
{
|
||||
biome.Generate();
|
||||
}));
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -3,7 +3,7 @@ using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace Decimation.Dusts
|
||||
namespace Decimation.Content.Dusts
|
||||
{
|
||||
class Blood : ModDust
|
||||
{
|
||||
|
Before Width: | Height: | Size: 180 B After Width: | Height: | Size: 180 B |
@ -1,14 +1,14 @@
|
||||
using System.Collections.Generic;
|
||||
using Decimation.Buffs.Buffs;
|
||||
using Decimation.Items.Misc.Souls;
|
||||
using Decimation.Tiles;
|
||||
using Decimation.Core.Items;
|
||||
using Decimation.Core.Util;
|
||||
using Decimation.Content.Buffs.Buffs;
|
||||
using Decimation.Content.Items.Misc.Souls;
|
||||
using Decimation.Content.Tiles;
|
||||
using Decimation.Lib.Items;
|
||||
using Decimation.Lib.Util;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace Decimation.Items.Accessories
|
||||
namespace Decimation.Content.Items.Accessories
|
||||
{
|
||||
internal class AlucardPendant : DecimationAccessory
|
||||
{
|
||||
@ -20,9 +20,9 @@ namespace Decimation.Items.Accessories
|
||||
|
||||
protected override void InitAccessory()
|
||||
{
|
||||
width = 46;
|
||||
height = 62;
|
||||
rarity = Rarity.LightPurple;
|
||||
item.width = 46;
|
||||
item.height = 62;
|
||||
item.rare = Rarity.LightPurple.GetRarityValue();
|
||||
this.item.value = Item.buyPrice(0, 4);
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 513 B After Width: | Height: | Size: 513 B |
@ -1,14 +1,14 @@
|
||||
using System.Collections.Generic;
|
||||
using Decimation.Buffs.Buffs;
|
||||
using Decimation.Items.Misc.Souls;
|
||||
using Decimation.Tiles;
|
||||
using Decimation.Core.Items;
|
||||
using Decimation.Core.Util;
|
||||
using Decimation.Content.Buffs.Buffs;
|
||||
using Decimation.Content.Items.Misc.Souls;
|
||||
using Decimation.Content.Tiles;
|
||||
using Decimation.Lib.Items;
|
||||
using Decimation.Lib.Util;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace Decimation.Items.Accessories
|
||||
namespace Decimation.Content.Items.Accessories
|
||||
{
|
||||
internal class CelestialTransmogrifier : DecimationAccessory
|
||||
{
|
||||
@ -22,9 +22,9 @@ namespace Decimation.Items.Accessories
|
||||
|
||||
protected override void InitAccessory()
|
||||
{
|
||||
width = 46;
|
||||
height = 62;
|
||||
rarity = Rarity.LightPurple;
|
||||
item.width = 46;
|
||||
item.height = 62;
|
||||
item.rare = Rarity.LightPurple.GetRarityValue();
|
||||
|
||||
this.item.value = Item.buyPrice(0, 4);
|
||||
}
|
||||
|
Before Width: | Height: | Size: 666 B After Width: | Height: | Size: 666 B |
@ -1,12 +1,12 @@
|
||||
using System.Collections.Generic;
|
||||
using Decimation.Core.Items;
|
||||
using Decimation.Core.Util;
|
||||
using Decimation.Lib.Items;
|
||||
using Decimation.Lib.Util;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace Decimation.Items.Accessories
|
||||
namespace Decimation.Content.Items.Accessories
|
||||
{
|
||||
internal class CrystalSkull : DecimationAccessory
|
||||
{
|
||||
@ -15,9 +15,9 @@ namespace Decimation.Items.Accessories
|
||||
|
||||
protected override void InitAccessory()
|
||||
{
|
||||
width = 24;
|
||||
height = 24;
|
||||
rarity = Rarity.Green;
|
||||
item.width = 24;
|
||||
item.height = 24;
|
||||
item.rare = Rarity.Green.GetRarityValue();
|
||||
this.item.value = Item.buyPrice(0, 0, 0, 10);
|
||||
this.item.defense = 2;
|
||||
}
|
||||
@ -39,5 +39,7 @@ namespace Decimation.Items.Accessories
|
||||
player.AddBuff(BuffID.Thorns, 1);
|
||||
Lighting.AddLight(player.Center, new Vector3(0.9f * 0.6f, 0.9f * 0.1f, 0.9f));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 524 B After Width: | Height: | Size: 524 B |
@ -1,14 +1,14 @@
|
||||
using System.Collections.Generic;
|
||||
using Decimation.Items.Misc;
|
||||
using Decimation.Items.Misc.Souls;
|
||||
using Decimation.Tiles;
|
||||
using Decimation.Core.Items;
|
||||
using Decimation.Core.Util;
|
||||
using Decimation.Content.Items.Misc;
|
||||
using Decimation.Content.Items.Misc.Souls;
|
||||
using Decimation.Content.Tiles;
|
||||
using Decimation.Lib.Items;
|
||||
using Decimation.Lib.Util;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace Decimation.Items.Accessories
|
||||
namespace Decimation.Content.Items.Accessories
|
||||
{
|
||||
internal class DeadeyesQuiver : DecimationAccessory
|
||||
{
|
||||
@ -19,9 +19,9 @@ namespace Decimation.Items.Accessories
|
||||
|
||||
protected override void InitAccessory()
|
||||
{
|
||||
width = 30;
|
||||
height = 30;
|
||||
rarity = Rarity.Red;
|
||||
item.width = 30;
|
||||
item.height = 30;
|
||||
item.rare = Rarity.Red.GetRarityValue();
|
||||
this.item.value = Item.buyPrice(0, 15);
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 507 B After Width: | Height: | Size: 507 B |
@ -1,11 +1,11 @@
|
||||
using Decimation.Buffs.Buffs;
|
||||
using Decimation.Core.Items;
|
||||
using Decimation.Core.Util;
|
||||
using Decimation.Content.Buffs.Buffs;
|
||||
using Decimation.Lib.Items;
|
||||
using Decimation.Lib.Util;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace Decimation.Items.Accessories
|
||||
namespace Decimation.Content.Items.Accessories
|
||||
{
|
||||
internal class DraculaPendant : DecimationAccessory
|
||||
{
|
||||
@ -18,9 +18,9 @@ namespace Decimation.Items.Accessories
|
||||
|
||||
protected override void InitAccessory()
|
||||
{
|
||||
width = 46;
|
||||
height = 62;
|
||||
rarity = Rarity.LightPurple;
|
||||
item.width = 46;
|
||||
item.height = 62;
|
||||
item.rare = Rarity.LightPurple.GetRarityValue();
|
||||
this.item.value = Item.buyPrice(0, 4);
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 822 B After Width: | Height: | Size: 822 B |
@ -1,11 +1,11 @@
|
||||
using System.Collections.Generic;
|
||||
using Decimation.Core.Items;
|
||||
using Decimation.Core.Util;
|
||||
using Decimation.Lib.Items;
|
||||
using Decimation.Lib.Util;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace Decimation.Items.Accessories
|
||||
namespace Decimation.Content.Items.Accessories
|
||||
{
|
||||
internal class EnchantedFocuser : DecimationAccessory
|
||||
{
|
||||
@ -14,9 +14,9 @@ namespace Decimation.Items.Accessories
|
||||
|
||||
protected override void InitAccessory()
|
||||
{
|
||||
width = 62;
|
||||
height = 46;
|
||||
rarity = Rarity.Green;
|
||||
item.width = 62;
|
||||
item.height = 46;
|
||||
item.rare = Rarity.Green.GetRarityValue();
|
||||
this.item.value = Item.buyPrice(0, 0, 0, 10);
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 947 B After Width: | Height: | Size: 947 B |
@ -1,12 +1,12 @@
|
||||
using System.Collections.Generic;
|
||||
using Decimation.Tiles;
|
||||
using Decimation.Core.Items;
|
||||
using Decimation.Core.Util;
|
||||
using Decimation.Content.Tiles;
|
||||
using Decimation.Lib.Items;
|
||||
using Decimation.Lib.Util;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace Decimation.Items.Accessories
|
||||
namespace Decimation.Content.Items.Accessories
|
||||
{
|
||||
internal class EndlessPouchofLife : DecimationAccessory
|
||||
{
|
||||
@ -18,9 +18,9 @@ namespace Decimation.Items.Accessories
|
||||
|
||||
protected override void InitAccessory()
|
||||
{
|
||||
width = 24;
|
||||
height = 32;
|
||||
rarity = Rarity.Lime;
|
||||
item.width = 24;
|
||||
item.height = 32;
|
||||
item.rare = Rarity.Lime.GetRarityValue();
|
||||
this.item.value = Item.buyPrice(0, 50);
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 634 B After Width: | Height: | Size: 634 B |
@ -1,11 +1,11 @@
|
||||
using System.Collections.Generic;
|
||||
using Decimation.Core.Items;
|
||||
using Decimation.Core.Util;
|
||||
using Decimation.Lib.Items;
|
||||
using Decimation.Lib.Util;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace Decimation.Items.Accessories
|
||||
namespace Decimation.Content.Items.Accessories
|
||||
{
|
||||
internal class EnergyFocuser : DecimationAccessory
|
||||
{
|
||||
@ -14,9 +14,9 @@ namespace Decimation.Items.Accessories
|
||||
|
||||
protected override void InitAccessory()
|
||||
{
|
||||
width = 62;
|
||||
height = 46;
|
||||
rarity = Rarity.Green;
|
||||
item.width = 62;
|
||||
item.height = 46;
|
||||
item.rare = Rarity.Green.GetRarityValue();
|
||||
this.item.value = Item.buyPrice(0, 0, 0, 10);
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
@ -1,11 +1,11 @@
|
||||
using System.Collections.Generic;
|
||||
using Decimation.Core.Items;
|
||||
using Decimation.Core.Util;
|
||||
using Decimation.Lib.Items;
|
||||
using Decimation.Lib.Util;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace Decimation.Items.Accessories
|
||||
namespace Decimation.Content.Items.Accessories
|
||||
{
|
||||
internal class Focuser : DecimationAccessory
|
||||
{
|
||||
@ -14,9 +14,9 @@ namespace Decimation.Items.Accessories
|
||||
|
||||
protected override void InitAccessory()
|
||||
{
|
||||
width = 54;
|
||||
height = 46;
|
||||
rarity = Rarity.Green;
|
||||
item.width = 54;
|
||||
item.height = 46;
|
||||
item.rare = Rarity.Green.GetRarityValue();
|
||||
this.item.value = Item.buyPrice(0, 0, 0, 10);
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 705 B After Width: | Height: | Size: 705 B |
@ -1,10 +1,10 @@
|
||||
using System.Collections.Generic;
|
||||
using Decimation.Core.Items;
|
||||
using Decimation.Lib.Items;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace Decimation.Items.Accessories
|
||||
namespace Decimation.Content.Items.Accessories
|
||||
{
|
||||
internal class GraniteLinedTunic : DecimationAccessory
|
||||
{
|
||||
@ -12,8 +12,8 @@ namespace Decimation.Items.Accessories
|
||||
|
||||
protected override void InitAccessory()
|
||||
{
|
||||
width = 30;
|
||||
height = 20;
|
||||
item.width = 30;
|
||||
item.height = 20;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
|
Before Width: | Height: | Size: 390 B After Width: | Height: | Size: 390 B |
@ -1,10 +1,10 @@
|
||||
using System.Collections.Generic;
|
||||
using Decimation.Core.Items;
|
||||
using Decimation.Lib.Items;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace Decimation.Items.Accessories
|
||||
namespace Decimation.Content.Items.Accessories
|
||||
{
|
||||
internal class JestersQuiver : DecimationAccessory
|
||||
{
|
||||
@ -15,8 +15,8 @@ namespace Decimation.Items.Accessories
|
||||
|
||||
protected override void InitAccessory()
|
||||
{
|
||||
width = 20;
|
||||
height = 20;
|
||||
item.width = 20;
|
||||
item.height = 20;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
|
Before Width: | Height: | Size: 697 B After Width: | Height: | Size: 697 B |
@ -3,9 +3,9 @@ using System.Collections.Generic;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Decimation.Core.Items;
|
||||
using Decimation.Lib.Items;
|
||||
|
||||
namespace Decimation.Items.Accessories
|
||||
namespace Decimation.Content.Items.Accessories
|
||||
{
|
||||
internal class LightweightGlove : DecimationAccessory
|
||||
{
|
||||
@ -16,8 +16,8 @@ namespace Decimation.Items.Accessories
|
||||
|
||||
protected override void InitAccessory()
|
||||
{
|
||||
width = 22;
|
||||
height = 28;
|
||||
item.width = 22;
|
||||
item.height = 28;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
|
Before Width: | Height: | Size: 354 B After Width: | Height: | Size: 354 B |
@ -1,8 +1,8 @@
|
||||
using Decimation.Core.Items;
|
||||
using Decimation.Core.Util;
|
||||
using Decimation.Lib.Items;
|
||||
using Decimation.Lib.Util;
|
||||
using Terraria;
|
||||
|
||||
namespace Decimation.Items.Accessories
|
||||
namespace Decimation.Content.Items.Accessories
|
||||
{
|
||||
internal class NecrosisStone : DecimationAccessory
|
||||
{
|
||||
@ -13,9 +13,9 @@ namespace Decimation.Items.Accessories
|
||||
|
||||
protected override void InitAccessory()
|
||||
{
|
||||
width = 20;
|
||||
height = 20;
|
||||
rarity = Rarity.Rainbow;
|
||||
item.width = 20;
|
||||
item.height = 20;
|
||||
item.rare = Rarity.Rainbow.GetRarityValue();
|
||||
this.item.value = Item.buyPrice(0, 5);
|
||||
this.item.expert = true;
|
||||
}
|
||||
|
Before Width: | Height: | Size: 407 B After Width: | Height: | Size: 407 B |
@ -2,10 +2,10 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Decimation.Core.Items;
|
||||
using Decimation.Core.Util;
|
||||
using Decimation.Lib.Items;
|
||||
using Decimation.Lib.Util;
|
||||
|
||||
namespace Decimation.Items.Accessories
|
||||
namespace Decimation.Content.Items.Accessories
|
||||
{
|
||||
internal class RangersPouch : DecimationAccessory
|
||||
{
|
||||
@ -15,10 +15,10 @@ namespace Decimation.Items.Accessories
|
||||
|
||||
protected override void InitAccessory()
|
||||
{
|
||||
width = 30;
|
||||
height = 30;
|
||||
item.width = 30;
|
||||
item.height = 30;
|
||||
item.value = 10;
|
||||
rarity = Rarity.Green;
|
||||
item.rare = Rarity.Green.GetRarityValue();
|
||||
}
|
||||
|
||||
protected override List<ModRecipe> GetAdditionalRecipes()
|
||||
|
Before Width: | Height: | Size: 567 B After Width: | Height: | Size: 567 B |
@ -1,11 +1,11 @@
|
||||
using System.Collections.Generic;
|
||||
using Decimation.Core.Items;
|
||||
using Decimation.Core.Util;
|
||||
using Decimation.Lib.Items;
|
||||
using Decimation.Lib.Util;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace Decimation.Items.Accessories
|
||||
namespace Decimation.Content.Items.Accessories
|
||||
{
|
||||
internal class RangersQuiver : DecimationAccessory
|
||||
{
|
||||
@ -16,9 +16,9 @@ namespace Decimation.Items.Accessories
|
||||
|
||||
protected override void InitAccessory()
|
||||
{
|
||||
width = 32;
|
||||
height = 32;
|
||||
rarity = Rarity.Green;
|
||||
item.width = 32;
|
||||
item.height = 32;
|
||||
item.rare = Rarity.Green.GetRarityValue();
|
||||
this.item.value = Item.buyPrice(0, 0, 0, 10);
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 711 B After Width: | Height: | Size: 711 B |
@ -5,10 +5,10 @@ using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Decimation.Core.Items;
|
||||
using Decimation.Core.Util;
|
||||
using Decimation.Lib.Items;
|
||||
using Decimation.Lib.Util;
|
||||
|
||||
namespace Decimation.Items.Accessories
|
||||
namespace Decimation.Content.Items.Accessories
|
||||
{
|
||||
internal class RedHotShackle : DecimationAccessory
|
||||
{
|
||||
@ -17,9 +17,9 @@ namespace Decimation.Items.Accessories
|
||||
|
||||
protected override void InitAccessory()
|
||||
{
|
||||
width = 24;
|
||||
height = 24;
|
||||
rarity = Rarity.Green;
|
||||
item.width = 24;
|
||||
item.height = 24;
|
||||
item.rare = Rarity.Green.GetRarityValue();
|
||||
item.value = Item.buyPrice(0, 0, 2);
|
||||
item.defense = 1;
|
||||
}
|
||||
|
Before Width: | Height: | Size: 315 B After Width: | Height: | Size: 315 B |
@ -1,8 +1,8 @@
|
||||
using Decimation.Core.Items;
|
||||
using Decimation.Core.Util;
|
||||
using Decimation.Lib.Items;
|
||||
using Decimation.Lib.Util;
|
||||
using Terraria;
|
||||
|
||||
namespace Decimation.Items.Accessories
|
||||
namespace Decimation.Content.Items.Accessories
|
||||
{
|
||||
internal class ShinySentinel : DecimationAccessory
|
||||
{
|
||||
@ -11,9 +11,9 @@ namespace Decimation.Items.Accessories
|
||||
|
||||
protected override void InitAccessory()
|
||||
{
|
||||
width = 30;
|
||||
height = 28;
|
||||
rarity = Rarity.Rainbow;
|
||||
item.width = 30;
|
||||
item.height = 28;
|
||||
item.rare = Rarity.Rainbow.GetRarityValue();
|
||||
this.item.value = Item.buyPrice(0, 45);
|
||||
this.item.expert = true;
|
||||
}
|
||||
|
Before Width: | Height: | Size: 447 B After Width: | Height: | Size: 447 B |
@ -1,11 +1,11 @@
|
||||
using System.Collections.Generic;
|
||||
using Decimation.Core.Items;
|
||||
using Decimation.Core.Util;
|
||||
using Decimation.Lib.Items;
|
||||
using Decimation.Lib.Util;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace Decimation.Items.Accessories
|
||||
namespace Decimation.Content.Items.Accessories
|
||||
{
|
||||
internal class SlimeBracelet : DecimationAccessory
|
||||
{
|
||||
@ -14,9 +14,9 @@ namespace Decimation.Items.Accessories
|
||||
|
||||
protected override void InitAccessory()
|
||||
{
|
||||
width = 24;
|
||||
height = 24;
|
||||
rarity = Rarity.Green;
|
||||
item.width = 24;
|
||||
item.height = 24;
|
||||
item.rare = Rarity.Green.GetRarityValue();
|
||||
|
||||
this.item.value = Item.buyPrice(0, 0, 0, 10);
|
||||
}
|
||||
|
Before Width: | Height: | Size: 345 B After Width: | Height: | Size: 345 B |
@ -1,13 +1,13 @@
|
||||
using System.Collections.Generic;
|
||||
using Decimation.Items.Ores;
|
||||
using Decimation.Tiles;
|
||||
using Decimation.Core.Items;
|
||||
using Decimation.Core.Util;
|
||||
using Decimation.Content.Items.Ores;
|
||||
using Decimation.Content.Tiles;
|
||||
using Decimation.Lib.Items;
|
||||
using Decimation.Lib.Util;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace Decimation.Items.Accessories
|
||||
namespace Decimation.Content.Items.Accessories
|
||||
{
|
||||
internal class TideTurner : DecimationAccessory
|
||||
{
|
||||
@ -20,9 +20,9 @@ namespace Decimation.Items.Accessories
|
||||
|
||||
protected override void InitAccessory()
|
||||
{
|
||||
width = 46;
|
||||
height = 36;
|
||||
rarity = Rarity.Rainbow;
|
||||
item.width = 46;
|
||||
item.height = 36;
|
||||
item.rare = Rarity.Rainbow.GetRarityValue();
|
||||
item.value = Item.buyPrice(0, 3);
|
||||
item.defense = 3;
|
||||
item.shieldSlot = 5;
|
||||
|
Before Width: | Height: | Size: 540 B After Width: | Height: | Size: 540 B |
@ -1,16 +1,16 @@
|
||||
using System.Collections.Generic;
|
||||
using Decimation.Items.Misc.CondensedSouls;
|
||||
using Decimation.Items.Ores;
|
||||
using Decimation.Projectiles;
|
||||
using Decimation.Tiles;
|
||||
using Decimation.Core.Items;
|
||||
using Decimation.Core.Util;
|
||||
using Decimation.Content.Items.Misc.CondensedSouls;
|
||||
using Decimation.Content.Items.Ores;
|
||||
using Decimation.Content.Projectiles;
|
||||
using Decimation.Content.Tiles;
|
||||
using Decimation.Lib.Items;
|
||||
using Decimation.Lib.Util;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace Decimation.Items.Accessories.Wings
|
||||
namespace Decimation.Content.Items.Accessories.Wings
|
||||
{
|
||||
[AutoloadEquip(EquipType.Wings)]
|
||||
internal class ScarabWings : DecimationAccessory
|
||||
@ -20,9 +20,9 @@ namespace Decimation.Items.Accessories.Wings
|
||||
|
||||
protected override void InitAccessory()
|
||||
{
|
||||
width = 26;
|
||||
height = 26;
|
||||
rarity = Rarity.Red;
|
||||
item.width = 26;
|
||||
item.height = 26;
|
||||
item.rare = Rarity.Red.GetRarityValue();
|
||||
|
||||
this.item.value = Item.buyPrice(0, 5);
|
||||
}
|
||||
|
Before Width: | Height: | Size: 363 B After Width: | Height: | Size: 363 B |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
@ -1,14 +1,14 @@
|
||||
using System.Collections.Generic;
|
||||
using Decimation.Buffs.Debuffs;
|
||||
using Decimation.Items.Misc;
|
||||
using Decimation.Tiles;
|
||||
using Decimation.Core.Items;
|
||||
using Decimation.Core.Util;
|
||||
using Decimation.Content.Buffs.Debuffs;
|
||||
using Decimation.Content.Items.Misc;
|
||||
using Decimation.Content.Tiles;
|
||||
using Decimation.Lib.Items;
|
||||
using Decimation.Lib.Util;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace Decimation.Items.Ammo
|
||||
namespace Decimation.Content.Items.Ammo
|
||||
{
|
||||
internal class MoltenStyngerBolt : DecimationAmmo
|
||||
{
|
||||
@ -16,16 +16,16 @@ namespace Decimation.Items.Ammo
|
||||
protected override string ItemTooltip => "Explodes into molten shrapnel.";
|
||||
protected override string Projectile => "MoltenStyngerBolt";
|
||||
protected override int Ammo => AmmoID.StyngerBolt;
|
||||
protected override int Damages => 25;
|
||||
|
||||
protected override void InitAmmo()
|
||||
{
|
||||
width = 8;
|
||||
height = 8;
|
||||
damages = 25;
|
||||
projKnockBack = 1;
|
||||
rarity = Rarity.Orange;
|
||||
value = Item.buyPrice(0, 0, 10);
|
||||
consumable = true;
|
||||
item.width = 8;
|
||||
item.height = 8;
|
||||
item.knockBack = 1;
|
||||
item.rare = Rarity.Orange.GetRarityValue();
|
||||
item.value = Item.buyPrice(0, 0, 10);
|
||||
item.consumable = true;
|
||||
|
||||
this.item.shootSpeed = 2f;
|
||||
}
|
||||
|
Before Width: | Height: | Size: 319 B After Width: | Height: | Size: 319 B |
@ -1,9 +1,9 @@
|
||||
using Decimation.Core.Items;
|
||||
using Decimation.Lib.Items;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace Decimation.Items.Ammo
|
||||
namespace Decimation.Content.Items.Ammo
|
||||
{
|
||||
internal class Pebble : DecimationAmmo
|
||||
{
|
||||
@ -11,16 +11,16 @@ namespace Decimation.Items.Ammo
|
||||
protected override string ItemTooltip => "For use with slings and slingshots";
|
||||
protected override string Projectile => "Pebble";
|
||||
protected override int Ammo => ModContent.ItemType<Pebble>();
|
||||
protected override int Damages => 11;
|
||||
|
||||
protected override void InitAmmo()
|
||||
{
|
||||
damages = 11;
|
||||
width = 16;
|
||||
height = 16;
|
||||
this.item.maxStack = 999;
|
||||
this.item.consumable = true;
|
||||
projKnockBack = 1f;
|
||||
this.item.value = Item.sellPrice(0, 0, 1);
|
||||
item.width = 16;
|
||||
item.height = 16;
|
||||
item.maxStack = 999;
|
||||
item.consumable = true;
|
||||
item.knockBack = 1f;
|
||||
item.value = Item.sellPrice(0, 0, 1);
|
||||
}
|
||||
|
||||
protected override ModRecipe GetRecipe()
|
||||
|
Before Width: | Height: | Size: 189 B After Width: | Height: | Size: 189 B |
@ -1,11 +1,11 @@
|
||||
using System.Collections.Generic;
|
||||
using Decimation.Items.Misc;
|
||||
using Decimation.Core.Items;
|
||||
using Decimation.Content.Items.Misc;
|
||||
using Decimation.Lib.Items;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace Decimation.Items.Ammo
|
||||
namespace Decimation.Content.Items.Ammo
|
||||
{
|
||||
internal class SiphonArrow : DecimationAmmo
|
||||
{
|
||||
@ -13,14 +13,14 @@ namespace Decimation.Items.Ammo
|
||||
protected override string ItemTooltip => "Aspires other's life";
|
||||
protected override string Projectile => "SiphonArrow";
|
||||
protected override int Ammo => AmmoID.Arrow;
|
||||
protected override int Damages => 11;
|
||||
|
||||
protected override void InitAmmo()
|
||||
{
|
||||
damages = 11;
|
||||
projKnockBack = 2;
|
||||
width = 14;
|
||||
height = 32;
|
||||
value = Item.buyPrice(0, 0, 0, 55);
|
||||
item.knockBack = 2;
|
||||
item.width = 14;
|
||||
item.height = 32;
|
||||
item.value = Item.buyPrice(0, 0, 0, 55);
|
||||
|
||||
this.item.shootSpeed = 2.5f;
|
||||
}
|
||||
|
Before Width: | Height: | Size: 375 B After Width: | Height: | Size: 375 B |
@ -1,14 +1,14 @@
|
||||
using System.Collections.Generic;
|
||||
using Decimation.Buffs.Debuffs;
|
||||
using Decimation.Items.Ores;
|
||||
using Decimation.Tiles;
|
||||
using Decimation.Core.Items;
|
||||
using Decimation.Core.Util;
|
||||
using Decimation.Content.Buffs.Debuffs;
|
||||
using Decimation.Content.Items.Ores;
|
||||
using Decimation.Content.Tiles;
|
||||
using Decimation.Lib.Items;
|
||||
using Decimation.Lib.Util;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace Decimation.Items.Ammo
|
||||
namespace Decimation.Content.Items.Ammo
|
||||
{
|
||||
internal class TitanicStyngerBolt : DecimationAmmo
|
||||
{
|
||||
@ -16,16 +16,16 @@ namespace Decimation.Items.Ammo
|
||||
protected override string ItemTooltip => "Explodes into deadly shrapnel.";
|
||||
protected override string Projectile => "TitanicStyngerBolt";
|
||||
protected override int Ammo => AmmoID.StyngerBolt;
|
||||
protected override int Damages => 35;
|
||||
|
||||
protected override void InitAmmo()
|
||||
{
|
||||
damages = 35;
|
||||
projKnockBack = 2;
|
||||
rarity = Rarity.Orange;
|
||||
width = 8;
|
||||
height = 8;
|
||||
value = Item.buyPrice(0, 0, 10);
|
||||
consumable = true;
|
||||
item.knockBack = 2;
|
||||
item.rare = Rarity.Orange.GetRarityValue();
|
||||
item.width = 8;
|
||||
item.height = 8;
|
||||
item.value = Item.buyPrice(0, 0, 10);
|
||||
item.consumable = true;
|
||||
|
||||
this.item.shootSpeed = 2f;
|
||||
}
|
||||
|
Before Width: | Height: | Size: 318 B After Width: | Height: | Size: 318 B |
@ -1,10 +1,10 @@
|
||||
using System.Collections.Generic;
|
||||
using Decimation.Core.Amulets;
|
||||
using Decimation.Lib.Amulets;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace Decimation.Items.Amulets
|
||||
namespace Decimation.Content.Items.Amulets
|
||||
{
|
||||
internal class BuildersAmulet : Amulet
|
||||
{
|
||||
@ -13,7 +13,7 @@ namespace Decimation.Items.Amulets
|
||||
|
||||
protected override void InitAmulet()
|
||||
{
|
||||
height = 34;
|
||||
item.height = 34;
|
||||
}
|
||||
|
||||
protected override void UpdateAmulet(Player player)
|
||||
|
Before Width: | Height: | Size: 405 B After Width: | Height: | Size: 405 B |
@ -1,10 +1,10 @@
|
||||
using System.Collections.Generic;
|
||||
using Decimation.Core.Amulets;
|
||||
using Decimation.Lib.Amulets;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace Decimation.Items.Amulets
|
||||
namespace Decimation.Content.Items.Amulets
|
||||
{
|
||||
internal class CreatorAmulet : Amulet
|
||||
{
|
||||
@ -13,7 +13,7 @@ namespace Decimation.Items.Amulets
|
||||
|
||||
protected override void InitAmulet()
|
||||
{
|
||||
height = 32;
|
||||
item.height = 32;
|
||||
}
|
||||
|
||||
protected override void UpdateAmulet(Player player)
|
||||