Exemplo n.º 1
0
        public CharacterStats()
        {
            Equipment = new EquipmentSlots();

            Level = 1;
            Speed = 1f;
            MaxStamina = 100;
            Stamina = 100;
            AttackSpeedModifier = 100;
            ArmorModifier = 100;
            MagicResModifier = 100;
            CriticalChanceModifier = 0;
            SpeakingRadius = 100f;
            VisionAngle = 100f;
            VisionRange = 300f;
        }
Exemplo n.º 2
0
        private void StartupVariables()
        {
            RunningCost = 10;
            Equipment = new EquipmentSlots();
            Stats = new CharacterStats();
            Stats.Equipment = Equipment;
            CollisionRadius = 25f;
            movementInterval = 20f;
            AttackDelay = 300;
            Class = new ClassInformation();
            Skills = new List<Skill>();
            StatusEffects = new List<StatusEffect>();
            OnHitEffects = new List<StatusEffect>();
            Inventory = new Inventory();
            ComboManager = new ComboManager {Attacks = 2, CurrentAttackIndex = 0};

            Melee = new Weapon
            {
                AttackAngle = 180,
                AttackRange = 30,
                AttackPower = 5,
                Cooldown = 700f,
                Name = "None"
            };

            Facing = Direction.Down;
            Behavior = new BehaviorEngine();
            Name = string.Empty;
            ActionState = ActionState.Idle;
            IsAlive = true;
        }