3 Commits

Author SHA1 Message Date
YouHaveTrouble cc6d8d6dc2 version bump 2023-01-28 22:03:41 +01:00
YouHaveTrouble e300c3cddb Nerf katana teleport 2023-01-28 22:02:59 +01:00
YouHaveTrouble 8a9730f61f add discord link 2022-12-21 00:24:00 +01:00
4 changed files with 14 additions and 1 deletions
+5
View File
@@ -24,6 +24,11 @@ public class KatanaRedo : GlobalItem {
public override bool? UseItem(Item item, Player player) {
if (item.type != ItemID.Katana || player.altFunctionUse != 2) return null;
YhtPlayer yhtPlayer = player.GetModPlayer<YhtPlayer>();
if (yhtPlayer.katanaTeleportCooldown > 0) return null;
yhtPlayer.katanaTeleportCooldown = 300;
for (int i = 0; i < Main.maxNPCs; i++) {
NPC npc = Main.npc[i];
if (!npc.CanBeChasedBy()) continue;
+6
View File
@@ -1,3 +1,4 @@
using System;
using Terraria.ModLoader;
namespace YHTMod;
@@ -5,6 +6,11 @@ namespace YHTMod;
public class YhtPlayer : ModPlayer {
public int arcaneMissle = 0;
public int katanaTeleportCooldown = 0;
public override void PreUpdate() {
this.katanaTeleportCooldown = Math.Max(this.katanaTeleportCooldown - 1, 0);
}
public override void ResetEffects() {
+1 -1
View File
@@ -1,3 +1,3 @@
displayName = YHT Mod
author = YouHaveTrouble
version = 1.1.0
version = 1.1.1
+2
View File
@@ -4,6 +4,8 @@ Steam workshop: https://steamcommunity.com/sharedfiles/filedetails/?id=289735007
Mod wiki: https://github.com/YouHaveTrouble/YHTMod/wiki
Discussion discord: [![Discord](https://img.shields.io/discord/821565102108573706?style=flat-square&color=%237289da&label=Discord)](https://discord.gg/j8KK5dGBps)
Code: YouHaveTrouble
Sprites: YouHaveTrouble, Patrxon