terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ Ghost()

void Terraria.Player.Ghost ( )
inline

Definition at line 3196 of file Player.cs.

3197 {
3199 if (toHellAndBackStatus == Player.eToHellAndBackStatus.NotStarted)
3200 {
3201 }
3202 if (toHellAndBackStatus != Player.eToHellAndBackStatus.NotStarted)
3203 {
3204 int whoAmI = this.whoAmI;
3205 if (toHellAndBackStatus == Player.eToHellAndBackStatus.NotStarted)
3206 {
3207 }
3208 int myPlayer = Main.myPlayer;
3209 if (toHellAndBackStatus == Player.eToHellAndBackStatus.NotStarted)
3210 {
3211 }
3212 if (toHellAndBackStatus == Player.eToHellAndBackStatus.NotStarted)
3213 {
3214 if (toHellAndBackStatus == Player.eToHellAndBackStatus.NotStarted)
3215 {
3216 }
3217 bool editSign = Main.editSign;
3218 if (toHellAndBackStatus == Player.eToHellAndBackStatus.NotStarted)
3219 {
3220 }
3221 bool editChest = Main.editChest;
3222 if (toHellAndBackStatus == Player.eToHellAndBackStatus.NotStarted)
3223 {
3224 }
3225 bool blockInput = Main.blockInput;
3227 bool flag = this.controlJump;
3228 this.controlJump = flag;
3229 bool flag2 = this.controlLeft;
3230 this.controlLeft = flag;
3231 bool flag3 = this.controlRight;
3232 this.controlRight = flag;
3233 bool flag4 = this.controlUp;
3234 this.controlUp = flag;
3235 bool flag5 = this.controlDown;
3236 bool flag6 = this.controlUp;
3237 bool flag7 = this.controlDown;
3238 return;
3239 }
3240 }
3241 if (this.controlUp || this.controlJump)
3242 {
3243 float y = this.velocity.Y;
3244 this.velocity.Y = y;
3245 int num = 49376;
3246 this.velocity.Y = (float)num;
3247 bool flag8 = this.controlLeft;
3248 bool flag9 = this.controlRight;
3249 if (!flag8)
3250 {
3251 float x = this.velocity.X;
3252 while (!flag9)
3253 {
3254 }
3255 while (flag8)
3256 {
3257 }
3258 return;
3259 }
3260 float x2 = this.velocity.X;
3261 if (flag9)
3262 {
3263 return;
3264 }
3265 int num2 = 49376;
3266 float x3 = this.position.X;
3267 float y2 = this.position.Y;
3268 if (num2 == 0)
3269 {
3270 }
3271 int num3 = this.ghostFrameCounter;
3272 float x4 = this.velocity.X;
3274 return;
3275 }
3276 else
3277 {
3278 bool flag10 = this.controlDown;
3279 float y3 = this.velocity.Y;
3280 if (flag10)
3281 {
3283 float num4;
3285 return;
3286 }
3287 return;
3288 }
3289 }
class f__AnonymousType0<< Count > j__TPar
Vector2 velocity
Definition Entity.cs:463
Vector2 position
Definition Entity.cs:460
static TriggersPack Triggers
int ghostFrameCounter
Definition Player.cs:20936
Player.eToHellAndBackStatus ToHellAndBackStatus
Definition Player.cs:23084

References Terraria.Main.blockInput, Terraria.Player.controlDown, Terraria.Player.controlJump, Terraria.Player.controlLeft, Terraria.Player.controlRight, Terraria.Player.controlUp, Terraria.GameInput.TriggersSet.CopyInto(), Terraria.GameInput.TriggersPack.Current, Terraria.Main.editChest, Terraria.Main.editSign, Terraria.Player.ghostFrameCounter, j__TPar, Terraria.Main.myPlayer, Terraria.Entity.position, Terraria.Player.ToHellAndBackStatus, Terraria.GameInput.PlayerInput.Triggers, Terraria.Entity.velocity, Terraria.Entity.whoAmI, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.