Esempio n. 1
0
        public Rm_ClassDefinition()
        {
            ID = Guid.NewGuid().ToString();

            ApplicableRaceID    = "";
            ApplicableSubRaceID = "";
            ApplicableGenderID  = "";
            ApplicableClassIDs  = new List <StringField>();

            ExpDefinitionID      = Rmh_Experience.PlayerExpDefinitionID;
            Name                 = "Unnamed Class";
            Description          = "A strong combatant.";
            ClassPrefabPath      = "";
            UnarmedAttackRange   = 1.5f;
            UnarmedAttackSpeed   = 2.0f;
            UnarmedAttackDamage  = 1;
            AutoAttackPrefabPath = "";
            AttackStyle          = AttackStyle.Melee;
            StartingScene        = "";
            StartingGold         = 0;
            ImagePath            = "";

            AnimationType    = RPGAnimationType.Legacy;
            LegacyAnimations = new LegacyAnimation();

            ProjectileTravelSound = new AudioContainer();
            AutoAttackImpactSound = new AudioContainer();
            ProjectileSpeed       = 10f;

            HasStartingPet = false;
            StartingPet    = "";

            StartingAttributes     = new List <Rm_AsvtAmount>();
            StartingStats          = new List <Rm_AsvtAmountFloat>();
            StartingVitals         = new List <Rm_AsvtAmount>();
            StartingTraitLevels    = new List <Rm_AsvtAmount>();
            StartingItems          = new List <LootDefinition>();
            StartingEquippedWeapon = new StartEquipDefinition();
            StartingEquipped       = new List <StartEquipDefinition>();

            AttributePerLevel         = new List <Rm_AsvtAmount>();
            StartingSkillIds          = new List <string>();
            StartingTalentIds         = new List <string>();
            SkillMetaImmunitiesID     = new List <string>();
            SkillMetaSusceptibilities = new List <SkillMetaSusceptibility>();

            EquipmentInfo        = new EquipmentInfo();
            VisualCustomisations = new List <VisualCustomisation>();
        }
Esempio n. 2
0
        private static void UpdateLegacyAnimation(LegacyAnimation lAnim)
        {
            lAnim.UnarmedAnim.RPGAnimationSet     = RPGAnimationSet.Core;
            lAnim.WalkAnim.RPGAnimationSet        = RPGAnimationSet.Core;
            lAnim.WalkBackAnim.RPGAnimationSet    = RPGAnimationSet.Core;
            lAnim.RunAnim.RPGAnimationSet         = RPGAnimationSet.Core;
            lAnim.JumpAnim.RPGAnimationSet        = RPGAnimationSet.Core;
            lAnim.StrafeRightAnim.RPGAnimationSet = RPGAnimationSet.Core;
            lAnim.StrafeLeftAnim.RPGAnimationSet  = RPGAnimationSet.Core;
            lAnim.TurnRightAnim.RPGAnimationSet   = RPGAnimationSet.Core;
            lAnim.TurnLeftAnim.RPGAnimationSet    = RPGAnimationSet.Core;
            lAnim.IdleAnim.RPGAnimationSet        = RPGAnimationSet.Core;
            lAnim.CombatIdleAnim.RPGAnimationSet  = RPGAnimationSet.Core;
            lAnim.TakeHitAnim.RPGAnimationSet     = RPGAnimationSet.Core;
            lAnim.FallAnim.RPGAnimationSet        = RPGAnimationSet.Core;
            lAnim.DeathAnim.RPGAnimationSet       = RPGAnimationSet.Core;
            lAnim.KnockBackAnim.RPGAnimationSet   = RPGAnimationSet.Core;
            lAnim.KnockUpAnim.RPGAnimationSet     = RPGAnimationSet.Core;

            foreach (var anim in lAnim.DefaultAttackAnimations)
            {
                anim.RPGAnimationSet = RPGAnimationSet.DefaultAttack;
            }
            foreach (var anim in lAnim.Default2HAttackAnimations)
            {
                anim.RPGAnimationSet = RPGAnimationSet.DefaultAttack;
            }
            foreach (var anim in lAnim.DefaultDWAttackAnimations)
            {
                anim.RPGAnimationSet = RPGAnimationSet.DefaultAttack;
            }

            foreach (var anim in lAnim.WeaponAnimations)
            {
                foreach (var normAnim in anim.Animations)
                {
                    normAnim.RPGAnimationSet = RPGAnimationSet.WeaponTypeAttack;
                }
                foreach (var dwAnim in anim.DualWieldAnimations)
                {
                    dwAnim.RPGAnimationSet = RPGAnimationSet.WeaponTypeAttack;
                }
            }
        }