Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Terraria;
- using Terraria.ModLoader;
- using Terraria.ID;
- namespace OmegasArsenal.Enemies
- {
- public class AlphaZombie : ModNPC // ModNPC is used for Custom NPCs
- {
- public override void SetStaticDefaults()
- {
- DisplayName.SetDefault("Alpha Zombie");
- }
- public override void SetDefaults()
- {
- /* Removed as of 0.10
- //npc.name = "Tutorial Zombie";
- //npc.displayName = "Tutorial Zombie";
- */
- npc.width = 60;
- npc.height = 60;
- npc.damage = 36;
- npc.defense = 15;
- npc.lifeMax = 1200;
- npc.HitSound = SoundID.NPCHit1;
- npc.DeathSound = SoundID.NPCDeath1;
- npc.value = 100f;
- npc.knockBackResist = 0.15f;
- npc.aiStyle = 3;
- Main.npcFrameCount[npc.type] = Main.npcFrameCount[NPCID.Zombie]; //Main.npcFrameCount[3];
- aiType = NPCID.Zombie; // aiType = 3;
- animationType = NPCID.Zombie; // animationType = 3;
- }
- public override float SpawnChance(NPCSpawnInfo spawnInfo)
- {
- return TutorialWorld.biomeTiles > 20 ? 20f : 0f;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment