예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
        /// <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);
        }
예제 #4
0
        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); });
        }
예제 #5
0
        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);
        }
예제 #6
0
        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);
        }
예제 #7
0
        /// <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();
        }
예제 #8
0
        /// <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();
        }
예제 #9
0
        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);
        }
예제 #10
0
        /// <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();
        }
예제 #11
0
        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);
        }