1
Fork 0
mirror of https://github.com/Steffo99/royal-terraria12.git synced 2024-11-21 20:44:21 +00:00

Add the mod

This commit is contained in:
Steffo 2018-07-10 18:07:39 +02:00
parent 233a2e9788
commit 7a6119774c
11 changed files with 183 additions and 30 deletions

View file

@ -1,12 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Summer2018
{
public class Class1
{
}
}

View file

@ -0,0 +1,23 @@
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace Summer2018.Items
{
public class Fioryg : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Fioryg terrariano");
Tooltip.SetDefault("Potrebbe esserti utile in futuro...");
}
public override void SetDefaults()
{
item.width = 30;
item.height = 30;
item.maxStack = 7;
item.rare = -11;
}
}
}

BIN
Summer2018/Items/Fioryg.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

View file

@ -0,0 +1,93 @@
using System.Collections.Generic;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace Summer2018.Items
{
class NewReaverShark : GlobalItem
{
public override void SetDefaults(Item item)
{
if (item == null) return;
//Reaver Shark nerf
if (item.type == ItemID.ReaverShark)
{
item.pick = 59;
item.reuseDelay = 15;
}
//Drills buff
if (item.type == ItemID.CobaltDrill || item.type == ItemID.MythrilDrill || item.type == ItemID.AdamantiteDrill ||
item.type == ItemID.PalladiumDrill || item.type == ItemID.OrichalcumDrill || item.type == ItemID.TitaniumDrill ||
item.type == ItemID.Drax ||
item.type == ItemID.SolarFlareDrill || item.type == ItemID.VortexDrill || item.type == ItemID.NebulaDrill || item.type == ItemID.StardustDrill)
{
item.reuseDelay = item.reuseDelay * 3 / 4;
}
//Pickaxes buff
if (item.type == ItemID.CobaltPickaxe || item.type == ItemID.MythrilPickaxe || item.type == ItemID.AdamantitePickaxe ||
item.type == ItemID.PalladiumPickaxe || item.type == ItemID.OrichalcumPickaxe || item.type == ItemID.TitaniumPickaxe ||
item.type == ItemID.PickaxeAxe ||
item.type == ItemID.SolarFlarePickaxe || item.type == ItemID.VortexPickaxe || item.type == ItemID.NebulaPickaxe || item.type == ItemID.StardustPickaxe)
{
item.damage = item.damage * 4 / 3 + 10;
}
//Hammush buff
if (item.type == ItemID.Hammush)
{
item.reuseDelay -= 5;
}
//Molten Armor nerf
if (item.type == ItemID.MoltenHelmet)
{
item.defense -= 1;
}
if (item.type == ItemID.MoltenBreastplate)
{
item.defense -= 1;
}
if (item.type == ItemID.MoltenGreaves)
{
item.defense -= 1;
}
//Pearlwood Armor buff
if (item.type == ItemID.PearlwoodHelmet)
{
item.defense += 6;
}
if (item.type == ItemID.PearlwoodBreastplate)
{
item.defense += 6;
}
if(item.type == ItemID.PearlwoodGreaves)
{
item.defense += 6;
}
//Beetle Armor buff
if (item.type == ItemID.BeetleScaleMail)
{
item.defense += 6;
}
//Gold Chest value
if (item.type == ItemID.GoldChest)
{
item.value += 9000;
}
//Bone Glove buff
if (item.type == ItemID.BoneGlove)
{
item.damage += 11;
}
//King Slime devalue
if (item.type == ItemID.RoyalGel || item.type == ItemID.Solidifier || item.type == ItemID.SlimySaddle)
{
item.value = 2000;
}
//Hermes Boots devalue
if(item.type == ItemID.HermesBoots)
{
item.value = 300;
}
}
}
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

36
Summer2018/Summer2018.cs Normal file
View file

@ -0,0 +1,36 @@
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace Summer2018
{
public class Summer2018 : Mod
{
public override void AddRecipes()
{
//More Hermes Boots
ModRecipe newHermesBoots = new ModRecipe(this);
newHermesBoots.AddIngredient(ItemID.Feather, 5);
newHermesBoots.AddIngredient(ItemID.Silk, 5);
newHermesBoots.AddTile(TileID.Anvils);
newHermesBoots.SetResult(ItemID.HermesBoots);
newHermesBoots.AddRecipe();
//Altezza Coniglio
ModRecipe newFuzzyCarrot = new ModRecipe(this);
newFuzzyCarrot.AddIngredient(ItemID.Daybloom, 30);
newFuzzyCarrot.AddIngredient(ItemID.Blinkroot, 10);
newFuzzyCarrot.AddIngredient(ItemID.Moonglow, 30);
newFuzzyCarrot.AddTile(TileID.WorkBenches);
newFuzzyCarrot.SetResult(ItemID.FuzzyCarrot);
newFuzzyCarrot.AddRecipe();
//Easy Inferno Potion
ModRecipe easyInfernoPotion = new ModRecipe(this);
easyInfernoPotion.AddIngredient(ItemID.Fireblossom, 10);
easyInfernoPotion.AddIngredient(ItemID.Obsidian, 5);
easyInfernoPotion.AddTile(TileID.Bottles);
easyInfernoPotion.SetResult(ItemID.InfernoPotion);
easyInfernoPotion.AddRecipe();
}
}
}

View file

@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup> <PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>8e8e45d8-c627-442e-a5dd-4711bd46ab21</ProjectGuid> <ProjectGuid>{8E8E45D8-C627-442E-A5DD-4711BD46AB21}</ProjectGuid>
<OutputType>Library</OutputType> <OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder> <AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Summer2018</RootNamespace> <RootNamespace>Summer2018</RootNamespace>
@ -30,24 +30,31 @@
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="System"/> <Reference Include="Microsoft.Xna.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553" />
<Reference Include="System" />
<Reference Include="System.Core"/> <Reference Include="System.Core" />
<Reference Include="System.Xml.Linq"/> <Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions"/> <Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="Microsoft.CSharp"/> <Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
<Reference Include="System.Data"/> <Reference Include="tModLoader">
<HintPath>..\..\..\Steam\steamapps\common\Terraria\tModLoader.exe</HintPath>
<Reference Include="System.Net.Http"/> </Reference>
<Reference Include="System.Xml"/>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="Class1.cs" /> <Compile Include="Items\Fioryg.cs" />
<Compile Include="Items\NewReaverShark.cs" />
<Compile Include="Summer2018.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<Content Include="Items\Fioryg.png" />
<Content Include="Microsoft.Xna.Framework.dll" />
<Content Include="Microsoft.Xna.Framework.Game.dll" />
<Content Include="Microsoft.Xna.Framework.Graphics.dll" />
<Content Include="Microsoft.Xna.Framework.Xact.dll" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project> </Project>

6
build.txt Normal file
View file

@ -0,0 +1,6 @@
displayName = The Tarot Master
author = Steffo
version = 0.1.1.1
homepage = https://ryg.steffo.eu
buildIgnore = *.csproj, *.user, obj\*, bin\*, .vs\*
includePDB = true