TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ CreateOgre()

void Terraria.Cinematics.DD2Film.CreateOgre ( FrameEventData evt)
inlineprivate

Definition at line 327 of file DD2Film.cs.

328 {
329 //IL_000c: Unknown result type (might be due to invalid IL or missing references)
330 //IL_001d: Unknown result type (might be due to invalid IL or missing references)
331 int num = NPC.NewNPC(new EntitySource_Film(), (int)_portal.Center.X, (int)_portal.Bottom.Y, 576);
332 _ogre = Main.npc[num];
333 _ogre.knockBackResist = 0f;
334 _ogre.immortal = true;
335 _ogre.dontTakeDamage = true;
336 _ogre.takenDamageMultiplier = 0f;
337 _ogre.immune[255] = 100000;
338 }
Vector2 Center
Definition Entity.cs:70
Vector2 Bottom
Definition Entity.cs:170
int[] immune
This determines if an NPC can be hit by a item or projectile owned by a particular player (it is an a...
Definition NPC.cs:981

References Terraria.Cinematics.DD2Film._ogre, Terraria.Cinematics.DD2Film._portal, Terraria.Entity.Bottom, Terraria.Entity.Center, Terraria.NPC.immune, Terraria.NPC.NewNPC(), and Terraria.Main.npc.

Referenced by Terraria.Cinematics.DD2Film.DD2Film().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: