From e4722c8c2f52a221a3ae8f009eb28973adc3c84d Mon Sep 17 00:00:00 2001 From: White Date: Thu, 16 Jul 2015 19:16:20 +0930 Subject: [PATCH] Vortex stealth armour now works. Fixes #964 --- TShockAPI/GetDataHandlers.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs index 7d89bf1d..161d26d8 100755 --- a/TShockAPI/GetDataHandlers.cs +++ b/TShockAPI/GetDataHandlers.cs @@ -2264,7 +2264,7 @@ namespace TShockAPI byte item = args.Data.ReadInt8(); var pos = new Vector2(args.Data.ReadSingle(), args.Data.ReadSingle()); var vel = Vector2.Zero; - if(pulley[2]) + if (pulley[2]) vel = new Vector2(args.Data.ReadSingle(), args.Data.ReadSingle()); if (OnPlayerUpdate(plr, control, item, pos, vel, pulley)) @@ -2387,9 +2387,17 @@ namespace TShockAPI args.TPlayer.controlJump = false; args.TPlayer.controlUseItem = false; args.TPlayer.pulley = pulley[0]; - if(pulley[0]) + + if (pulley[0]) args.TPlayer.pulleyDir = (byte)(pulley[1] ? 2 : 1); + + if (pulley[3]) + args.TPlayer.vortexStealthActive = true; + + args.TPlayer.gravDir = pulley[4] ? 1f : -1f; + args.TPlayer.direction = -1; + if (control[0]) { args.TPlayer.controlUp = true;