public Monster(int id, int level, string name, Type primary, Type secondary, int[] _base)
    {
        this.playerID  = 0;
        this.id        = id;
        this.level     = level;
        this.name      = name;
        this.primary   = primary;
        this.secondary = secondary;
        baseStats      = _base;
        levelStats     = new int[] { 0, 0, 0, 0, 0, 0, 0, 0 };
        runedStats     = new int[] { 0, 0, 0, 0, 0, 0, 0, 0 };
        matchStats     = new int[] { 0, 0, 0, 0, 0, 0, 0, 0 };
        currentStats   = new int[] { 0, 0, 0, 0, 0, 0, 0, 0 };
        statusEffects  = new List <StatusEffect>();

        effectModifiers = new float[8] {
            1f, 1f, 1f, 1f, 1f, 1f, 1f, 1f
        };
        equipment = new Gear[6] {
            null, null, null, null, null, null
        };
        //CurrentLevel = new Stats();
        CalculateCurrentLevelStats();
        attackBar = new AttackBar();
        skills    = new Skill[4] {
            null, null, null, null
        };
    }
    public Monster()
    {
        playerID  = 0;
        name      = "DEFAULT";
        level     = 1;
        primary   = Type.Fire;
        secondary = Type.Fire;
        //Base = new Stats();
        baseStats     = new int[] { 0, 0, 0, 0, 0, 0 };
        levelStats    = new int[] { 0, 0, 0, 0, 0, 0 };
        runedStats    = new int[] { 0, 0, 0, 0, 0, 0 };
        matchStats    = new int[] { 0, 0, 0, 0, 0, 0 };
        currentStats  = new int[] { 0, 0, 0, 0, 0, 0 };
        statusEffects = new List <StatusEffect>();

        equipment = new Gear[6] {
            null, null, null, null, null, null
        };
        //CurrentLevel = new Stats();
        CalculateCurrentLevelStats();
        attackBar = new AttackBar();
        skills    = new Skill[4] {
            null, null, null, null
        };
    }
Exemple #3
0
    private void Start()
    {
        _hitMarkerRT      = gameObject.GetComponent <RectTransform>();
        _hitMarkerImageGO = transform.GetChild(0).gameObject;
        _hitMarkerImageGO.gameObject.SetActive(false);
        attackBar = FindObjectOfType <AttackBar>();
        SetParent(attackBar.hitMarkerPar);
        SetAsActiveHitMarker();
        hitMarkerCollider = GetComponent <BoxCollider2D>();

        SetName(this.name);
    }
Exemple #4
0
 public void SetActiveAttackBar(AttackBar attackBar)
 {
     activeAttackBar = attackBar;
 }
Exemple #5
0
 protected void SetAttackBar(GameObject ab)
 {
     attackBar = ab.GetComponent <AttackBar>();
 }