Skip to content

Commit

Permalink
v1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Antirhinnum committed Oct 25, 2018
1 parent 945dacb commit c7b44b5
Show file tree
Hide file tree
Showing 71 changed files with 1,472 additions and 0 deletions.
45 changes: 45 additions & 0 deletions DebuffImmunity/DebuffImmunity.cs
@@ -0,0 +1,45 @@
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;

namespace DebuffImmunity
{
public class DebuffImmunity : Mod
{
internal static DebuffImmunity instance;

public DebuffImmunity()
{
Properties = new ModProperties()
{
Autoload = true,
};
}

public override void AddRecipeGroups()
{
RecipeGroup group = new RecipeGroup(() => "Any Iron Bar", new int[]
{
ItemID.IronBar,
ItemID.LeadBar
});
RecipeGroup.RegisterGroup("DebuffImmunity:Iron", group);

group = new RecipeGroup(() => "Any Adamantite Bar", new int[]
{
ItemID.AdamantiteBar,
ItemID.TitaniumBar
});
RecipeGroup.RegisterGroup("DebuffImmunity:Steel", group);
}

public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(this);
recipe.AddIngredient(ItemID.Vertebrae, 5);
recipe.AddTile(TileID.TinkerersWorkbench);
recipe.SetResult(ItemID.Leather);
recipe.AddRecipe();
}
}
}
112 changes: 112 additions & 0 deletions DebuffImmunity/DebuffImmunity.csproj
@@ -0,0 +1,112 @@
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{7BC89B95-0FAF-483C-89E5-E5F7B73B2932}</ProjectGuid>
<OutputType>Library</OutputType>
<NoStandardLibraries>false</NoStandardLibraries>
<AssemblyName>ClassLibrary</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<RootNamespace>DebuffImmunity</RootNamespace>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.CSharp" />
<Reference Include="Microsoft.Xna.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553" />
<Reference Include="Modded Terraria">
<HintPath>..\..\..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Terraria\Modded Terraria.exe</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Data" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Xml" />
<Reference Include="System.Xml.Linq" />
</ItemGroup>
<ItemGroup>
<Content Include="build.txt" />
<Content Include="description.txt" />
<Content Include="Items\Antivenom.png" />
<Content Include="Items\BetsyShield.png" />
<Content Include="Items\DemigodBlessing.png" />
<Content Include="Items\DesertKit.png" />
<Content Include="Items\DiscordRing.png" />
<Content Include="Items\FireBlanket.png" />
<Content Include="Items\FrankTest.png" />
<Content Include="Items\GreekBlankie.png" />
<Content Include="Items\GreekBlood.png" />
<Content Include="Items\HeliosCandle.png" />
<Content Include="Items\HopefulCandle.png" />
<Content Include="Items\LeatherCandle.png" />
<Content Include="Items\LeatherWrap.png" />
<Content Include="Items\LightningRod.png" />
<Content Include="Items\LunarLeather.png" />
<Content Include="Items\LunarUmbrella.png" />
<Content Include="Items\MagicBlanket.png" />
<Content Include="Items\OnyxShard.png" />
<Content Include="Items\OtherShield.png" />
<Content Include="Items\PaperFan.png" />
<Content Include="Items\PhilSecret.png" />
<Content Include="Items\PhilTreasure.png" />
<Content Include="Items\SpiderKit.png" />
<Content Include="Items\SteelReed.png" />
<Content Include="Items\SurvivalKit.png" />
<Content Include="Items\WarmMirror.png" />
<Content Include="Items\ZeusShield.png" />
</ItemGroup>
<ItemGroup>
<Compile Include="DebuffImmunity.cs" />
<Compile Include="Items\Antivenom.cs" />
<Compile Include="Items\BetsyShield.cs" />
<Compile Include="Items\BossBags.cs" />
<Compile Include="Items\DemigodBlessing.cs" />
<Compile Include="Items\DesertKit.cs" />
<Compile Include="Items\DiscordRing.cs" />
<Compile Include="Items\FireBlanket.cs" />
<Compile Include="Items\FrankTest.cs" />
<Compile Include="Items\GreekBlankie.cs" />
<Compile Include="Items\GreekBlood.cs" />
<Compile Include="Items\HeliosCandle.cs" />
<Compile Include="Items\HopefulCandle.cs" />
<Compile Include="Items\LeatherCandle.cs" />
<Compile Include="Items\LeatherWrap.cs" />
<Compile Include="Items\LightningRod.cs" />
<Compile Include="Items\LunarLeather.cs" />
<Compile Include="Items\LunarUmbrella.cs" />
<Compile Include="Items\MagicBlanket.cs" />
<Compile Include="Items\OnyxShard.cs" />
<Compile Include="Items\OtherShield.cs" />
<Compile Include="Items\PaperFan.cs" />
<Compile Include="Items\PhilSecret.cs" />
<Compile Include="Items\PhilTreasure.cs" />
<Compile Include="Items\SpiderKit.cs" />
<Compile Include="Items\SteelReed.cs" />
<Compile Include="Items\SurvivalKit.cs" />
<Compile Include="Items\WarmMirror.cs" />
<Compile Include="Items\ZeusShield.cs" />
<Compile Include="NPCs\ModGlobalNPC.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSHARP.Targets" />
<ProjectExtensions>
<VisualStudio AllowExistingFolder="true" />
</ProjectExtensions>
</Project>
25 changes: 25 additions & 0 deletions DebuffImmunity/DebuffImmunity.sln
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27130.2020
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DebuffImmunity", "DebuffImmunity.csproj", "{7BC89B95-0FAF-483C-89E5-E5F7B73B2932}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{7BC89B95-0FAF-483C-89E5-E5F7B73B2932}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7BC89B95-0FAF-483C-89E5-E5F7B73B2932}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7BC89B95-0FAF-483C-89E5-E5F7B73B2932}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7BC89B95-0FAF-483C-89E5-E5F7B73B2932}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {0C18B4FF-5680-4D4A-AB5A-CDBA8411EBE2}
EndGlobalSection
EndGlobal
30 changes: 30 additions & 0 deletions DebuffImmunity/Items/Antivenom.cs
@@ -0,0 +1,30 @@
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;

namespace DebuffImmunity.Items
{
public class Antivenom : ModItem
{

public override void SetStaticDefaults()
{
DisplayName.SetDefault("Antivenom");
Tooltip.SetDefault("Prevents Venom");
}

public override void SetDefaults()
{
item.width = 26;
item.height = 26;
item.value = 10000;
item.rare = 4;
item.accessory = true;
}

public override void UpdateEquip(Player player)
{
player.buffImmune[BuffID.Venom] = true;
}
}
}
Binary file added DebuffImmunity/Items/Antivenom.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions DebuffImmunity/Items/BetsyShield.cs
@@ -0,0 +1,36 @@
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;

namespace DebuffImmunity.Items
{
public class BetsyShield : ModItem
{

public override void SetStaticDefaults()
{
DisplayName.SetDefault("Etherian Shield");
Tooltip.SetDefault("Prevents Etherian Debuffs");
}

public override void SetDefaults()
{
item.width = 34;
item.height = 30;
item.value = 100000;
item.rare = 8;
item.defense = 2;
item.accessory = true;
}

public override void UpdateEquip(Player player)
{
player.buffImmune[BuffID.WitheredArmor] = true;
player.buffImmune[BuffID.WitheredWeapon] = true;
player.buffImmune[BuffID.OgreSpit] = true;
player.noKnockback = true;
}


}
}
Binary file added DebuffImmunity/Items/BetsyShield.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions DebuffImmunity/Items/BossBags.cs
@@ -0,0 +1,28 @@
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;

namespace DebuffImmunity.Items
{
public class BossBags : GlobalItem
{
public override void OpenVanillaBag(string context, Player player, int arg)
{
if (context == "bossBag" && arg == ItemID.MoonLordBossBag)
{
if (Main.rand.Next(6) == 0)
{
player.QuickSpawnItem(mod.ItemType("LunarUmbrella"));
}
}

if (context == "bossBag" && arg == ItemID.BossBagBetsy)
{
if (Main.rand.Next(6) == 0)
{
player.QuickSpawnItem(mod.ItemType("BetsyShield"));
}
}
}
}
}
57 changes: 57 additions & 0 deletions DebuffImmunity/Items/DemigodBlessing.cs
@@ -0,0 +1,57 @@
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;

namespace DebuffImmunity.Items
{
public class DemigodBlessing : ModItem
{

public override void SetStaticDefaults()
{
DisplayName.SetDefault("Demigod's Blessing");
Tooltip.SetDefault("Prevents Wet, Stinky, Slimy, Lovestruck, Ichor, Cursed Inferno, On Fire!, Frostburn, Shadowflame, Feral Bite, Moon Bite, Blackout, Venom, Webbed, Mighty Wind, and Suffocation\n'May the gods bless you...'");
}

public override void SetDefaults()
{
item.width = 32;
item.height = 100;
item.value = 150000;
item.rare = 11;
item.defense = 3;
item.accessory = true;
}

public override void UpdateEquip(Player player)
{
player.buffImmune[BuffID.Wet] = true;
player.buffImmune[BuffID.Stinky] = true;
player.buffImmune[BuffID.Slimed] = true;
player.buffImmune[BuffID.Lovestruck] = true;
player.buffImmune[BuffID.Ichor] = true;
player.buffImmune[BuffID.CursedInferno] = true;
player.buffImmune[BuffID.OnFire] = true;
player.buffImmune[BuffID.Frostburn] = true;
player.buffImmune[BuffID.ShadowFlame] = true;
player.buffImmune[BuffID.Rabies] = true;
player.buffImmune[BuffID.MoonLeech] = true;
player.buffImmune[BuffID.Blackout] = true;
player.buffImmune[BuffID.Venom] = true;
player.buffImmune[BuffID.Webbed] = true;
player.buffImmune[BuffID.WindPushed] = true;
player.buffImmune[BuffID.Suffocation] = true;
}

public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(null, "PaperFan");
recipe.AddIngredient(null, "HeliosCandle");
recipe.AddIngredient(null, "SurvivalKit");
recipe.AddTile(TileID.LunarCraftingStation);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}
Binary file added DebuffImmunity/Items/DemigodBlessing.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions DebuffImmunity/Items/DesertKit.cs
@@ -0,0 +1,42 @@
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;

namespace DebuffImmunity.Items
{
public class DesertKit : ModItem
{

public override void SetStaticDefaults()
{
DisplayName.SetDefault("Desert Survival 101");
Tooltip.SetDefault("Prevents Mighty Wind and Suffocation\n'Prepared for the sands!'");
}

public override void SetDefaults()
{
item.width = 32;
item.height = 32;
item.value = 30000;
item.rare = 5;
item.accessory = true;
item.defense = 1;
}

public override void UpdateEquip(Player player)
{
player.buffImmune[BuffID.Suffocation] = true;
player.buffImmune[BuffID.WindPushed] = true;
}

public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(null, "OnyxShard");
recipe.AddIngredient(null, "SteelReed");
recipe.AddTile(TileID.TinkerersWorkbench);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}
Binary file added DebuffImmunity/Items/DesertKit.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c7b44b5

Please sign in to comment.