Ejemplo n.º 1
0
        public Skill()
        {
            ID                = Guid.NewGuid().ToString();
            Name              = "New Skill";
            AllClasses        = true;
            Unlocked          = true;
            CurrentRank       = 0;
            MaxRank           = 1;
            AnimationsToUse   = new List <SkillAnimationDefinition>();
            SkillStatistics   = new List <SkillStatistics>();
            MinCastRange      = 0.0f;
            CastRange         = 5.0f;
            LandTime          = 0.1F;
            UseResourceOnCast = true;
            MovementType      = SkillMovementType.StayInPlace;
            MoveToSpeed       = 25f;
            JumpToHeight      = 5.0f;
            ClassIDs          = new List <string>();
            SkillMetaID       = "";
            UpgradeType       = Rm_RPGHandler.Instance.Combat.DefaultUpgradeType;
            Image             = new ImageContainer();
            CastingSound      = new AudioContainer();
            Sound             = new AudioContainer();
            ImpactSound       = new AudioContainer();
            RequiredSkills    = new List <StringField>();

            AutomaticallyUnlockAtLevel = false;
            LevelToAutomaticallyUnlock = 1;
        }
Ejemplo n.º 2
0
        public Rmh_Combat()
        {
            DefaultUpgradeType   = SkillUpgradeType.SkillPoints;
            TargetStyle          = TargetStyle.ManualTarget;
            ScaleSkillMoveByCast = true;

            FloatSpeed           = 2.0f;
            FloatDuration        = 1.5f;
            FloatDistBetweenVals = 0.3f;

            AggroRadius = 25.0f;

            SmartCastSkills = false;

            AutomaticallyScaleAOE = false;

            SkipEvaluatingDmgWithNullAttack = true;

            EnableTauntSystem       = true;
            NPCsCanFight            = true;
            CanAttackNPcs           = true;
            CanAttackUnkillableNPCs = true;
            ShadersToLerp           = new List <ShaderLerpInfo>();
            SkillTypeNames          = new List <SkillTypeName>();
            var skillEnumValues = Enum.GetValues(typeof(SkillType)) as SkillType[];

            for (var i = 0; i < skillEnumValues.Length; i++)
            {
                SkillTypeNames.Add(new SkillTypeName()
                {
                    SkillType = skillEnumValues[i],
                    Name      = skillEnumValues[i].ToString().Replace('_', ' ')
                });
            }

            SkillMeta             = new List <SkillMetaDefinition>();
            MetaAppliesToHealing  = true;
            SelectedTexture       = new ImageContainer();
            SelectedCombatTexture = new ImageContainer();
            CastAreaTexture       = new ImageContainer();

            DefaultProjectilePrefabPath = "RPGMakerAssets/DefaultProjectilePrefab";
            DefaultMeleePrefabPath      = "RPGMakerAssets/DefaultMeleePrefab";

            _castAreaColorArray = new [] { Color.blue.r, Color.blue.g, Color.blue.b, Color.blue.a };
            SkillBarSlots       = 9;
            AllowItemsOnBar     = true;
        }
Ejemplo n.º 3
0
        public Talent()
        {
            ID              = Guid.NewGuid().ToString();
            Name            = "New Talent";
            CurrentRank     = 0;
            MaxRank         = 1;
            Image           = new ImageContainer();
            AllClasses      = true;
            ClassIDs        = new List <string>();
            RequiredTalents = new List <StringField>();
            talentEffects   = new List <TalentEffect>();
            UpgradeType     = SkillUpgradeType.SkillPoints;
            TraitIDToLevel  = "";


            AutomaticallyUnlockAtLevel = false;
            LevelToAutomaticallyUnlock = 1;
        }