This repository has been archived by the owner on Apr 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Ninja & Obsidian armor set effects etc
- Loading branch information
1 parent
5bac147
commit 35841a2
Showing
14 changed files
with
90 additions
and
6 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"ExpandedNodes": [ | ||
"" | ||
], | ||
"PreviewInSolutionExplorer": false | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
using Terraria.ID; | ||
using Terraria; | ||
using Terraria.ModLoader; | ||
|
||
namespace NekoTweakMod.Items | ||
{ | ||
public class ModifySetEffect : GlobalItem | ||
{ | ||
const string NinjaSet = "Ninja Armor"; // We need a string to change for specifying what set to change later on in the code | ||
const string ObsidianSet = "Obsidian armor"; | ||
public override string IsArmorSet(Item head, Item body, Item legs) // Allows us to specify if these items together is a armor | ||
{ | ||
if (head.type == ItemID.NinjaHood && body.type == ItemID.NinjaShirt && legs.type == ItemID.NinjaPants) // helmet,shirt,pants for the armor set | ||
return NinjaSet; // sets these items as the NinjaSet string when all of them are worn together | ||
if (head.type == ItemID.ObsidianHelm && body.type == ItemID.ObsidianShirt && legs.type == ItemID.ObsidianPants) | ||
return ObsidianSet; | ||
return ""; // fail safe, has to return something even if its none of the sets above | ||
} | ||
public override void UpdateArmorSet(Player player, string set) // allows us to change set effects | ||
{ | ||
base.UpdateArmorSet(player, set); | ||
if(set == NinjaSet) // checks if the items in isArmorSet is worn as a set | ||
{ | ||
// We also have to change or remove the tooltip after doing this in ModifyTooltip.cs | ||
// so it shows the new effect if we added one, or hide the one we removed | ||
player.moveSpeed -= 0.20f; // -20% movemept speed so we remove the +20% the ninja set effect already had,so in this case just making it give 0% | ||
player.minionDamage += 0.20f; // Gives +20% summon damage | ||
player.setBonus = "Increases minion damage by 20%"; // Changes the set bonus/effect tooltip | ||
// Only shows the set effect tooltip when all items are equiped together | ||
} | ||
{ | ||
if(set == ObsidianSet) | ||
{ | ||
player.minionDamage += 0.30f; | ||
player.setBonus = "Increases minion damage by 30%"; | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
displayName = Neko's Tweak Mod | ||
author = Neko | ||
version = 0.1.2.1 | ||
version = 0.1.2.2 | ||
homepage = https://forums.terraria.org/index.php?threads/nekos-tweak-mod.93711/ | ||
buildIgnore = obj\*, bin\*, *.csproj, .git\*, .gitattributes, .gitignore, .psd, .sln, ..vs\*, LICENSE |
Binary file not shown.