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

◆ NPCLoot_DropCommonLifeAndMana()

void Terraria.NPC.NPCLoot_DropCommonLifeAndMana ( Player closestPlayer)
inlineprivate

Definition at line 5423 of file NPC.cs.

5424 {
5425 int num = this.type;
5426 if (closestPlayer.RollLuck(6) == 0)
5427 {
5428 int num2 = this.lifeMax;
5429 if (this.damage == 0)
5430 {
5431 }
5432 int num3;
5433 if (num3 == 0)
5434 {
5435 int statMana = closestPlayer.statMana;
5436 int statManaMax = closestPlayer.statManaMax2;
5438 float x = this.position.X;
5439 float y = this.position.Y;
5440 int width = this.width;
5441 bool wet = this.wet;
5442 if (statManaMax == 0)
5443 {
5444 }
5445 return;
5446 }
5447 int num4;
5448 if (num4 == 0)
5449 {
5450 int statLife = closestPlayer.statLife;
5451 int statLifeMax = closestPlayer.statLifeMax2;
5453 float x2 = this.position.X;
5454 float y2 = this.position.Y;
5455 int width2 = this.width;
5456 bool wet2 = this.wet;
5457 if (statLifeMax == 0)
5458 {
5459 }
5460 }
5461 }
5462 int num5 = this.type;
5463 if (closestPlayer.RollLuck(2) == 0)
5464 {
5465 int num6 = this.lifeMax;
5466 int num7 = this.damage;
5467 int statMana2 = closestPlayer.statMana;
5468 int statManaMax2 = closestPlayer.statManaMax2;
5470 float x3 = this.position.X;
5471 float y3 = this.position.Y;
5472 int width3 = this.width;
5473 bool wet3 = this.wet;
5474 if (statManaMax2 == 0)
5475 {
5476 }
5477 }
5478 }
class f__AnonymousType0<< Count > j__TPar
Vector2 position
Definition Entity.cs:460
int damage
Definition NPC.cs:11405
int lifeMax
Definition NPC.cs:11432
IEntitySource GetItemSource_Loot()
Definition NPC.cs:7712

References Terraria.NPC.damage, Terraria.NPC.GetItemSource_Loot(), j__TPar, Terraria.NPC.lifeMax, Terraria.Entity.position, Terraria.Player.RollLuck(), Terraria.Player.statMana, Terraria.NPC.type, Terraria.Entity.wet, Terraria.Entity.width, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.

Referenced by Terraria.NPC.NPCLoot_DropHeals().