public PigGuardianFragmentBase(byte PigID) { this.PigID = PigID; Size = GuardianSize.Medium; Age = 15; CompanionSlotWeight = 0.6f; SetBirthday(SEASON_AUTUMN, 14); CompanionContributorName = "Smokey"; //Same animations and settings for all! StandingFrame = 0; WalkingFrames = new int[] { 1, 2, 3, 4, 5, 6, 7, 8 }; JumpFrame = 9; ItemUseFrames = new int[] { 10, 11, 12, 13 }; SittingFrame = 14; ChairSittingFrame = 14; DrawLeftArmInFrontOfHead.AddRange(new int[] { 9, 10, 11, 15 }); ThroneSittingFrame = 16; BedSleepingFrame = 18; DownedFrame = 15; ReviveFrame = 17; BackwardStanding = 27; BackwardRevive = 28; SittingPoint2x = new Microsoft.Xna.Framework.Point(15, 24); SpecificBodyFrontFramePositions = true; BodyFrontFrameSwap.Add(14, 0); BodyFrontFrameSwap.Add(16, 1); BodyFrontFrameSwap.Add(22, 2); BodyFrontFrameSwap.Add(23, 3); //Left Arm LeftHandPoints.AddFramePoint2x(10, 10, 4); LeftHandPoints.AddFramePoint2x(11, 22, 11); LeftHandPoints.AddFramePoint2x(12, 24, 19); LeftHandPoints.AddFramePoint2x(13, 20, 24); LeftHandPoints.AddFramePoint2x(17, 24, 28); //Right Arm RightHandPoints.AddFramePoint2x(10, 16, 4); RightHandPoints.AddFramePoint2x(11, 26, 11); RightHandPoints.AddFramePoint2x(12, 28, 19); RightHandPoints.AddFramePoint2x(13, 24, 24); RightHandPoints.AddFramePoint2x(17, 26, 28); //Headgear HeadVanityPosition.DefaultCoordinate2x = new Microsoft.Xna.Framework.Point(16, 11); HeadVanityPosition.AddFramePoint2x(14, 16, 9); HeadVanityPosition.AddFramePoint2x(17, 23, 18); HeadVanityPosition.AddFramePoint2x(22, 16, 9); HeadVanityPosition.AddFramePoint2x(25, 23, 18); HeadVanityPosition.AddFramePoint2x(23, -1000, -1000); HeadVanityPosition.AddFramePoint2x(24, -1000, -1000); HeadVanityPosition.AddFramePoint2x(26, -1000, -1000); }
public SadnessBase() : base(SadnessPigGuardianID) { Name = "Sadness"; PossibleNames = new string[] { "Downcast", "Sorrow", "Unfortue", "Misera" }; Description = "One of the emotion pieces fragments\nof a TerraGuardian. Very saddened."; Width = 10 * 2; Height = 27 * 2; SpriteWidth = 72; SpriteHeight = 68; DefaultTactic = CombatTactic.Snipe; //FramesInRows = 28; //DuckingHeight = 54; //Each pig should definitelly have the same size, birthday age and time, so I moved those infos. Genderless = true; InitialMHP = 110; //320 LifeCrystalHPBonus = 15; LifeFruitHPBonus = 5; Accuracy = 0.67f; Mass = 0.40f; MaxSpeed = 3.62f; Acceleration = 0.12f; SlowDown = 0.35f; MaxJumpHeight = 12; JumpSpeed = 9.76f; CanDuck = false; ReverseMount = true; DontUseHeavyWeapons = true; DrinksBeverage = false; SetTerraGuardian(); MountUnlockLevel = 255; InitialItems.Add(new ItemPair(Terraria.ID.ItemID.BluePhaseblade, 1)); InitialItems.Add(new ItemPair(Terraria.ID.ItemID.LesserHealingPotion, 10)); //Animation Frames //Left Arm LeftHandPoints.AddFramePoint2x(10, 12, 4); LeftHandPoints.AddFramePoint2x(11, 24, 11); LeftHandPoints.AddFramePoint2x(12, 26, 19); LeftHandPoints.AddFramePoint2x(13, 22, 24); LeftHandPoints.AddFramePoint2x(17, 26, 28); //Right Arm RightHandPoints.AddFramePoint2x(10, 17, 4); RightHandPoints.AddFramePoint2x(11, 27, 11); RightHandPoints.AddFramePoint2x(12, 29, 19); RightHandPoints.AddFramePoint2x(13, 25, 24); RightHandPoints.AddFramePoint2x(17, 28, 28); //Headgear HeadVanityPosition.DefaultCoordinate2x = new Microsoft.Xna.Framework.Point(16 + 2, 11); HeadVanityPosition.AddFramePoint2x(14, 16 + 2, 9); HeadVanityPosition.AddFramePoint2x(17, 23 + 2, 18); HeadVanityPosition.AddFramePoint2x(22, 16 + 2, 9); HeadVanityPosition.AddFramePoint2x(25, 23 + 2, 18); }
public JoyBase() : base(HappinessPigGuardianID) { Name = "Joy"; PossibleNames = new string[] { "Cheery", "Fortue", "Glee", "Joy" }; Description = ""; Width = 10 * 2; Height = 27 * 2; SpriteWidth = 64; SpriteHeight = 64; //FramesInRows = 28; //DuckingHeight = 54; //Each pig should definitelly have the same size, birthday age and time, so I moved those infos. Genderless = true; InitialMHP = 110; //320 LifeCrystalHPBonus = 15; LifeFruitHPBonus = 5; Accuracy = 0.67f; Mass = 0.40f; MaxSpeed = 3.62f; Acceleration = 0.12f; SlowDown = 0.35f; MaxJumpHeight = 12; JumpSpeed = 9.76f; CanDuck = false; ReverseMount = true; DontUseHeavyWeapons = true; DrinksBeverage = false; SetTerraGuardian(); MountUnlockLevel = 255; InitialItems.Add(new ItemPair(Terraria.ID.ItemID.YellowPhaseblade, 1)); InitialItems.Add(new ItemPair(Terraria.ID.ItemID.LesserHealingPotion, 10)); InitialItems.Add(new ItemPair(Terraria.ID.ItemID.AmberStaff, 1)); //Animation Frames //Left Arm LeftHandPoints.AddFramePoint2x(10, 10, 2); LeftHandPoints.AddFramePoint2x(11, 22, 9); LeftHandPoints.AddFramePoint2x(12, 24, 17); LeftHandPoints.AddFramePoint2x(13, 20, 22); LeftHandPoints.AddFramePoint2x(17, 24, 26); //Right Arm RightHandPoints.AddFramePoint2x(10, 15, 2); RightHandPoints.AddFramePoint2x(11, 25, 9); RightHandPoints.AddFramePoint2x(12, 27, 17); RightHandPoints.AddFramePoint2x(13, 23, 22); RightHandPoints.AddFramePoint2x(17, 26, 26); //Headgear HeadVanityPosition.DefaultCoordinate2x = new Microsoft.Xna.Framework.Point(16 + 2, 11); HeadVanityPosition.AddFramePoint2x(14, 16 + 2, 9); HeadVanityPosition.AddFramePoint2x(17, 23 + 2, 18); HeadVanityPosition.AddFramePoint2x(22, 16 + 2, 9); HeadVanityPosition.AddFramePoint2x(25, 23 + 2, 18); }
public CinnamonBase() //Her recruitment could involve Soup. { Name = "Cinnamon"; PossibleNames = new string[] { "Cinnamon", "Canela" }; Description = "A food enthusiast who is travelling worlds,\nseeking the best seasonings for food."; Size = GuardianSize.Medium; Width = 24; Height = 68; DuckingHeight = 60; CompanionSlotWeight = 0.9f; SpriteWidth = 96; SpriteHeight = 96; Scale = 59f / 68; Age = 13; SetBirthday(SEASON_SPRING, 28); Male = true; InitialMHP = 160; //860 LifeCrystalHPBonus = 20; LifeFruitHPBonus = 20; Accuracy = 0.43f; Mass = 0.36f; MaxSpeed = 4.6f; Acceleration = 0.22f; SlowDown = 0.26f; MaxJumpHeight = 18; JumpSpeed = 7.19f; CanDuck = true; ReverseMount = false; DrinksBeverage = false; SetTerraGuardian(); CallUnlockLevel = 4; MoveInLevel = 3; MountUnlockLevel = 6; AddInitialItem(Terraria.ID.ItemID.RedRyder, 1); AddInitialItem(Terraria.ID.ItemID.LesserHealingPotion, 5); AddInitialItem(Terraria.ID.ItemID.CookedFish, 3); //Animation Frames StandingFrame = 0; WalkingFrames = new int[] { 2, 3, 4, 5, 6, 7, 8, 9 }; JumpFrame = 10; PlayerMountedArmAnimation = 23; //HeavySwingFrames = new int[] { 10, 11, 12 }; ItemUseFrames = new int[] { 11, 12, 13, 14 }; DuckingFrame = 18; DuckingSwingFrames = new int[] { 20, 21, 22 }; SittingFrame = 16; ChairSittingFrame = 15; DrawLeftArmInFrontOfHead.AddRange(new int[] { 9, 10, 11, 16, 17, 21, 22 }); ThroneSittingFrame = 24; BedSleepingFrame = 25; SleepingOffset.X = 16; ReviveFrame = 19; DownedFrame = 17; //PetrifiedFrame = 28; BackwardStanding = 26; BackwardRevive = 27; SpecificBodyFrontFramePositions = true; BodyFrontFrameSwap.Add(15, 0); BodyFrontFrameSwap.Add(16, 0); RightArmFrontFrameSwap.Add(15, 0); RightArmFrontFrameSwap.Add(18, 1); RightArmFrontFrameSwap.Add(19, 1); //Left Hand LeftHandPoints.AddFramePoint2x(11, 16, 4); LeftHandPoints.AddFramePoint2x(12, 30, 22); LeftHandPoints.AddFramePoint2x(13, 32, 28); LeftHandPoints.AddFramePoint2x(14, 29, 34); LeftHandPoints.AddFramePoint2x(19, 26, 38); LeftHandPoints.AddFramePoint2x(20, 15, 17); LeftHandPoints.AddFramePoint2x(21, 29, 25); LeftHandPoints.AddFramePoint2x(22, 29, 36); //Right Hand RightHandPoints.AddFramePoint2x(11, 29, 14); RightHandPoints.AddFramePoint2x(12, 32, 22); RightHandPoints.AddFramePoint2x(13, 35, 28); RightHandPoints.AddFramePoint2x(14, 31, 35); RightHandPoints.AddFramePoint2x(20, 26, 17); RightHandPoints.AddFramePoint2x(21, 31, 25); RightHandPoints.AddFramePoint2x(22, 31, 36); //Mount Position MountShoulderPoints.DefaultCoordinate = new Microsoft.Xna.Framework.Point(18 * 2, 23 * 2); MountShoulderPoints.AddFramePoint2x(18, 18, 27); MountShoulderPoints.AddFramePoint2x(19, 18, 27); //Sitting Position SittingPoint = new Point(21 * 2, 39 * 2); //Head Vanity Position HeadVanityPosition.DefaultCoordinate2x = new Point(23, 18 + 2); HeadVanityPosition.AddFramePoint2x(18, 23, 22 + 2); HeadVanityPosition.AddFramePoint2x(19, 23, 22 + 2); //Wing Position //WingPosition.DefaultCoordinate2x = new Point(20, 23); }
public CilleBase() { Name = "Cille"; Description = "A young person with a mysterious past, \nafraid of interacting with people."; Size = GuardianSize.Large; Width = 24; Height = 90; DefaultTactic = CombatTactic.Charge; CompanionContributorName = "Boom"; //DuckingHeight = 52; SpriteWidth = 96; SpriteHeight = 96; Scale = 96f / 90; CompanionSlotWeight = 1.15f; Age = 21; SetBirthday(SEASON_SUMMER, 7); Male = false; InitialMHP = 225; //950 LifeCrystalHPBonus = 35; LifeFruitHPBonus = 10; Accuracy = 0.89f; Mass = 0.48f; MaxSpeed = 6f; Acceleration = 0.18f; SlowDown = 0.52f; CanDuck = true; ReverseMount = false; DrinksBeverage = true; SetTerraGuardian(); FriendsLevel = 3; CallUnlockLevel = 3; MoveInLevel = 5; //Animation Frames StandingFrame = 0; WalkingFrames = new int[] { 1, 2, 3, 4, 5, 6, 7, 8 }; PlayerMountedArmAnimation = JumpFrame = 9; //HeavySwingFrames = new int[] { 10, 11, 12 }; ItemUseFrames = new int[] { 10, 11, 12, 13 }; DuckingFrame = 21; DuckingSwingFrames = new int[] { 22, 23, 24 }; SittingFrame = 15; ChairSittingFrame = 14; ThroneSittingFrame = 17; BedSleepingFrame = 16; SleepingOffset.X = 16; ReviveFrame = 18; DownedFrame = 19; //PetrifiedFrame = 28; BackwardStanding = 20; //BackwardRevive = 30; AddInitialItem(Terraria.ID.ItemID.GoldBroadsword); AddInitialItem(Terraria.ID.ItemID.HealingPotion, 5); SpecificBodyFrontFramePositions = true; BodyFrontFrameSwap.Add(14, 0); BodyFrontFrameSwap.Add(15, 0); SittingPoint2x = new Microsoft.Xna.Framework.Point(20, 34); //Left Arm LeftHandPoints.AddFramePoint2x(10, 11, 3); LeftHandPoints.AddFramePoint2x(11, 33, 11); LeftHandPoints.AddFramePoint2x(12, 36, 21); LeftHandPoints.AddFramePoint2x(13, 30, 30); LeftHandPoints.AddFramePoint2x(14, 25, 26); LeftHandPoints.AddFramePoint2x(15, 25, 26); LeftHandPoints.AddFramePoint2x(18, 35, 33); LeftHandPoints.AddFramePoint2x(22, 32, 24); LeftHandPoints.AddFramePoint2x(23, 42, 35); LeftHandPoints.AddFramePoint2x(24, 37, 43); //Right Arm RightHandPoints.AddFramePoint2x(10, 23, 3); RightHandPoints.AddFramePoint2x(11, 35, 11); RightHandPoints.AddFramePoint2x(12, 38, 21); RightHandPoints.AddFramePoint2x(13, 32, 30); RightHandPoints.AddFramePoint2x(14, 29, 27); RightHandPoints.AddFramePoint2x(15, 34, 24); RightHandPoints.AddFramePoint2x(18, 42, 33); RightHandPoints.AddFramePoint2x(22, 38, 24); RightHandPoints.AddFramePoint2x(23, 45, 35); RightHandPoints.AddFramePoint2x(24, 43, 43); //Mounted Placement MountShoulderPoints.DefaultCoordinate2x = new Point(16, 15); MountShoulderPoints.AddFramePoint2x(21, 31, 30); //Headgear Placement HeadVanityPosition.DefaultCoordinate2x = new Point(24, 11); HeadVanityPosition.AddFramePoint2x(18, 30, 18); HeadVanityPosition.AddFramePoint2x(21, 40, 37); AddOutfit(NoOutfitID, "No Outfit", delegate(GuardianData gd, Player player) { return(true); }); }
/// <summary> /// -Objective centered. /// -Naive. /// -Tries to be like a mother to the Angler. /// -Exceeds on caffeine when stressed. /// -Loves company. /// -Insecure. /// -She saw Rococo before, somewhere. /// </summary> public MabelBase() { Name = "Mabel"; Description = "She dreams of being a model. And she still pursues it."; Size = GuardianSize.Large; Width = 30; Height = 84; CompanionSlotWeight = 1.15f; DefaultTactic = CombatTactic.Charge; SpriteWidth = 96; SpriteHeight = 96; Scale = 92f / 84; Age = 17; SetBirthday(SEASON_AUTUMN, 26); Male = false; InitialMHP = 150; //975 LifeCrystalHPBonus = 35; LifeFruitHPBonus = 15; Accuracy = 0.81f; Mass = 0.55f; MaxSpeed = 5.78f; Acceleration = 0.17f; SlowDown = 0.39f; MaxJumpHeight = 17; JumpSpeed = 7.12f; CanDuck = true; ReverseMount = false; DrinksBeverage = false; SetTerraGuardian(); CallUnlockLevel = 3; Roles = GuardianRoles.PopularityContestHost; DodgeRate = 10; PopularityContestsWon = 0; ContestSecondPlace = 1; ContestThirdPlace = 1; AddInitialItem(Terraria.ID.ItemID.BeeKeeper, 1); AddInitialItem(Terraria.ID.ItemID.HealingPotion, 5); SpecificBodyFrontFramePositions = true; //Animation Frames StandingFrame = 0; WalkingFrames = new int[] { 1, 2, 3, 4, 5, 6, 7, 8 }; PlayerMountedArmAnimation = JumpFrame = 9; ItemUseFrames = new int[] { 10, 11, 12, 13 }; HeavySwingFrames = new int[] { 10, 14, 15 }; DuckingFrame = 17; DuckingSwingFrames = new int[] { 18, 19, 20 }; SittingFrame = 16; DrawLeftArmInFrontOfHead.AddRange(new int[] { 9, 10, 11 }); BodyFrontFrameSwap.Add(16, 0); ThroneSittingFrame = 21; BedSleepingFrame = 22; SleepingOffset.X = 16; ReviveFrame = 23; DownedFrame = 24; BackwardStanding = 25; BackwardRevive = 26; //Mounted Position MountShoulderPoints.DefaultCoordinate2x = new Point(19, 14); MountShoulderPoints.AddFramePoint2x(17, 19, 20); SittingPoint = new Point(24 * 2, 37 * 2); //Left Arm LeftHandPoints.AddFramePoint2x(10, 14, 5); LeftHandPoints.AddFramePoint2x(11, 37, 8); LeftHandPoints.AddFramePoint2x(12, 39, 20); LeftHandPoints.AddFramePoint2x(13, 35, 33); LeftHandPoints.AddFramePoint2x(14, 42, 20); LeftHandPoints.AddFramePoint2x(15, 42, 39); LeftHandPoints.AddFramePoint2x(18, 14, 12); LeftHandPoints.AddFramePoint2x(19, 37, 15); LeftHandPoints.AddFramePoint2x(20, 39, 28); LeftHandPoints.AddFramePoint2x(23, 36, 40); //Right Arm RightHandPoints.AddFramePoint2x(10, 17, 5); RightHandPoints.AddFramePoint2x(11, 40, 8); RightHandPoints.AddFramePoint2x(12, 42, 20); RightHandPoints.AddFramePoint2x(13, 38, 33); RightHandPoints.AddFramePoint2x(14, 45, 20); RightHandPoints.AddFramePoint2x(15, 44, 39); RightHandPoints.AddFramePoint2x(18, 17, 12); RightHandPoints.AddFramePoint2x(19, 40, 15); RightHandPoints.AddFramePoint2x(20, 42, 27); //Headgear Position HeadVanityPosition.DefaultCoordinate2x = new Point(23, 12); HeadVanityPosition.AddFramePoint2x(14, 36, 21); HeadVanityPosition.AddFramePoint2x(15, 38, 31); HeadVanityPosition.AddFramePoint2x(17, 23, 19); HeadVanityPosition.AddFramePoint2x(23, 34, 28); }
//I'll need to think how I'll make the cloud form of them work, and toggle. public WrathBase() : base(AngerPigGuardianID) { Name = "Wrath"; PossibleNames = new string[] { "Wrath", "Rage", "Fury", "Irk" }; Description = "The angry emotional pig piece\nof a TerraGuardian. Very volatile."; Width = 10 * 2; Height = 27 * 2; SpriteWidth = 70; SpriteHeight = 68; FramesInRows = 28; //DuckingHeight = 54; //Each pig should definitelly have the same size, birthday age and time, so I moved those infos. DefaultTactic = CombatTactic.Charge; Genderless = true; InitialMHP = 110; //320 LifeCrystalHPBonus = 15; LifeFruitHPBonus = 5; Accuracy = 0.67f; Mass = 0.40f; MaxSpeed = 3.62f; Acceleration = 0.12f; SlowDown = 0.35f; MaxJumpHeight = 12; JumpSpeed = 9.76f; CanDuck = false; ReverseMount = true; DontUseHeavyWeapons = true; DrinksBeverage = false; SetTerraGuardian(); MountUnlockLevel = 255; InitialItems.Add(new ItemPair(Terraria.ID.ItemID.RedPhaseblade, 1)); InitialItems.Add(new ItemPair(Terraria.ID.ItemID.LesserHealingPotion, 10)); RightArmFrontFrameSwap.Add(0, 0); RightArmFrontFrameSwap.Add(1, 0); RightArmFrontFrameSwap.Add(2, 1); RightArmFrontFrameSwap.Add(3, 2); RightArmFrontFrameSwap.Add(4, 2); RightArmFrontFrameSwap.Add(5, 1); RightArmFrontFrameSwap.Add(6, 0); RightArmFrontFrameSwap.Add(7, 0); RightArmFrontFrameSwap.Add(8, 0); //RightArmFrontFrameSwap.Add(9, 0); //RightArmFrontFrameSwap.Add(10, 0); //Animation Frames //Left Arm LeftHandPoints.AddFramePoint2x(10, 11, 4); LeftHandPoints.AddFramePoint2x(11, 23, 11); LeftHandPoints.AddFramePoint2x(12, 24, 19); LeftHandPoints.AddFramePoint2x(13, 22, 24); LeftHandPoints.AddFramePoint2x(17, 25, 28); //Right Arm RightHandPoints.AddFramePoint2x(10, 15, 4); RightHandPoints.AddFramePoint2x(11, 25, 11); RightHandPoints.AddFramePoint2x(12, 27, 19); RightHandPoints.AddFramePoint2x(13, 23, 24); RightHandPoints.AddFramePoint2x(17, 27, 28); //Headgear HeadVanityPosition.DefaultCoordinate2x = new Microsoft.Xna.Framework.Point(16 + 2, 11); HeadVanityPosition.AddFramePoint2x(14, 16 + 2, 9); HeadVanityPosition.AddFramePoint2x(17, 23 + 2, 18); HeadVanityPosition.AddFramePoint2x(22, 16 + 2, 9); HeadVanityPosition.AddFramePoint2x(25, 23 + 2, 18); GetRequests(); SkinsAndOutfits(); }
public MiguelBase() { Name = "Miguel"; Description = "Your very own personal trainer, like it or not."; Size = GuardianSize.Large; Width = 22; Height = 94; DuckingHeight = 52; SpriteWidth = 96; SpriteHeight = 120; Scale = 112 / 96; CompanionSlotWeight = 1.1f; DefaultTactic = CombatTactic.Charge; Age = 21; SetBirthday(SEASON_SUMMER, 4); Male = true; InitialMHP = 225; //1200 LifeCrystalHPBonus = 45; LifeFruitHPBonus = 15; Accuracy = 0.36f; Mass = 0.45f; MaxSpeed = 6.2f; Acceleration = 0.26f; SlowDown = 0.38f; MaxJumpHeight = 12; JumpSpeed = 7.08f; CanDuck = true; ReverseMount = false; DrinksBeverage = true; SetTerraGuardian(); CallUnlockLevel = 0; PopularityContestsWon = 0; ContestSecondPlace = 0; ContestThirdPlace = 0; AddInitialItem(Terraria.ID.ItemID.BladeofGrass, 1); AddInitialItem(Terraria.ID.ItemID.HealingPotion, 5); //Animation Frames StandingFrame = 2; WalkingFrames = new int[] { 3, 4, 5, 6, 7, 8, 9, 10 }; PlayerMountedArmAnimation = JumpFrame = 11; HeavySwingFrames = new int[] { 13, 14, 15 }; ItemUseFrames = new int[] { 12, 13, 14, 15 }; DuckingFrame = 18; DuckingSwingFrames = new int[] { 19, 20, 21 }; SittingFrame = 17; ChairSittingFrame = 16; ThroneSittingFrame = 22; BedSleepingFrame = 23; SleepingOffset.X = 16; ReviveFrame = 24; //Rework animation before enabling this. //ReviveFrame = 21; DownedFrame = 25; BackwardStanding = 1; BackwardRevive = 26; //Needs animation rework, just like frame 24 SpecificBodyFrontFramePositions = true; BodyFrontFrameSwap.Add(16, 0); BodyFrontFrameSwap.Add(17, 0); RightArmFrontFrameSwap.Add(24, 0); SittingPoint2x = new Microsoft.Xna.Framework.Point(22, 47); //Left Arm LeftHandPoints.AddFramePoint2x(12, 12, 12); LeftHandPoints.AddFramePoint2x(13, 31, 20); LeftHandPoints.AddFramePoint2x(14, 35, 28); LeftHandPoints.AddFramePoint2x(15, 30, 37); LeftHandPoints.AddFramePoint2x(17, 28, 35); LeftHandPoints.AddFramePoint2x(26, 28, 35); LeftHandPoints.AddFramePoint2x(19, 14, 13); LeftHandPoints.AddFramePoint2x(20, 33, 23); LeftHandPoints.AddFramePoint2x(21, 32, 42); LeftHandPoints.AddFramePoint2x(24, 32, 46); LeftHandPoints.AddFramePoint2x(26, 32, 46); //Right Arm RightHandPoints.AddFramePoint2x(12, 24, 12); RightHandPoints.AddFramePoint2x(13, 34, 20); RightHandPoints.AddFramePoint2x(14, 38, 28); RightHandPoints.AddFramePoint2x(15, 34, 37); RightHandPoints.AddFramePoint2x(19, 17, 13); RightHandPoints.AddFramePoint2x(20, 36, 23); RightHandPoints.AddFramePoint2x(21, 35, 42); RightHandPoints.AddFramePoint2x(24, 32, 46); RightHandPoints.AddFramePoint2x(26, 32, 46); //Mount Position MountShoulderPoints.DefaultCoordinate2x = new Microsoft.Xna.Framework.Point(17, 23); MountShoulderPoints.AddFramePoint2x(18, 17, 27); MountShoulderPoints.AddFramePoint2x(23, 18, 29); MountShoulderPoints.AddFramePoint2x(24, 17, 29); MountShoulderPoints.AddFramePoint2x(26, 17, 29); //Helmet Position HeadVanityPosition.DefaultCoordinate2x = new Microsoft.Xna.Framework.Point(25 - 2, 20 + 2); HeadVanityPosition.AddFramePoint2x(18, 25 - 2, 24 + 2); HeadVanityPosition.AddFramePoint2x(24, 25 - 2, 24 + 2); HeadVanityPosition.AddFramePoint2x(26, 25 - 2, 24 + 2); }
public LunaBase() { Name = "Luna"; Description = "She can tell you about almost everything\nrelated to TerraGuardians."; Size = GuardianSize.Large; Width = 24; Height = 84; DuckingHeight = 70; SpriteWidth = 96; SpriteHeight = 96; Scale = 101f / 84; CompanionSlotWeight = 1.05f; Age = 19; SetBirthday(SEASON_AUTUMN, 17); Male = false; InitialMHP = 200; //950 LifeCrystalHPBonus = 30; LifeFruitHPBonus = 15; Accuracy = 0.63f; Mass = 0.5f; MaxSpeed = 5f; Acceleration = 0.2f; SlowDown = 0.53f; CanDuck = true; ReverseMount = false; SetTerraGuardian(); CallUnlockLevel = 0; PopularityContestsWon = 0; ContestSecondPlace = 0; ContestThirdPlace = 1; AddInitialItem(Terraria.ID.ItemID.CopperBroadsword); AddInitialItem(Terraria.ID.ItemID.RichMahoganyBow); AddInitialItem(Terraria.ID.ItemID.Mushroom, 5); //Animation Frames StandingFrame = 2; WalkingFrames = new int[] { 3, 4, 5, 6, 7, 8, 9, 10 }; PlayerMountedArmAnimation = JumpFrame = 11; HeavySwingFrames = new int[] { 16, 17, 18 }; ItemUseFrames = new int[] { 12, 13, 14, 15 }; DuckingFrame = 19; DuckingSwingFrames = new int[] { 20, 21, 22 }; SittingFrame = 24; ChairSittingFrame = 23; ThroneSittingFrame = 25; BedSleepingFrame = 26; SleepingOffset.X = 16; ReviveFrame = 27; DownedFrame = 28; BackwardStanding = 29; BackwardRevive = 30; SittingPoint2x = new Microsoft.Xna.Framework.Point(20, 34); SpecificBodyFrontFramePositions = true; BodyFrontFrameSwap.Add(23, 0); BodyFrontFrameSwap.Add(24, 0); RightArmFrontFrameSwap.Add(0, 0); RightArmFrontFrameSwap.Add(1, 1); RightArmFrontFrameSwap.Add(23, 1); RightArmFrontFrameSwap.Add(24, 1); //Left Arm LeftHandPoints.AddFramePoint2x(12, 13, 3); LeftHandPoints.AddFramePoint2x(13, 33, 12); LeftHandPoints.AddFramePoint2x(14, 36, 22); LeftHandPoints.AddFramePoint2x(15, 30, 31); LeftHandPoints.AddFramePoint2x(16, 30, 4); LeftHandPoints.AddFramePoint2x(17, 40, 18); LeftHandPoints.AddFramePoint2x(18, 36, 42); LeftHandPoints.AddFramePoint2x(20, 11, 17); LeftHandPoints.AddFramePoint2x(21, 34, 18); LeftHandPoints.AddFramePoint2x(22, 30, 33); LeftHandPoints.AddFramePoint2x(24, 29, 28); LeftHandPoints.AddFramePoint2x(27, 33, 43); LeftHandPoints.AddFramePoint2x(30, 33, 43); //Right Arm RightHandPoints.AddFramePoint2x(12, 16, 3); RightHandPoints.AddFramePoint2x(13, 35, 12); RightHandPoints.AddFramePoint2x(14, 38, 22); RightHandPoints.AddFramePoint2x(15, 32, 31); RightHandPoints.AddFramePoint2x(16, 32, 4); RightHandPoints.AddFramePoint2x(17, 42, 18); RightHandPoints.AddFramePoint2x(18, 38, 42); RightHandPoints.AddFramePoint2x(20, 13, 17); RightHandPoints.AddFramePoint2x(21, 36, 18); RightHandPoints.AddFramePoint2x(22, 32, 33); RightHandPoints.AddFramePoint2x(27, 41, 43); RightHandPoints.AddFramePoint2x(30, 41, 43); //Mount Sit Position MountShoulderPoints.DefaultCoordinate2x = new Microsoft.Xna.Framework.Point(16, 16); MountShoulderPoints.AddFramePoint2x(17, 22, 20); MountShoulderPoints.AddFramePoint2x(18, 24, 25); MountShoulderPoints.AddFramePoint2x(19, 16, 23); MountShoulderPoints.AddFramePoint2x(20, 16, 23); MountShoulderPoints.AddFramePoint2x(21, 16, 23); MountShoulderPoints.AddFramePoint2x(22, 16, 23); MountShoulderPoints.AddFramePoint2x(25, 17, 19); MountShoulderPoints.AddFramePoint2x(27, 25, 27); MountShoulderPoints.AddFramePoint2x(30, 25, 27); //Headgear Position HeadVanityPosition.DefaultCoordinate2x = new Microsoft.Xna.Framework.Point(22, 12); HeadVanityPosition.AddFramePoint2x(17, 28, 18); HeadVanityPosition.AddFramePoint2x(18, 30, 24); HeadVanityPosition.AddFramePoint2x(19, 22, 19); HeadVanityPosition.AddFramePoint2x(20, 22, 19); HeadVanityPosition.AddFramePoint2x(21, 22, 19); HeadVanityPosition.AddFramePoint2x(22, 22, 19); HeadVanityPosition.AddFramePoint2x(27, 32, 27); HeadVanityPosition.AddFramePoint2x(30, 32, 27); }
public BaphaBase() { Name = "Bapha"; Description = "Overlord of Hell."; Size = GuardianSize.Large; Width = 17 * 2; //17 Height = 62 * 2; //61 Scale = 1.333f; CompanionSlotWeight = 3f; ForceScale = true; SpriteWidth = 99 * 2; SpriteHeight = 91 * 2; FramesInRows = 11; Age = 104357; SetBirthday(SEASON_SUMMER, 6); Male = true; InitialMHP = 666; //1000 LifeCrystalHPBonus = 100; LifeFruitHPBonus = 5; InitialMP = 333; ManaCrystalMPBonus = 30; Accuracy = 0.15f; Mass = 0.5f; MaxSpeed = 5.2f; Acceleration = 0.18f; SlowDown = 0.47f; MaxJumpHeight = 15; JumpSpeed = 7.08f; CanDuck = false; ReverseMount = false; DrinksBeverage = false; SpecialAttackBasedCombat = true; //UsesRightHandByDefault = true; //ForceWeaponUseOnMainHand = true; CompanionContributorName = "Smokey"; SetTerraGuardian(); VladimirBase.AddCarryBlacklist(Bapha); StandingFrame = 0; WalkingFrames = new int[] { 3, 4, 5, 6, 7, 8, 9, 10 }; JumpFrame = 12; ItemUseFrames = new int[] { 17, 18, 19, 20 }; SittingFrame = 60; ThroneSittingFrame = 59; //BedSleepingFrame = 25; //SleepingOffset.X = 16; ReviveFrame = RevivingFrameID; DownedFrame = DownedFrameID; SittingPoint2x = new Point(48, 74); RightArmFrontFrameSwap.Add(1, 0); RightArmFrontFrameSwap.Add(59, 1); RightArmFrontFrameSwap.Add(60, 2); SpecificBodyFrontFramePositions = true; BodyFrontFrameSwap.Add(60, 0); //Left Arm LeftHandPoints.AddFramePoint2x(17, 51, 26); LeftHandPoints.AddFramePoint2x(18, 68, 38); LeftHandPoints.AddFramePoint2x(19, 66, 54); LeftHandPoints.AddFramePoint2x(20, 61, 65); LeftHandPoints.AddFramePoint2x(28, 57, 69); LeftHandPoints.AddFramePoint2x(29, 57, 69); LeftHandPoints.AddFramePoint2x(30, 57, 69); LeftHandPoints.AddFramePoint2x(31, 57, 69); LeftHandPoints.AddFramePoint2x(37, 23, 37); LeftHandPoints.AddFramePoint2x(38, 51, 25); LeftHandPoints.AddFramePoint2x(39, 72, 69); LeftHandPoints.AddFramePoint2x(40, 71, 73); LeftHandPoints.AddFramePoint2x(41, 71, 73); LeftHandPoints.AddFramePoint2x(42, 71, 73); LeftHandPoints.AddFramePoint2x(43, 26, 51); //Right Arm RightHandPoints.AddFramePoint2x(17, 63, 28); RightHandPoints.AddFramePoint2x(18, 74, 40); RightHandPoints.AddFramePoint2x(19, 73, 54); RightHandPoints.AddFramePoint2x(20, 64, 64); RightHandPoints.AddFramePoint2x(28, 66, 66); RightHandPoints.AddFramePoint2x(29, 66, 66); RightHandPoints.AddFramePoint2x(30, 66, 66); RightHandPoints.AddFramePoint2x(31, 66, 66); RightHandPoints.AddFramePoint2x(43, 73, 51); //Shoulders MountShoulderPoints.DefaultCoordinate2x = new Point(42, 44); //Wings WingPosition.DefaultCoordinate2x = new Point(-1000, -1000); SubAttackSetup(); }
/// <summary> /// -Coward /// -Knows of many things /// -Brags about knowing many things /// -Female Terrarians keep touching his tail. /// -Spends most of his day reading books. /// -Rarelly leaves house, unless for a research. /// -Fears Malisha. /// </summary> public LeopoldBase() { Name = "Leopold"; Description = "A sage from the Ether Realm."; Size = GuardianSize.Medium; Width = 22; Height = 58; DuckingHeight = 52; SpriteWidth = 64; SpriteHeight = 64; Scale = 52f / 58; FramesInRows = 2048 / SpriteWidth; CompanionSlotWeight = 1.15f; Age = 23; SetBirthday(SEASON_SUMMER, 6); Male = true; InitialMHP = 160; //640 LifeCrystalHPBonus = 12; LifeFruitHPBonus = 15; InitialMP = 40; ManaCrystalMPBonus = 30; Accuracy = 0.86f; Mass = 0.4f; MaxSpeed = 5.2f; Acceleration = 0.18f; SlowDown = 0.47f; MaxJumpHeight = 17; JumpSpeed = 7.66f; CanDuck = false; ReverseMount = false; DrinksBeverage = true; SetTerraGuardian(); MountUnlockLevel = 7; CallUnlockLevel = 5; LeadGroupUnlockLevel = 13; PopularityContestsWon = 0; ContestSecondPlace = 0; ContestThirdPlace = 1; AddInitialItem(Terraria.ID.ItemID.WaterBolt, 1); AddInitialItem(Terraria.ID.ItemID.HealingPotion, 5); AddInitialItem(Terraria.ID.ItemID.ManaPotion, 20); AddInitialItem(Terraria.ID.ItemID.TungstenBroadsword, 1); //Animation Frames StandingFrame = 0; WalkingFrames = new int[] { 1, 2, 3, 4, 5, 6, 7, 8 }; PlayerMountedArmAnimation = JumpFrame = 9; HeavySwingFrames = new int[] { 10, 22, 23 }; ItemUseFrames = new int[] { 10, 11, 12, 13 }; //DuckingFrame = 20; //DuckingSwingFrames = new int[] { 21, 22, 12 }; SittingFrame = 14; ChairSittingFrame = 24; DrawLeftArmInFrontOfHead.AddRange(new int[] { 9, 10, 11, 16, 17, 21, 22 }); ThroneSittingFrame = 15; BedSleepingFrame = 16; ReviveFrame = 20; DownedFrame = 21; BackwardStanding = 25; BackwardRevive = 26; SittingPoint = new Point(14 * 2, 23 * 2); SpecificBodyFrontFramePositions = true; BodyFrontFrameSwap.Add(14, 0); //Left Hand LeftHandPoints.DefaultCoordinate = new Microsoft.Xna.Framework.Point(14 * 2, 20 * 2); LeftHandPoints.AddFramePoint2x(10, 15, 2); LeftHandPoints.AddFramePoint2x(11, 24, 7); LeftHandPoints.AddFramePoint2x(12, 24, 14); LeftHandPoints.AddFramePoint2x(13, 23, 21); LeftHandPoints.AddFramePoint2x(20, 19, 23); LeftHandPoints.AddFramePoint2x(22, 26, 13); LeftHandPoints.AddFramePoint2x(23, 23, 25); //Right Hand RightHandPoints.DefaultCoordinate = new Microsoft.Xna.Framework.Point(21 * 2, 20 * 2); RightHandPoints.AddFramePoint2x(10, 18, 2); RightHandPoints.AddFramePoint2x(11, 28, 7); RightHandPoints.AddFramePoint2x(12, 28, 14); RightHandPoints.AddFramePoint2x(13, 26, 21); RightHandPoints.AddFramePoint2x(20, 26, 23); RightHandPoints.AddFramePoint2x(22, 28, 13); RightHandPoints.AddFramePoint2x(23, 25, 25); //Mount Position MountShoulderPoints.DefaultCoordinate = new Microsoft.Xna.Framework.Point(12 * 2, 9 * 2); //Head Vanity Position HeadVanityPosition.DefaultCoordinate2x = new Point(14, 9); HeadVanityPosition.AddFramePoint2x(20, 22, 18); HeadVanityPosition.AddFramePoint2x(22, 18, 12); HeadVanityPosition.AddFramePoint2x(23, 21, 17); //Wing Position WingPosition.DefaultCoordinate2x = new Point(16, 17); }
public DominoBase() { Name = "Domino"; Description = "A sly smuggler from the Ether Realm."; Size = GuardianSize.Large; Width = 28; Height = 84; CompanionSlotWeight = 1.4f; SpriteWidth = 96; SpriteHeight = 96; Scale = 96f / 84; Age = 26; SetBirthday(SEASON_SPRING, 22); Male = true; InitialMHP = 200; //1000 LifeCrystalHPBonus = 20; LifeFruitHPBonus = 25; Accuracy = 0.97f; Mass = 0.5f; MaxSpeed = 5.6f; Acceleration = 0.22f; SlowDown = 0.37f; MaxJumpHeight = 15; JumpSpeed = 6.45f; CanDuck = true; ReverseMount = false; DrinksBeverage = true; IsNocturnal = true; SetTerraGuardian(); CallUnlockLevel = 2; MountUnlockLevel = 6; PopularityContestsWon = 0; ContestSecondPlace = 0; ContestThirdPlace = 0; AddInitialItem(Terraria.ID.ItemID.Handgun, 1); AddInitialItem(Terraria.ID.ItemID.HealingPotion, 5); AddInitialItem(Terraria.ID.ItemID.MusketBall, 999); //Animation Frames StandingFrame = 0; WalkingFrames = new int[] { 1, 2, 3, 4, 5, 6, 7, 8 }; PlayerMountedArmAnimation = JumpFrame = 9; ItemUseFrames = new int[] { 10, 11, 12, 13 }; DuckingFrame = 26; DuckingSwingFrames = new int[] { 14, 15, 16 }; SittingFrame = 17; ChairSittingFrame = 18; DrawLeftArmInFrontOfHead.AddRange(new int[] { 9, 10, 11, 12 }); ThroneSittingFrame = 19; BedSleepingFrame = 20; SleepingOffset.X = 16; ReviveFrame = 21; DownedFrame = 22; BackwardStanding = 24; BackwardRevive = 25; BodyFrontFrameSwap.Add(17, 0); BodyFrontFrameSwap.Add(18, 1); BodyFrontFrameSwap.Add(23, 0); SpecificBodyFrontFramePositions = true; RightArmFrontFrameSwap.Add(26, 0); //Mounted Position MountShoulderPoints.DefaultCoordinate2x = new Point(18, 15); MountShoulderPoints.AddFramePoint2x(26, 23, 22); SittingPoint2x = new Point(25, 36 - 2); //Left Arm LeftHandPoints.AddFramePoint2x(10, 16, 5); LeftHandPoints.AddFramePoint2x(11, 32, 11); LeftHandPoints.AddFramePoint2x(12, 35, 20); LeftHandPoints.AddFramePoint2x(13, 31, 28); LeftHandPoints.AddFramePoint2x(14, 25, 13); LeftHandPoints.AddFramePoint2x(15, 38, 19); LeftHandPoints.AddFramePoint2x(16, 36, 32); LeftHandPoints.AddFramePoint2x(21, 44, 38); //Right Arm RightHandPoints.AddFramePoint2x(10, 19, 5); RightHandPoints.AddFramePoint2x(11, 36, 11); RightHandPoints.AddFramePoint2x(12, 40, 20); RightHandPoints.AddFramePoint2x(13, 36, 28); RightHandPoints.AddFramePoint2x(14, 30, 13); RightHandPoints.AddFramePoint2x(15, 42, 19); RightHandPoints.AddFramePoint2x(16, 39, 32); //Head Vanity Pos HeadVanityPosition.DefaultCoordinate2x = new Point(23, 10); HeadVanityPosition.AddFramePoint2x(27, 29, 20); HeadVanityPosition.AddFramePoint2x(21, 29, 20); }
/// <summary> /// -Playful. /// -Innocent. /// -Extremelly friendly. /// -Fears Blood Moons. /// -Want to be Blue's friend. /// -Good friend of Sardine and Alex. /// </summary> public RococoBase() { Name = "Rococo"; //Has red eyes Description = "He's a good definition of a big kid, very playful and innocent.\nLoves playing kids games, like Hide and Seek."; Size = GuardianSize.Large; Width = 28; Height = 86; DuckingHeight = 52; SpriteWidth = 96; SpriteHeight = 96; Scale = 94f / 86; CompanionSlotWeight = 1.1f; Age = 15; SetBirthday(SEASON_SUMMER, 20); //Coincidence? DefaultTactic = CombatTactic.Charge; Male = true; InitialMHP = 200; //1000 LifeCrystalHPBonus = 40; LifeFruitHPBonus = 10; Accuracy = 0.15f; Mass = 0.5f; MaxSpeed = 5.2f; Acceleration = 0.18f; SlowDown = 0.47f; MaxJumpHeight = 15; JumpSpeed = 7.08f; CanDuck = true; ReverseMount = false; DrinksBeverage = false; SetTerraGuardian(); HurtSound = new SoundData(Terraria.ID.SoundID.DD2_KoboldHurt); DeadSound = new SoundData(Terraria.ID.SoundID.DD2_KoboldDeath); Roles = GuardianRoles.PopularityContestHost; CallUnlockLevel = 0; PopularityContestsWon = 2; ContestSecondPlace = 4; ContestThirdPlace = 0; AddInitialItem(Terraria.ID.ItemID.WoodenSword, 1); AddInitialItem(Terraria.ID.ItemID.Mushroom, 3); //Animation Frames StandingFrame = 0; WalkingFrames = new int[] { 1, 2, 3, 4, 5, 6, 7, 8 }; PlayerMountedArmAnimation = JumpFrame = 9; HeavySwingFrames = new int[] { 10, 11, 12 }; ItemUseFrames = new int[] { 16, 17, 18, 19 }; DuckingFrame = 20; DuckingSwingFrames = new int[] { 21, 22, 12 }; SittingFrame = 23; DrawLeftArmInFrontOfHead.AddRange(new int[] { 9, 10, 11, 16, 17, 21, 22 }); ThroneSittingFrame = 24; BedSleepingFrame = 25; SleepingOffset.X = 16; ReviveFrame = 26; DownedFrame = 27; PetrifiedFrame = 28; BackwardStanding = 29; BackwardRevive = 30; SpecificBodyFrontFramePositions = true; BodyFrontFrameSwap.Add(23, 0); //Left Hand LeftHandPoints.DefaultCoordinate = new Point((17 + 1) * 2, 31 * 2); LeftHandPoints.AddFramePoint2x(10, 7 + 1, 10); LeftHandPoints.AddFramePoint2x(11, 31 + 1, 9); LeftHandPoints.AddFramePoint2x(12, 43 + 1, 37); LeftHandPoints.AddFramePoint2x(16, 14 + 1, 4); LeftHandPoints.AddFramePoint2x(17, 34 + 1, 7); LeftHandPoints.AddFramePoint2x(18, 39 + 1, 19); LeftHandPoints.AddFramePoint2x(19, 34 + 1, 31); LeftHandPoints.AddFramePoint2x(21, 34, 14); LeftHandPoints.AddFramePoint2x(22, 43 + 1, 29); LeftHandPoints.AddFramePoint2x(26, 33 + 1, 41); //Right Hand RightHandPoints.DefaultCoordinate = new Microsoft.Xna.Framework.Point((31 - 1) * 2, 31 * 2); RightHandPoints.AddFramePoint2x(10, 9 - 1, 10); RightHandPoints.AddFramePoint2x(11, 33 - 1, 9); RightHandPoints.AddFramePoint2x(12, 45 - 1, 37); RightHandPoints.AddFramePoint2x(16, 16 - 1, 4); RightHandPoints.AddFramePoint2x(17, 36 - 1, 7); RightHandPoints.AddFramePoint2x(18, 41 - 1, 19); RightHandPoints.AddFramePoint2x(19, 37 - 1, 31); RightHandPoints.AddFramePoint2x(21, 36, 16); RightHandPoints.AddFramePoint2x(22, 45 - 1, 29); //Mount Position MountShoulderPoints.DefaultCoordinate = new Point(18 * 2, 14 * 2); MountShoulderPoints.AddFramePoint2x(11, 22, 20); MountShoulderPoints.AddFramePoint2x(12, 30, 27); MountShoulderPoints.AddFramePoint2x(20, 30, 27); MountShoulderPoints.AddFramePoint2x(21, 30, 27); MountShoulderPoints.AddFramePoint2x(22, 30, 27); MountShoulderPoints.AddFramePoint2x(24, 16, 20); MountShoulderPoints.AddFramePoint2x(25, 25, 28); //Left Arm Positions LeftArmOffSet.DefaultCoordinate = new Point(18 * 2, 15 * 2); //LeftArmOffSet.AddFramePoint2x(11, 21, 21); //LeftArmOffSet.AddFramePoint2x(12, 32, 30); //LeftArmOffSet.AddFramePoint2x(19, 32, 30); //Right Arm Positions RightArmOffSet.DefaultCoordinate = new Point(28 * 2, 15 * 2); //RightArmOffSet.AddFramePoint2x(11, 30, 21); //RightArmOffSet.AddFramePoint2x(12, 38, 32); //RightArmOffSet.AddFramePoint2x(19, 32, 30); //Sitting Position SittingPoint = new Point(23 * 2, 37 * 2); //21, 37 //Head Vanity Position HeadVanityPosition.DefaultCoordinate2x = new Point(24, 13 - 2); HeadVanityPosition.AddFramePoint2x(11, 27, 16 - 2); HeadVanityPosition.AddFramePoint2x(12, 36, 28 - 2); HeadVanityPosition.AddFramePoint2x(20, 36, 28 - 2); HeadVanityPosition.AddFramePoint2x(21, 36, 28 - 2); HeadVanityPosition.AddFramePoint2x(22, 36, 28 - 2); HeadVanityPosition.AddFramePoint2x(24, 2 - 1, 16 - 2); HeadVanityPosition.AddFramePoint2x(25, 26 - 1, 48 - 6); HeadVanityPosition.AddFramePoint2x(26, 31, 23 - 2); //Wing Position WingPosition.DefaultCoordinate2x = new Point(20, 23); RewardList(); GetTopics(); }
/// <summary> /// -Not very sociable. /// -Loves cooking. /// -Likes Vladimir. /// -Has flatulence problems. /// -Loves clear weather days. /// -Likes seeing people enjoy her food. /// -Is fat due to experimenting her own food, to see if It's good. /// </summary> public MinervaBase() { Name = "Minerva"; Description = "She's not very sociable, but is\na good cook. If you're feeling\nhungry, go see her to get food."; Size = GuardianSize.Large; Width = 26; Height = 90; DuckingHeight = 52; SpriteWidth = 96; SpriteHeight = 112; CompanionSlotWeight = 1.4f; Scale = 108f / 90f; Age = 19; SetBirthday(SEASON_WINTER, 9); Male = false; InitialMHP = 300; //1000 LifeCrystalHPBonus = 40; LifeFruitHPBonus = 20; Accuracy = 0.47f; Mass = 0.62f; MaxSpeed = 4.8f; Acceleration = 0.16f; SlowDown = 0.52f; MaxJumpHeight = 16; JumpSpeed = 7.60f; CanDuck = true; ReverseMount = false; DrinksBeverage = true; SetTerraGuardian(); CallUnlockLevel = 2; MoveInLevel = 3; PopularityContestsWon = 0; ContestSecondPlace = 0; ContestThirdPlace = 0; StandingFrame = 0; WalkingFrames = new int[] { 2, 3, 4, 5, 6, 7, 8, 9 }; PlayerMountedArmAnimation = JumpFrame = 10; HeavySwingFrames = new int[] { 21, 22, 23 }; ItemUseFrames = new int[] { 11, 12, 13, 14 }; DuckingFrame = 24; DuckingSwingFrames = new int[] { 25, 26, 27 }; SittingFrame = 16; ChairSittingFrame = 15; ThroneSittingFrame = 18; BedSleepingFrame = 17; SleepingOffset.X = 16; ReviveFrame = 20; DownedFrame = 19; //PetrifiedFrame = 28; BackwardStanding = 28; BackwardRevive = 29; InitialItems.Add(new ItemPair(Terraria.ID.ItemID.PearlwoodSword, 1)); InitialItems.Add(new ItemPair(Terraria.ID.ItemID.AmethystStaff, 1)); InitialItems.Add(new ItemPair(Terraria.ID.ItemID.BottledHoney, 5)); InitialItems.Add(new ItemPair(Terraria.ID.ItemID.BowlofSoup, 5)); SpecificBodyFrontFramePositions = true; BodyFrontFrameSwap.Add(15, 0); BodyFrontFrameSwap.Add(16, 0); RightArmFrontFrameSwap.Add(0, 0); RightArmFrontFrameSwap.Add(15, 1); RightArmFrontFrameSwap.Add(16, 1); RightArmFrontFrameSwap.Add(20, 2); RightArmFrontFrameSwap.Add(21, 3); SittingPoint2x = new Point(22, 43); MountShoulderPoints.DefaultCoordinate2x = new Point(18, 21); MountShoulderPoints.AddFramePoint2x(20, 23, 33); MountShoulderPoints.AddFramePoint2x(24, 18, 35); MountShoulderPoints.AddFramePoint2x(25, 18, 35); MountShoulderPoints.AddFramePoint2x(26, 18, 35); MountShoulderPoints.AddFramePoint2x(27, 18, 35); //Left Arm LeftHandPoints.AddFramePoint2x(11, 14, 7); LeftHandPoints.AddFramePoint2x(12, 36, 14); LeftHandPoints.AddFramePoint2x(13, 41, 26); LeftHandPoints.AddFramePoint2x(14, 33, 36); LeftHandPoints.AddFramePoint2x(20, 30, 47); LeftHandPoints.AddFramePoint2x(21, 21, 15); LeftHandPoints.AddFramePoint2x(22, 38, 22); LeftHandPoints.AddFramePoint2x(23, 34, 43); LeftHandPoints.AddFramePoint2x(25, 24, 19); LeftHandPoints.AddFramePoint2x(26, 34, 30); LeftHandPoints.AddFramePoint2x(27, 35, 45); //Right Arm RightHandPoints.AddFramePoint2x(11, 17, 7); RightHandPoints.AddFramePoint2x(12, 38, 14); RightHandPoints.AddFramePoint2x(13, 43, 26); RightHandPoints.AddFramePoint2x(14, 35, 36); RightHandPoints.AddFramePoint2x(20, 34, 47); RightHandPoints.AddFramePoint2x(21, 24, 15); RightHandPoints.AddFramePoint2x(22, 41, 22); RightHandPoints.AddFramePoint2x(23, 36, 43); RightHandPoints.AddFramePoint2x(25, 26, 19); RightHandPoints.AddFramePoint2x(26, 37, 30); RightHandPoints.AddFramePoint2x(27, 37, 45); //Vanity Position HeadVanityPosition.DefaultCoordinate2x = new Point(24, 17); HeadVanityPosition.AddFramePoint2x(20, 28, 28); HeadVanityPosition.AddFramePoint2x(23, 28, 22); HeadVanityPosition.AddFramePoint2x(24, 24, 31); HeadVanityPosition.AddFramePoint2x(25, 24, 31); HeadVanityPosition.AddFramePoint2x(26, 24, 31); HeadVanityPosition.AddFramePoint2x(27, 24, 31); SetDialogues(); SetRewards(); }
//Don't just copy and paste everything in this code. //Do mind that I'm not really a digifan, so take It easy if something is incorrect based on the anime/games. public GaomonBase() { Name = "Gaomon"; Description = "Came from another world by unknown ways."; //Set the description of the companion, that is shown when selecting this companion from your list. SpriteWidth = SpriteHeight = 64; //When creating a companion sprite sheet, never let It's total width or height exceed 2000, for some reason that causes bugs to XNA. FramesInRows = 20; //Set here the maximum number of frames a row will have, until skip the animation to the next row. //SpritesDirectory = ""; //Here, you can set the path from the mod root folder, until the folder this companion sprites are located. Since this companion didn't used a different directory pathing, I don't need to setup this. /// Still related to sprite directories. If you're making a custom companion, like a TerraGuardian, the default directory is: "Companions/Creatures". /// As for Terrarian companions, it's "Companions/Terrarians". /// I could have change the directory this companion location to "Companions/Digimon" instead, but due to this being a example companion, I didn't do that. Width = 18; //Hitbox Width based on the sprite center. Height = 32; //Hitbox Height based on sprite bottom. //DuckingHeight = 32; //Height when companion is crouching. SetTerraGuardian(); GroupID = MainMod.DigimonGroupID; //Set group ids AFTER you use SetTerraGuardian() or SetTerrarian(). Those methods overrides GroupID by default. Size = GuardianSize.Medium; //Things like the wind push from the sandstorm affecting the companion are related ot this. Age = 0; //Lorewise, give them some average age, for immersion. Due to this companion just appearing after you use the Digivice, literally It's age is 0 (beside I wont try explaining why he spawns on child stage). CanChangeGender = true; //Tells that the companion may be male or female. //Male = true; //Tells the companion gender. King and Queen Statue makes use of this. Some future dialogues may make use of It too. InitialMHP = 140; //480 - Initial Health the companion starts with. The 480 I placed on comment is the total health when all life crystals and life fruits the companion will have. It's good if you log It too. LifeCrystalHPBonus = 16; //How much max health bonus each life crystal will give. Remember that a maximum of 15 life crystals can be used by the companion. LifeFruitHPBonus = 6; //How much max health bonus each Life Fruit will give. Remember that a maximum of 20 life fruits can be used by the companion. //CalculateHealthToGive(480, 0.5f,0.5f); //If you are lazy to calculate the max health given by each life increasing item, you can use this method instead. //InitialMP = 20; //Initial MP the companion has. //ManaCrystalMPBonus = 20; //Extra MP the companion will get for using Mana Crystal. Remember that they can use up to 9. DodgeRate = 5; //Default dodge rate of the companion. Default is 0. BlockRate = 0; //Default block rate of the companion. Default is 0. DrinksBeverage = false; //Drinks alcoholic stuffs? CanDuck = false; //Tells if companion can crouch or not. ReverseMount = true; //Tells the game that the follower will mount on your character back, instead of the inverse. DontUseHeavyWeapons = true; //The companion will not use heavy weapons, like the heavy swords the mod adds. //There are other settings you can make use of, just check out GuardianBase class on TerraGuardians mod. CallUnlockLevel = 0; //Level necessary to be able to call your companion for help. 0 = always possible. 255 = most likelly never possible. //LootingUnlockLevel = 3; //Companion loot unlock level. //MaySellYourLoot = 4; //Loot selling unlock level. //MountUnlockLevel = 5; //Mount unlock level. //StopMindingAFK = 7; //Level necessary for the follower to stop minding afk. //MountDamageReductionLevel = 9; //Level to have a damage reduction when mounted on follower. //ControlUnlockLevel = 10; //Level to unlock companion control. //FriendshipBondUnlockLevel = 12; //Level to get status bonus based on friendship level. //FallDamageReductionLevel = 15; //Level to unlock fall damage reduction. StandingFrame = 0; WalkingFrames = new int[] { 1, 2, 3, 4, 5, 6, 7, 8 }; JumpFrame = 9; ItemUseFrames = new int[] { 10, 11, 12, 13 }; //Past here is optional, but animation bugs will happen If you don't make a sprite. (Ex:. Companion standing when you share mount) //For Sitting and Chair Sitting frames, sprite them on the same sitting point. //PlayerMountedArmAnimation = 0; //If ReverseMount is off, sets the frame the companion arm will be used for when the player is mounting on companion. By default, uses the jump frame. SittingFrame = 14; //Animation when companion is sitting on your mount. Also used by ReverseMount. Add a BodyFront frame for this, so the left(right) leg is shown in front of the player when sharing mount. ChairSittingFrame = 14; //Animation when companion is sitting on a chair. Same frame because both frames are used. ReviveFrame = 15; //Revive animation frame. DownedFrame = 16; //Downed = Knocked Out BedSleepingFrame = 17; //Sleeping animation for beds. ThroneSittingFrame = 18; //Animation when the companion is sitting on a throne. //DuckingFrame = 0; //Animation frame played when the companion is crouching. //DuckingSwingFrames = new int[] { 1, 2, 3}; //Attack animation frame for when the companion is ducking. 3 frames. Animation should be, Up, Up right, and Down right swing. On Up Right, set it somewhat above mouth, for when the companion uses potions. //PetrifiedFrame = 0; //Animation frame for when the companion is petrified. If there is no value set here, the game will freeze the animation, and apply some coloring to look like the follower is petrified. /*If you needed to move arrange the character sprite to fit the spritesheet, add the offset here. * For example, The bed is to the left of the spritesheet, based on the center of the sprite, add the number of pixels to the left * the bed is at. * Sprite is 64x64? Bed sprite is at 0. Set the SleepingOffset to 16, so It will discount 16 pixels from the animation.*/ SleepingOffset = new Microsoft.Xna.Framework.Point(0, 0); SittingPoint = new Microsoft.Xna.Framework.Point(16 * 2, 27 * 2); //The position where the companion will sit on mount or chair. Take in consideration the center of It's legs. //Mounted position (aka mount sitting point). //If isn't a ReverseMount, will tell the position the player will sit on in each frame. //If is a ReverseMount, will tell the position the companion will sit on when mounting on the player. MountShoulderPoints.DefaultCoordinate2x = new Microsoft.Xna.Framework.Point(16, 27); //When set to true, tells the game that sprites drawn in front player on special occasions are on specified frames. This helps save memory. SpecificBodyFrontFramePositions = true; //Tells that Body Front frame 14 is 0. BodyFrontFrameSwap.Add(14, 0); //LeftHand is the same as the arm drawn in front of the body. //Since here, is to setup the center position of each hand. This is used for item positioning and other functions. //AddFramePoint2x automatically multiplicates the dimensions by 2, so you can speed up a bit this part. LeftHandPoints.AddFramePoint2x(10, 12, 15); LeftHandPoints.AddFramePoint2x(11, 20, 21); LeftHandPoints.AddFramePoint2x(12, 21, 24); LeftHandPoints.AddFramePoint2x(13, 18, 27); //I recommend setting points for the hands on the revive animation. It may be useful in the future. LeftHandPoints.AddFramePoint2x(15, 18, 28); //RightHand is the same as the arm drawn behind the body. RightHandPoints.AddFramePoint2x(10, 17, 15); RightHandPoints.AddFramePoint2x(11, 22, 21); RightHandPoints.AddFramePoint2x(12, 23, 24); RightHandPoints.AddFramePoint2x(13, 20, 27); RightHandPoints.AddFramePoint2x(13, 21, 28); /*Setups the position of the vanity items on the companion head. You will most likelly want to test this right after setting up, since the result may not be what you want. * At least until you find the exact point that makes hats looks okay on your companions. * Give your companion a Wizard Hat, It is perfect for testing this.*/ HeadVanityPosition.DefaultCoordinate2x = new Microsoft.Xna.Framework.Point(16, 21); HeadVanityPosition.AddFramePoint2x(15, 18, 23); /*Sets the wing center position. * The mod automatically places It at the center of the companion sprite, but not always * It will be displayed correctly. */ //WingPosition.DefaultCoordinate2x = new Microsoft.Xna.Framework.Point(); WingPosition.AddFramePoint2x(15, 15, 25); //Links to companion specific rewards method. AddRewards(); //Links to a method containing the topics you can have with this companion. GetTopics(); }
public GlennBase() { Name = "Glenn"; Description = "Interessed in literature and games.\n" + "Can stay up all night due to that."; Size = GuardianSize.Small; Width = 14; Height = 38; SpriteWidth = 64; SpriteHeight = 56; Scale = 32f / 38; FramesInRows = 25; CompanionSlotWeight = 0.7f; //DuckingHeight = 54; Age = 11; SetBirthday(SEASON_WINTER, 25); Male = true; InitialMHP = 70; //280 LifeCrystalHPBonus = 10; LifeFruitHPBonus = 3; Accuracy = 0.88f; Mass = 0.31f; MaxSpeed = 4.80f; Acceleration = 0.18f; SlowDown = 0.9f; MaxJumpHeight = 12; JumpSpeed = 9.52f; DontUseHeavyWeapons = true; CanDuck = false; ReverseMount = true; SetTerraGuardian(); GroupID = TerraGuardianCaitSithGroupID; DodgeRate = 60; HurtSound = new SoundData(Terraria.ID.SoundID.NPCHit51); DeadSound = new SoundData(Terraria.ID.SoundID.NPCDeath54); CallUnlockLevel = 3; MoveInLevel = 0; PopularityContestsWon = 0; ContestSecondPlace = 0; ContestThirdPlace = 0; AddInitialItem(Terraria.ID.ItemID.SilverBroadsword, 1); AddInitialItem(Terraria.ID.ItemID.Shuriken, 250); AddInitialItem(Terraria.ID.ItemID.HealingPotion, 10); //Animation Frames StandingFrame = 0; WalkingFrames = new int[] { 1, 2, 3, 4, 5, 6, 7, 8 }; JumpFrame = 9; ItemUseFrames = new int[] { 10, 11, 12, 13 }; SittingFrame = PlayerMountedArmAnimation = 15; ChairSittingFrame = 14; ThroneSittingFrame = 16; BedSleepingFrame = 17; DownedFrame = 19; ReviveFrame = 18; //PetrifiedFrame = 23; BackwardStanding = 20; BackwardRevive = 21; SittingPoint2x = new Microsoft.Xna.Framework.Point(17, 21); SpecificBodyFrontFramePositions = true; BodyFrontFrameSwap.Add(14, 0); BodyFrontFrameSwap.Add(15, 0); //Left Arm LeftHandPoints.AddFramePoint2x(10, 14, 8); LeftHandPoints.AddFramePoint2x(11, 20, 13); LeftHandPoints.AddFramePoint2x(12, 22, 17); LeftHandPoints.AddFramePoint2x(13, 20, 22); LeftHandPoints.AddFramePoint2x(15, 18, 16); LeftHandPoints.AddFramePoint2x(18, 17, 22); //Right Arm RightHandPoints.AddFramePoint2x(10, 18, 8); RightHandPoints.AddFramePoint2x(11, 22, 13); RightHandPoints.AddFramePoint2x(12, 24, 17); RightHandPoints.AddFramePoint2x(13, 22, 22); RightHandPoints.AddFramePoint2x(15, 21, 16); RightHandPoints.AddFramePoint2x(18, 20, 22); //Head Vanity HeadVanityPosition.DefaultCoordinate2x = new Microsoft.Xna.Framework.Point(16, 12 + 2); HeadVanityPosition.AddFramePoint2x(14, 16, 10 + 2); HeadVanityPosition.AddFramePoint2x(15, 16, 10 + 2); HeadVanityPosition.AddFramePoint2x(16, -1000, -1000); HeadVanityPosition.AddFramePoint2x(18, 16, 14 + 2); HeadVanityPosition.AddFramePoint2x(19, 22, 23 + 2); }
public GreenBase() { Name = "Green"; //Jochen Green Description = "Treated many TerraGuardians in the Ether Realm,\nhis newest challenge now is on the Terra Realm."; Size = GuardianSize.Large; Width = 24; Height = 86; //DuckingHeight = 52; SpriteWidth = 96; SpriteHeight = 96; Scale = 89f / 86; CompanionSlotWeight = 1.15f; DefaultTactic = CombatTactic.Snipe; Age = 31; SetBirthday(SEASON_SPRING, 4); Male = true; InitialMHP = 170; //895 LifeCrystalHPBonus = 15; LifeFruitHPBonus = 25; Accuracy = 0.6f; Mass = 0.36f; MaxSpeed = 5.15f; Acceleration = 0.21f; SlowDown = 0.39f; //MaxJumpHeight = 15; //JumpSpeed = 7.08f; CanDuck = false; ReverseMount = false; DrinksBeverage = true; DontUseHeavyWeapons = true; SetTerraGuardian(); CallUnlockLevel = 3; MountUnlockLevel = 6; PopularityContestsWon = 0; ContestSecondPlace = 0; ContestThirdPlace = 1; AddInitialItem(Terraria.ID.ItemID.FlintlockPistol, 1); AddInitialItem(Terraria.ID.ItemID.Mushroom, 3); AddInitialItem(Terraria.ID.ItemID.MeteorShot, 50); //Animation Frames StandingFrame = 0; WalkingFrames = new int[] { 1, 2, 3, 4, 5, 6, 7, 8 }; PlayerMountedArmAnimation = JumpFrame = 9; ItemUseFrames = new int[] { 10, 11, 12, 13 }; SittingFrame = 15; ChairSittingFrame = 14; DrawLeftArmInFrontOfHead.AddRange(new int[] { 9, 10, 11, 16, 17, 21, 22 }); ThroneSittingFrame = 17; BedSleepingFrame = 16; SleepingOffset.X = 16; ReviveFrame = 18; DownedFrame = 19; BackwardStanding = 20; BackwardRevive = 21; SpecificBodyFrontFramePositions = true; BodyFrontFrameSwap.Add(14, 0); BodyFrontFrameSwap.Add(15, 0); RightArmFrontFrameSwap.Add(14, 0); RightArmFrontFrameSwap.Add(15, 1); SittingPoint2x = new Microsoft.Xna.Framework.Point(21, 40); //19 //Mount MountShoulderPoints.DefaultCoordinate2x = new Microsoft.Xna.Framework.Point(18, 15); MountShoulderPoints.AddFramePoint2x(14, 17, 20); MountShoulderPoints.AddFramePoint2x(17, 17, 15); MountShoulderPoints.AddFramePoint2x(18, 29, 21); MountShoulderPoints.AddFramePoint2x(21, 29, 21); //Left Arm LeftHandPoints.AddFramePoint2x(10, 12, 3); LeftHandPoints.AddFramePoint2x(11, 33, 11); LeftHandPoints.AddFramePoint2x(12, 37, 21); LeftHandPoints.AddFramePoint2x(13, 30, 29); LeftHandPoints.AddFramePoint2x(15, 29, 31); LeftHandPoints.AddFramePoint2x(18, 37, 41); LeftHandPoints.AddFramePoint2x(18, 41, 41); //Right Arm RightHandPoints.AddFramePoint2x(10, 25, 3); RightHandPoints.AddFramePoint2x(11, 37, 11); RightHandPoints.AddFramePoint2x(12, 39, 21); RightHandPoints.AddFramePoint2x(13, 33, 29); RightHandPoints.AddFramePoint2x(18, 41, 41); RightHandPoints.AddFramePoint2x(18, 37, 41); //Head Vanity Position HeadVanityPosition.DefaultCoordinate2x = new Microsoft.Xna.Framework.Point(23, 12); HeadVanityPosition.AddFramePoint2x(14, 23, 17); HeadVanityPosition.AddFramePoint2x(15, 23, 17); HeadVanityPosition.AddFramePoint2x(18, 36, 30); HeadVanityPosition.AddFramePoint2x(21, 36, 30); }
public AlexanderBase() { Name = "Alexander"; Description = "Member of a mystery solving gang,\nuntil they disappeared, and now he looks for them.\nDoesn't miss a clue."; Size = GuardianSize.Large; DefaultTactic = CombatTactic.Charge; Width = 28; Height = 86; DuckingHeight = 62; SpriteWidth = 96; SpriteHeight = 96; Scale = 94f / 86; FramesInRows = 20; CompanionSlotWeight = 1.2f; Age = 19; SetBirthday(SEASON_SUMMER, 4); Male = true; //CalculateHealthToGive(1200, 0.45f, 0.6f); //Lc: 95, LF: 16 InitialMHP = 375; //1200 LifeCrystalHPBonus = 35; LifeFruitHPBonus = 15; Accuracy = 0.72f; Mass = 0.45f; MaxSpeed = 5.1f; Acceleration = 0.19f; SlowDown = 0.39f; MaxJumpHeight = 15; JumpSpeed = 7.16f; CanDuck = true; ReverseMount = false; DrinksBeverage = true; SetTerraGuardian(); //HurtSound = new SoundData(Terraria.ID.SoundID.DD2_KoboldHurt); //DeadSound = new SoundData(Terraria.ID.SoundID.DD2_KoboldDeath); PopularityContestsWon = 0; ContestSecondPlace = 0; ContestThirdPlace = 0; AddInitialItem(Terraria.ID.ItemID.Muramasa, 1); AddInitialItem(Terraria.ID.ItemID.HealingPotion, 5); //Animation Frames StandingFrame = 0; WalkingFrames = new int[] { 1, 2, 3, 4, 5, 6, 7, 8 }; JumpFrame = PlayerMountedArmAnimation = 9; HeavySwingFrames = new int[] { 14, 15, 16 }; ItemUseFrames = new int[] { 10, 11, 12, 13 }; DuckingFrame = 23; DuckingSwingFrames = new int[] { 24, 25, 26 }; SittingFrame = 17; ChairSittingFrame = 18; //DrawLeftArmInFrontOfHead.AddRange(new int[] { 13, 14, 15, 16 }); ThroneSittingFrame = 20; BedSleepingFrame = 19; DownedFrame = 21; ReviveFrame = 22; BackwardStanding = 31; BackwardRevive = 32; SpecificBodyFrontFramePositions = true; BodyFrontFrameSwap.Add(17, 0); BodyFrontFrameSwap.Add(18, 0); BodyFrontFrameSwap.Add(27, 1); BodyFrontFrameSwap.Add(28, 1); BodyFrontFrameSwap.Add(29, 1); BodyFrontFrameSwap.Add(30, 2); SleepingOffset.X = 16; SittingPoint = new Microsoft.Xna.Framework.Point(22 * 2, 35 * 2); //Mounted Position MountShoulderPoints.DefaultCoordinate2x = new Microsoft.Xna.Framework.Point(17, 14); MountShoulderPoints.AddFramePoint2x(15, 23, 19); MountShoulderPoints.AddFramePoint2x(16, 29, 26); MountShoulderPoints.AddFramePoint2x(17, 25, 13); MountShoulderPoints.AddFramePoint2x(18, 25, 13); MountShoulderPoints.AddFramePoint2x(20, 16, 21); MountShoulderPoints.AddFramePoint2x(22, 24, 24); MountShoulderPoints.AddFramePoint2x(23, 24, 24); MountShoulderPoints.AddFramePoint2x(24, 24, 24); MountShoulderPoints.AddFramePoint2x(25, 24, 24); MountShoulderPoints.AddFramePoint2x(26, 24, 24); //Left Arm LeftHandPoints.AddFramePoint2x(10, 14, 2); LeftHandPoints.AddFramePoint2x(11, 34, 9); LeftHandPoints.AddFramePoint2x(12, 38, 21); LeftHandPoints.AddFramePoint2x(13, 33, 29); LeftHandPoints.AddFramePoint2x(14, 34, 2); LeftHandPoints.AddFramePoint2x(15, 41, 25); LeftHandPoints.AddFramePoint2x(16, 38, 41); LeftHandPoints.AddFramePoint2x(22, 39, 37); LeftHandPoints.AddFramePoint2x(24, 39, 18); LeftHandPoints.AddFramePoint2x(25, 43, 30); LeftHandPoints.AddFramePoint2x(26, 35, 40); //Right Arm RightHandPoints.AddFramePoint2x(10, 23, 2); RightHandPoints.AddFramePoint2x(11, 38, 9); RightHandPoints.AddFramePoint2x(12, 41, 21); RightHandPoints.AddFramePoint2x(13, 36, 29); RightHandPoints.AddFramePoint2x(14, 36, 2); RightHandPoints.AddFramePoint2x(15, 43, 25); RightHandPoints.AddFramePoint2x(16, 40, 41); RightHandPoints.AddFramePoint2x(22, 44, 37); RightHandPoints.AddFramePoint2x(24, 41, 18); RightHandPoints.AddFramePoint2x(25, 45, 30); RightHandPoints.AddFramePoint2x(26, 37, 40); //Hat Position HeadVanityPosition.DefaultCoordinate2x = new Microsoft.Xna.Framework.Point(23 + 1, 8 + 2); HeadVanityPosition.AddFramePoint2x(15, 29 + 1, 15 + 2); HeadVanityPosition.AddFramePoint2x(16, 36 + 1, 25 + 2); HeadVanityPosition.AddFramePoint2x(17, 21 + 1, 8 + 2); HeadVanityPosition.AddFramePoint2x(18, 21 + 1, 8 + 2); HeadVanityPosition.AddFramePoint2x(22, 31 + 1, 21 + 2); HeadVanityPosition.AddFramePoint2x(23, 31 + 1, 21 + 2); HeadVanityPosition.AddFramePoint2x(24, 31 + 1, 21 + 2); HeadVanityPosition.AddFramePoint2x(25, 31 + 1, 21 + 2); HeadVanityPosition.AddFramePoint2x(26, 31 + 1, 21 + 2); }
public DaphneBase() { Name = "Daphne"; Description = "A Terrarians' guardian angel.\nShe can help you meanwhile."; Size = GuardianSize.Large; Width = 35 * 2; Height = 33 * 2; DuckingHeight = 52; SpriteWidth = 96; SpriteHeight = 96; Age = 53; SetBirthday(SEASON_SUMMER, 17); Male = false; InitialMHP = 175; //1125 LifeCrystalHPBonus = 30; LifeFruitHPBonus = 25; Accuracy = 0.36f; Mass = 0.7f; MaxSpeed = 5.65f; Acceleration = 0.33f; SlowDown = 0.83f; MaxJumpHeight = 15; JumpSpeed = 6.71f; CanDuck = false; ReverseMount = false; DrinksBeverage = false; DontUseRightHand = true; SetTerraGuardian(); GroupID = GiantDogGuardianGroupID; //HurtSound = new SoundData(Terraria.ID.SoundID.DD2_KoboldHurt); //DeadSound = new SoundData(Terraria.ID.SoundID.DD2_KoboldDeath); CallUnlockLevel = 0; VladimirBase.AddCarryBlacklist(Daphne); //Animation Frames StandingFrame = 0; WalkingFrames = new int[] { 1, 2, 3, 4, 5, 6, 7, 8 }; JumpFrame = 9; //HeavySwingFrames = new int[] { 10, 11, 12 }; ItemUseFrames = new int[] { 10, 11, 12, 13 }; //DuckingFrame = 20; //DuckingSwingFrames = new int[] { 21, 22, 12 }; SittingFrame = 15; ChairSittingFrame = 14; SittingItemUseFrames = new int[] { 16, 17, 18 }; //DrawLeftArmInFrontOfHead.AddRange(new int[] { 10, 11, 15 }); ThroneSittingFrame = 14; BedSleepingFrame = 19; SleepingOffset.X = 16; ReviveFrame = 21; DownedFrame = 20; BackwardStanding = 22; BackwardRevive = 23; SpecificBodyFrontFramePositions = true; BodyFrontFrameSwap.Add(15, 0); BodyFrontFrameSwap.Add(16, 0); BodyFrontFrameSwap.Add(17, 0); BodyFrontFrameSwap.Add(18, 0); SittingPoint2x = new Microsoft.Xna.Framework.Point(20, 40); MountShoulderPoints.DefaultCoordinate2x = new Microsoft.Xna.Framework.Point(28, 24); //Left Arm LeftHandPoints.AddFramePoint2x(10, 39, 31); LeftHandPoints.AddFramePoint2x(11, 42, 32); LeftHandPoints.AddFramePoint2x(12, 43, 38); LeftHandPoints.AddFramePoint2x(13, 41, 42); LeftHandPoints.AddFramePoint2x(15, 25, 33); LeftHandPoints.AddFramePoint2x(16, 30, 18); LeftHandPoints.AddFramePoint2x(17, 32, 25); LeftHandPoints.AddFramePoint2x(18, 29, 30); LeftHandPoints.AddFramePoint2x(21, 40, 40); //Right Arm //Head Equipment Position HeadVanityPosition.DefaultCoordinate2x = new Microsoft.Xna.Framework.Point(38, 21); HeadVanityPosition.AddFramePoint2x(15, 25, 16); HeadVanityPosition.AddFramePoint2x(16, 25, 16); HeadVanityPosition.AddFramePoint2x(17, 25, 16); HeadVanityPosition.AddFramePoint2x(18, 25, 16); HeadVanityPosition.AddFramePoint2x(19, 40, 39); HeadVanityPosition.AddFramePoint2x(20, 40, 39); }
public FearBase() : base(FearPigGuardianID) { Name = "Fear"; PossibleNames = new string[] { "Frighty", "Dread", "Anxie", "Pani" }; Description = "One of the emotion pieces fragments\nof a TerraGuardian. Very scaredy."; Width = 10 * 2; Height = 27 * 2; SpriteWidth = 64; SpriteHeight = 64; FramesInRows = 31; //DuckingHeight = 54; //Each pig should definitelly have the same size, birthday age and time, so I moved those infos. Genderless = true; InitialMHP = 110; //320 LifeCrystalHPBonus = 15; LifeFruitHPBonus = 5; Accuracy = 0.67f; Mass = 0.40f; MaxSpeed = 3.62f; Acceleration = 0.12f; SlowDown = 0.35f; MaxJumpHeight = 12; JumpSpeed = 9.76f; CanDuck = false; ReverseMount = true; DontUseHeavyWeapons = true; DrinksBeverage = false; SetTerraGuardian(); MountUnlockLevel = 255; InitialItems.Add(new ItemPair(Terraria.ID.ItemID.PurplePhaseblade, 1)); InitialItems.Add(new ItemPair(Terraria.ID.ItemID.Handgun, 1)); InitialItems.Add(new ItemPair(Terraria.ID.ItemID.MusketBall, 250)); InitialItems.Add(new ItemPair(Terraria.ID.ItemID.LesserHealingPotion, 10)); RightArmFrontFrameSwap.Add(0, 0); RightArmFrontFrameSwap.Add(1, 0); RightArmFrontFrameSwap.Add(2, 0); RightArmFrontFrameSwap.Add(3, 1); RightArmFrontFrameSwap.Add(4, 1); RightArmFrontFrameSwap.Add(5, 0); RightArmFrontFrameSwap.Add(6, 0); RightArmFrontFrameSwap.Add(7, 1); RightArmFrontFrameSwap.Add(8, 1); RightArmFrontFrameSwap.Add(19, 0); //Animation Frames //Left Arm LeftHandPoints.AddFramePoint2x(10, 10, 2); LeftHandPoints.AddFramePoint2x(11, 22, 9); LeftHandPoints.AddFramePoint2x(12, 24, 17); LeftHandPoints.AddFramePoint2x(13, 20, 22); LeftHandPoints.AddFramePoint2x(17, 25, 27); //Right Arm RightHandPoints.AddFramePoint2x(10, 16, 2); RightHandPoints.AddFramePoint2x(11, 25, 9); RightHandPoints.AddFramePoint2x(12, 27, 17); RightHandPoints.AddFramePoint2x(13, 23, 22); RightHandPoints.AddFramePoint2x(17, 27, 27); //Headgear HeadVanityPosition.DefaultCoordinate2x = new Point(16 + 2, 11); HeadVanityPosition.AddFramePoint2x(14, 16 + 2, 9); HeadVanityPosition.AddFramePoint2x(17, 23 + 2, 18); HeadVanityPosition.AddFramePoint2x(22, 16 + 2, 9); HeadVanityPosition.AddFramePoint2x(25, 23 + 2, 18); }
/// <summary> /// -Very playful. /// -Blames himself for his old partner's demise. /// -Bad at protecting people. /// -Extremely sociable. /// </summary> public AlexBase() { Name = "Alex"; Description = "Your new best friend - a very playful one."; Size = GuardianSize.Large; Width = 68; Height = 62; DuckingHeight = 52; SpriteWidth = 96; SpriteHeight = 96; Age = 42; //Age, 42. Mental Age, Real Age / 9 SetBirthday(SEASON_WINTER, 19); Male = true; InitialMHP = 175; //1125 LifeCrystalHPBonus = 30; LifeFruitHPBonus = 25; Accuracy = 0.36f; Mass = 0.7f; MaxSpeed = 5.65f; Acceleration = 0.33f; SlowDown = 0.83f; MaxJumpHeight = 15; JumpSpeed = 6.71f; CanDuck = false; ReverseMount = false; DrinksBeverage = false; DontUseRightHand = false; ForceWeaponUseOnMainHand = true; SetTerraGuardian(); GroupID = GiantDogGuardianGroupID; //HurtSound = new SoundData(Terraria.ID.SoundID.DD2_KoboldHurt); //DeadSound = new SoundData(Terraria.ID.SoundID.DD2_KoboldDeath); CallUnlockLevel = 0; VladimirBase.AddCarryBlacklist(Alex); PopularityContestsWon = 0; ContestSecondPlace = 0; ContestThirdPlace = 4; AddInitialItem(Terraria.ID.ItemID.TungstenBroadsword, 1); AddInitialItem(Terraria.ID.ItemID.HealingPotion, 5); //Animation Frames StandingFrame = 0; WalkingFrames = new int[] { 1, 2, 3, 4, 5, 6, 7, 8 }; JumpFrame = 9; //HeavySwingFrames = new int[] { 10, 11, 12 }; ItemUseFrames = new int[] { 10, 11, 12, 13 }; //DuckingFrame = 20; //DuckingSwingFrames = new int[] { 21, 22, 12 }; SittingFrame = 14; ChairSittingFrame = 31; SittingItemUseFrames = new int[] { 15, 16, 17 }; DrawLeftArmInFrontOfHead.AddRange(new int[] { 10, 11, 15 }); ThroneSittingFrame = 22; BedSleepingFrame = 23; SleepingOffset.X = 16; ReviveFrame = 20; DownedFrame = 29; PetrifiedFrame = 30; BackwardStanding = 32; BackwardRevive = 33; SpecificBodyFrontFramePositions = true; BodyFrontFrameSwap.Add(14, 0); //for(int f = 0; f < 9; f++) // RightArmFrontFrameSwap.Add(f, 0); //RightArmFrontFrameSwap.Add(99, 1); //RightArmFrontFrameSwap.Add(100, 2); //Mount Player Sit Position MountShoulderPoints.DefaultCoordinate2x = new Point(30, 25); MountShoulderPoints.AddFramePoint2x(14, 13, 20); SittingPoint = new Point(20 * 2, 41 * 2); //14, 40 > 20,41 //Left Arm Item Position LeftHandPoints.AddFramePoint2x(10, 37, 28); LeftHandPoints.AddFramePoint2x(11, 41, 31); LeftHandPoints.AddFramePoint2x(12, 42, 37); LeftHandPoints.AddFramePoint2x(13, 39, 43); LeftHandPoints.AddFramePoint2x(15, 24 + 6, 14 + 1); LeftHandPoints.AddFramePoint2x(16, 29 + 6, 27 + 1); LeftHandPoints.AddFramePoint2x(17, 22 + 6, 36 + 1); LeftHandPoints.AddFramePoint2x(19, 38, 47); LeftHandPoints.AddFramePoint2x(20, 38, 47); LeftHandPoints.AddFramePoint2x(21, 38, 47); LeftHandPoints.AddFramePoint2x(24, 38, 47); LeftHandPoints.AddFramePoint2x(25, 38, 47); LeftHandPoints.AddFramePoint2x(26, 38, 47); LeftHandPoints.AddFramePoint2x(27, 38, 47); LeftHandPoints.AddFramePoint2x(28, 38, 47); //Mouth Item Position RightHandPoints.DefaultCoordinate2x = new Point(43, 29); RightHandPoints.AddFramePoint2x(2, 31, 24); //Wing Position WingPosition.DefaultCoordinate2x = new Point(30, 27); WingPosition.AddFramePoint2x(14, 17 + 6, 25 + 1); WingPosition.AddFramePoint2x(18, 17 + 6, 25 + 1); //Helmet Position HeadVanityPosition.DefaultCoordinate2x = new Point(38, 23); HeadVanityPosition.AddFramePoint2x(14, 21 + 6, 17 + 1); HeadVanityPosition.AddFramePoint2x(15, 21 + 6, 17 + 1); HeadVanityPosition.AddFramePoint2x(16, 21 + 6, 17 + 1); HeadVanityPosition.AddFramePoint2x(17, 21 + 6, 17 + 1); HeadVanityPosition.AddFramePoint2x(18, 21 + 6, 17 + 1); HeadVanityPosition.AddFramePoint2x(22, 23, 17); HeadVanityPosition.AddFramePoint2x(19, -1000, -1000); HeadVanityPosition.AddFramePoint2x(20, -1000, -1000); HeadVanityPosition.AddFramePoint2x(21, -1000, -1000); HeadVanityPosition.AddFramePoint2x(19, -1000, -1000); HeadVanityPosition.AddFramePoint2x(24, -1000, -1000); HeadVanityPosition.AddFramePoint2x(25, -1000, -1000); HeadVanityPosition.AddFramePoint2x(26, -1000, -1000); HeadVanityPosition.AddFramePoint2x(27, -1000, -1000); HeadVanityPosition.AddFramePoint2x(28, -1000, -1000); AddSkinsAndOutfits(); }