Beispiel #1
0
 public override void SetDefaults()
 {
     npc.width    = 152;
     npc.height   = 114;
     npc.value    = BaseUtility.CalcValue(0, 10, 0, 0);
     npc.npcSlots = 1000;
     npc.aiStyle  = -1;
     npc.lifeMax  = 40000;
     npc.defense  = 20;
     npc.damage   = 90;
     if (NPC.downedMoonlord)
     {
         npc.damage  = 100;
         npc.defense = 45;
         npc.lifeMax = 80000;
     }
     npc.knockBackResist = 0f;
     npc.noGravity       = true;
     npc.HitSound        = SoundID.NPCHit1;
     npc.DeathSound      = SoundID.NPCDeath1;
     npc.boss            = true;
     music             = ModLoader.GetMod("AAMod").GetSoundSlot(SoundType.Music, "Sounds/Music/Athena");
     npc.alpha         = 255;
     npc.noTileCollide = true;
     bossBag           = ModLoader.GetMod("AAMod").ItemType("AthenaBag");
 }
Beispiel #2
0
 public override void SetDefaults()
 {
     item.width    = 15;
     item.height   = 15;
     item.maxStack = 99;
     item.rare     = 8;
     item.dye      = (byte)GameShaders.Armor.GetShaderIdFromItemId(item.type);
     item.value    = BaseUtility.CalcValue(0, 10, 0, 0);
 }
Beispiel #3
0
        public override void SetDefaults()
        {
            item.width = 30;
            item.height = 38;
            item.rare = 2;
            item.value = BaseUtility.CalcValue(0, 2, 0, 0);

            item.useStyle = 5;
            item.useAnimation = 50;
            item.useTime = 50;
            //item.UseSound = mod.SoundItem("LiquidRadarUse");			
        }
Beispiel #4
0
 public override void SetDefaults()
 {
     npc.width           = 72;
     npc.height          = 74;
     npc.value           = BaseUtility.CalcValue(0, 1, 0, 0);
     npc.npcSlots        = 1;
     npc.aiStyle         = -1;
     npc.lifeMax         = 1200;
     npc.defense         = 40;
     npc.damage          = 60;
     npc.HitSound        = SoundID.NPCHit1;
     npc.DeathSound      = SoundID.NPCDeath1;
     npc.knockBackResist = 0.4f;
 }
Beispiel #5
0
        public override void SetDefaults()
        {
            item.width    = 20;
            item.height   = 20;
            item.maxStack = 30;
            item.rare     = 7;
            item.expert   = true;
            item.value    = BaseUtility.CalcValue(0, 15, 0, 0);

            item.useStyle     = 1;
            item.useAnimation = 45;
            item.useTime      = 45;
            item.consumable   = true;
        }
Beispiel #6
0
 public override void SetDefaults()
 {
     npc.width           = 42;
     npc.height          = 38;
     npc.value           = BaseUtility.CalcValue(0, 0, 39, 50);
     npc.npcSlots        = 1;
     npc.aiStyle         = -1;
     npc.lifeMax         = 180;
     npc.defense         = 20;
     npc.damage          = 30;
     npc.HitSound        = SoundID.NPCHit1;
     npc.DeathSound      = SoundID.NPCDeath1;
     npc.knockBackResist = 0.7f;
 }
Beispiel #7
0
 public override void SetDefaults()
 {
     npc.width           = 35;
     npc.height          = 35;
     npc.value           = BaseUtility.CalcValue(0, 0, 5, 50);
     npc.npcSlots        = 1;
     npc.aiStyle         = -1;
     npc.lifeMax         = 250;
     npc.defense         = 30;
     npc.damage          = 65;
     npc.HitSound        = new LegacySoundStyle(3, 4, Terraria.Audio.SoundType.Sound);
     npc.DeathSound      = new LegacySoundStyle(4, 14, Terraria.Audio.SoundType.Sound);
     npc.knockBackResist = 0.5f;
     npc.noGravity       = true;
 }
Beispiel #8
0
 public override void SetDefaults()
 {
     npc.width           = 14;
     npc.height          = 14;
     npc.value           = BaseUtility.CalcValue(0, 0, 0, 0);
     npc.npcSlots        = 1;
     npc.aiStyle         = -1;
     npc.lifeMax         = 1;
     npc.defense         = 0;
     npc.damage          = 15;
     npc.HitSound        = SoundID.NPCHit1;
     npc.DeathSound      = null;
     npc.knockBackResist = 0f;
     NPCID.Sets.NeedsExpertScaling[npc.type] = false;
 }
Beispiel #9
0
 public override void SetDefaults()
 {
     npc.CloneDefaults(NPCID.ShadowFlameApparition);
     aiType        = NPCID.ShadowFlameApparition;
     npc.aiStyle   = NPCID.ShadowFlameApparition;
     animationType = NPCID.ShadowFlameApparition;
     npc.npcSlots  = 0;
     npc.value     = BaseUtility.CalcValue(0, 0, 0, 0);
     npc.aiStyle   = 86;
     npc.lifeMax   = 9000;
     npc.defense   = 30;
     npc.noGravity = true;
     npc.damage    = 80;
     npc.alpha     = 255;
 }
Beispiel #10
0
 public override void SetDefaults()
 {
     npc.width           = 35;
     npc.height          = 35;
     npc.value           = BaseUtility.CalcValue(0, 0, 5, 50);
     npc.npcSlots        = 1;
     npc.aiStyle         = -1;
     npc.lifeMax         = 80;
     npc.defense         = 30;
     npc.damage          = 15;
     npc.HitSound        = SoundID.NPCHit4;
     npc.DeathSound      = SoundID.NPCDeath14;
     npc.knockBackResist = 0.5f;
     npc.noGravity       = true;
 }
Beispiel #11
0
 public override void SetDefaults()
 {
     npc.width           = 14;
     npc.height          = 14;
     npc.value           = BaseUtility.CalcValue(0, 0, 0, 0);
     npc.npcSlots        = 0;
     npc.aiStyle         = -1;
     npc.lifeMax         = 5;
     npc.defense         = 0;
     npc.damage          = 20;
     npc.HitSound        = SoundID.NPCHit1;
     npc.DeathSound      = null;
     npc.knockBackResist = 0f;
     npc.noGravity       = true;
 }
Beispiel #12
0
 public override void SetDefaults()
 {
     npc.width           = 42;
     npc.height          = 38;
     npc.value           = BaseUtility.CalcValue(0, 0, 0, 0);
     npc.npcSlots        = 1;
     npc.aiStyle         = -1;
     npc.lifeMax         = 1200;
     npc.defense         = 40;
     npc.damage          = 60;
     npc.HitSound        = SoundID.NPCHit31;
     npc.DeathSound      = SoundID.NPCDeath35;
     npc.knockBackResist = 0.2f;
     npc.noGravity       = true;
 }
Beispiel #13
0
 public override void SetDefaults()
 {
     npc.width          = 82;
     npc.height         = 48;
     npc.HitSound       = SoundID.NPCHit52;
     npc.DeathSound     = SoundID.NPCDeath55;
     npc.npcSlots       = 0;
     npc.value          = BaseUtility.CalcValue(0, 0, 0, 0);
     npc.aiStyle        = -1;
     npc.lifeMax        = 1;
     npc.dontTakeDamage = true;
     npc.noGravity      = true;
     npc.damage         = 250;
     npc.alpha          = 255;
 }
Beispiel #14
0
 public override void SetDefaults()
 {
     npc.width           = 42;
     npc.height          = 38;
     npc.value           = BaseUtility.CalcValue(0, 0, 2, 0);
     npc.npcSlots        = 1;
     npc.aiStyle         = -1;
     npc.lifeMax         = 100;
     npc.defense         = 5;
     npc.damage          = 30;
     npc.HitSound        = SoundID.NPCHit49;
     npc.DeathSound      = SoundID.NPCDeath51;
     npc.knockBackResist = 0.7f;
     npc.alpha           = 255;
     npc.noTileCollide   = true;
 }
Beispiel #15
0
        public override void SetDefaults()
        {
            item.width    = 16;
            item.height   = 16;
            item.maxStack = 999;
            item.rare     = 8;
            item.value    = BaseUtility.CalcValue(0, 0, 0, 5);

            item.useStyle     = 1;
            item.useAnimation = 15;
            item.useTime      = 10;
            item.autoReuse    = true;
            item.useTurn      = true;
            item.createTile   = mod.TileType("DoomGrass");
            item.consumable   = true;
        }
Beispiel #16
0
 public override void SetDefaults()
 {
     npc.width           = 30;
     npc.height          = 30;
     npc.value           = BaseUtility.CalcValue(0, 0, 0, 0);
     npc.npcSlots        = 1;
     npc.aiStyle         = -1;
     npc.lifeMax         = 300;
     npc.defense         = 0;
     npc.damage          = 20;
     npc.HitSound        = SoundID.NPCHit4;
     npc.DeathSound      = SoundID.NPCDeath14;
     npc.knockBackResist = 0f;
     npc.noTileCollide   = true;
     npc.defense         = 15;
 }
Beispiel #17
0
 public override void SetDefaults()
 {
     npc.width           = 35;
     npc.height          = 35;
     npc.value           = BaseUtility.CalcValue(0, 0, 5, 50);
     npc.npcSlots        = 1;
     npc.aiStyle         = -1;
     npc.lifeMax         = 300;
     npc.defense         = 30;
     npc.damage          = 50;
     npc.HitSound        = SoundID.NPCHit1;
     npc.DeathSound      = SoundID.NPCDeath1;
     npc.knockBackResist = 0.5f;
     npc.noGravity       = true;
     banner     = npc.type;
     bannerItem = mod.ItemType("TerraWatcherBanner");
 }
Beispiel #18
0
 public override void SetDefaults()
 {
     item.width        = 45;
     item.height       = 18;
     item.maxStack     = 1;
     item.rare         = 9;
     AARarity          = 12;
     item.value        = BaseUtility.CalcValue(0, 20, 0, 0);
     item.useStyle     = 1;
     item.useAnimation = 35;
     item.useTime      = 35;
     item.UseSound     = SoundID.Item20;
     item.autoReuse    = true;
     item.noMelee      = true;
     item.summon       = true;
     item.shoot        = mod.ProjType("FireOrbiter");
     item.shootSpeed   = 5;
 }
Beispiel #19
0
 public override void SetDefaults()
 {
     npc.width                     = 30;
     npc.height                    = 30;
     npc.aiStyle                   = -1;
     npc.npcSlots                  = 1;
     npc.value                     = BaseUtility.CalcValue(0, 1, 25, 0);
     npc.lifeMax                   = 200;
     npc.defense                   = 5;
     npc.noGravity                 = true;
     npc.noTileCollide             = true;
     npc.knockBackResist           = 0f;
     npc.lavaImmune                = true;
     npc.buffImmune[BuffID.OnFire] = true;
     npc.HitSound                  = SoundID.NPCHit1;
     npc.DeathSound                = SoundID.NPCDeath1;
     npc.damage                    = 70;
 }
Beispiel #20
0
 public override void SetDefaults()
 {
     item.width        = 30;
     item.height       = 34;
     item.maxStack     = 1;
     item.rare         = 4;
     item.value        = BaseUtility.CalcValue(0, 0, 60, 0);
     item.useStyle     = 1;
     item.useAnimation = 35;
     item.useTime      = 35;
     item.UseSound     = SoundID.Item8;
     item.autoReuse    = true;
     item.noMelee      = true;
     item.summon       = true;
     item.shoot        = mod.ProjType("OrbiterMinion");
     item.shootSpeed   = 5;
     item.damage       = 50;
     item.mana         = 10;
 }
Beispiel #21
0
 public override void SetDefaults()
 {
     item.width        = 40;
     item.height       = 40;
     item.maxStack     = 1;
     item.rare         = 8;
     item.value        = BaseUtility.CalcValue(0, 10, 0, 0);
     item.useStyle     = 1;
     item.useAnimation = 25;
     item.useTime      = 25;
     item.UseSound     = SoundID.Item1;
     item.damage       = 80;
     item.knockBack    = 9;
     item.noMelee      = true;
     item.noUseGraphic = true;
     item.autoReuse    = true;
     item.shoot        = mod.ProjectileType("CarrotFarmer");
     item.shootSpeed   = 0.1f;
 }
Beispiel #22
0
 public override void SetDefaults()
 {
     npc.width           = 60;
     npc.height          = 40;
     npc.value           = BaseUtility.CalcValue(0, 0, 10, 0);
     npc.npcSlots        = 1;
     npc.aiStyle         = -1;
     npc.lifeMax         = 500;
     npc.defense         = 20;
     npc.damage          = 55;
     npc.knockBackResist = 0.3f;
     npc.noGravity       = true;
     npc.HitSound        = SoundID.NPCHit1;
     npc.DeathSound      = SoundID.NPCDeath1;
     npc.noTileCollide   = true;
     if (npc.type == ModContent.NPCType <SeraphA>())
     {
         npc.alpha = 255;
     }
 }
Beispiel #23
0
 public override void SetDefaults()
 {
     item.width        = 30;
     item.height       = 30;
     item.maxStack     = 1;
     item.rare         = 2;
     item.value        = BaseUtility.CalcValue(0, 0, 90, 50);
     item.useStyle     = 5;
     item.useAnimation = 45;
     item.useTime      = 45;
     item.UseSound     = SoundID.Item1;
     item.damage       = 15;
     item.knockBack    = 7;
     item.melee        = true;
     item.shoot        = Terraria.ModLoader.ModContent.ProjectileType <Projectiles.Pyrosphere>();
     item.shootSpeed   = 10;
     item.noUseGraphic = true;
     item.noMelee      = true;
     item.channel      = true;
 }
Beispiel #24
0
 public override void SetDefaults()
 {
     npc.width           = 70;
     npc.height          = 136;
     npc.value           = BaseUtility.CalcValue(0, 10, 0, 0);
     npc.npcSlots        = 1000;
     npc.aiStyle         = -1;
     npc.lifeMax         = 100000;
     npc.defense         = 50;
     npc.damage          = 120;
     npc.knockBackResist = 0f;
     npc.noGravity       = true;
     npc.HitSound        = SoundID.NPCHit1;
     npc.DeathSound      = SoundID.NPCDeath1;
     npc.boss            = true;
     music             = mod.GetSoundSlot(SoundType.Music, "Sounds/Music/ObserverVoid");
     npc.alpha         = 255;
     npc.noTileCollide = true;
     npc.value         = Item.sellPrice(0, 10, 0, 0);
 }
Beispiel #25
0
 public override void SetDefaults()
 {
     item.width        = 30;
     item.height       = 30;
     item.maxStack     = 1;
     item.rare         = ItemRarityID.Green;
     item.value        = BaseUtility.CalcValue(0, 0, 90, 50);
     item.useStyle     = ItemUseStyleID.HoldingOut;
     item.useAnimation = 45;
     item.useTime      = 45;
     item.UseSound     = SoundID.Item1;
     item.damage       = 24;
     item.knockBack    = 7;
     item.melee        = true;
     item.shoot        = ModContent.ProjectileType <Projectiles.Comet.Comet>();
     item.shootSpeed   = 12;
     item.noUseGraphic = true;
     item.noMelee      = true;
     item.channel      = true;
 }
Beispiel #26
0
 public override void SetDefaults()
 {
     npc.width           = 152;
     npc.height          = 114;
     npc.value           = BaseUtility.CalcValue(0, 10, 0, 0);
     npc.npcSlots        = 1000;
     npc.aiStyle         = -1;
     npc.lifeMax         = 110000;
     npc.defense         = 70;
     npc.damage          = 110;
     npc.knockBackResist = 0f;
     npc.noGravity       = true;
     npc.HitSound        = SoundID.NPCHit1;
     npc.DeathSound      = SoundID.NPCDeath1;
     npc.boss            = true;
     music             = mod.GetSoundSlot(SoundType.Music, "Sounds/Music/AthenaA");
     bossBag           = ModContent.ItemType <Items.Boss.Athena.AthenaBag>();
     npc.noTileCollide = true;
     bossBag           = mod.ItemType("AthenaABag");
 }
Beispiel #27
0
 public override void SetDefaults()
 {
     npc.width           = 198;
     npc.height          = 138;
     npc.value           = BaseUtility.CalcValue(0, 10, 0, 0);
     npc.npcSlots        = 1000;
     npc.aiStyle         = -1;
     npc.lifeMax         = 150000;
     npc.defense         = 70;
     npc.damage          = 130;
     npc.knockBackResist = 0f;
     npc.noGravity       = true;
     npc.HitSound        = SoundID.NPCHit49;
     npc.DeathSound      = SoundID.NPCDeath51;
     npc.boss            = true;
     npc.noTileCollide   = true;
     music              = mod.GetSoundSlot(SoundType.Music, "Sounds/Music/Void");
     bossBag            = ModContent.ItemType <ObserverVoidBag>();
     npc.dontTakeDamage = true;
     npc.value          = Item.sellPrice(0, 30, 0, 0);
 }
Beispiel #28
0
        public override void SetDefaults()
        {
            item.width    = 35;
            item.height   = 35;
            item.maxStack = 1;
            item.rare     = 5;
            item.value    = BaseUtility.CalcValue(0, 15, 0, 0);

            item.useStyle     = 5;
            item.useAnimation = 50;
            item.useTime      = 50;
            item.UseSound     = SoundID.Item1;
            item.damage       = 35;
            item.knockBack    = 6;
            item.melee        = true;
            item.autoReuse    = true;
            item.noUseGraphic = true;
            item.noMelee      = true;
            item.shoot        = mod.ProjType("SunLance");
            item.shootSpeed   = 4;
        }
Beispiel #29
0
        public override void SetDefaults()
        {
            if (dName != null)
            {
                item.createTile = mod.TileType("Banners");
                item.placeStyle = pStyle;
            }
            item.scale    = 0.7f;
            item.width    = 16;
            item.height   = 16;
            item.maxStack = 99;
            item.rare     = 1;
            item.value    = BaseUtility.CalcValue(0, 0, 10, 0);

            item.useStyle     = 1;
            item.useAnimation = 15;
            item.useTime      = 10;
            item.autoReuse    = true;
            item.useTurn      = true;
            item.consumable   = true;
        }
 public override void SetDefaults()
 {
     item.width        = 40;
     item.height       = 40;
     item.maxStack     = 1;
     item.rare         = 9;
     item.value        = BaseUtility.CalcValue(0, 5, 0, 0);
     item.UseSound     = SoundID.Item71;
     item.useStyle     = 1;
     item.useAnimation = 25;
     item.useTime      = 25;
     item.damage       = 280;
     item.knockBack    = 4;
     item.noMelee      = true;
     item.noUseGraphic = true;
     item.autoReuse    = true;
     item.shoot        = mod.ProjectileType("CursedSickleEX");
     item.shootSpeed   = 0.1f;
     item.melee        = true;
     item.expert       = true; item.expertOnly = true;
 }