Пример #1
0
        public SkyGuyBalloon(float layer) : base(new Stats(0, 1, 0, 0, 0))
        {
            Name  = "Balloon";
            Layer = layer;

            ChangeHeightState(Enumerations.HeightStates.Airborne);

            //Never show the Balloon's HP
            this.AddIntAdditionalProperty(Enumerations.AdditionalProperty.NeverShowHP, 1);

            //The Balloon is immune to every Status Effect
            Enumerations.StatusTypes[] statusTypes = EnumUtility.GetValues <Enumerations.StatusTypes> .EnumValues;
            for (int i = 0; i < statusTypes.Length; i++)
            {
                EntityProperties.AddStatusProperty(statusTypes[i], new StatusPropertyHolder(0d, 0, 1));
            }

            EntityProperties.SetCustomTargeting(CustomTargeting);

            LoadAnimations();
        }