Ejemplo n.º 1
0
	public RotorEnemy() : base() {
		type = 6;
		chargedAttackModifier = new ChargedAttackModifier(115);

		actionCds[1] = 5f;
		actionCdRemain[1] = 3f;
	}
Ejemplo n.º 2
0
    public RotorEnemy() : base()
    {
        type = 6;
        chargedAttackModifier = new ChargedAttackModifier(115);

        actionCds[1]      = 5f;
        actionCdRemain[1] = 3f;
    }
Ejemplo n.º 3
0
    public bool loadSkills()
    {
        if (SaveLoad.Load())
        {
            SkillTree tree   = GameSave.current.skilltree;
            Skill[]   skills = tree.skills;
            if (skills[0] != null)
            {
                attackModifier = new AttackModifier(skills[0].skillType);
            }
            else
            {
                attackModifier = new AttackModifier(3);
            }
            if (skills[1] != null)
            {
                chargedAttackModifier = new ChargedAttackModifier(skills[1].skillType);
            }
            else
            {
                chargedAttackModifier = new ChargedAttackModifier(103);
            }
            if (skills[2] != null)
            {
                dodgeModifier = new DodgeModifier(skills[2].skillType);
            }
            else
            {
                dodgeModifier = new DodgeModifier(150);
            }
            if (skills[3] != null)
            {
                blockModifier = new BlockModifier(skills[3].skillType);
            }
            else
            {
                blockModifier = new BlockModifier(200);
            }
            activeSkills = new ArrayList();
            if (skills[4] != null)
            {
                activeSkills.Add(new ActiveModifier(skills[4].skillType));
            }
            if (skills[6] != null)
            {
                activeSkills.Add(new ActiveModifier(skills[6].skillType));
            }

            return(true);
        }
        return(false);
    }
Ejemplo n.º 4
0
	void Start () {
		type = 7;
		chargedAttackModifier = new ChargedAttackModifier(116);
		chargingTime = chargedAttackModifier.chargeTime;

		if(AIController.current != null) {
			AIController.current.characters.Add(this);
		}

		status.regularMoveSpeed = 55f;
		status.turningSpeed = 3f;

		actionCds[0] = 1f;
		actionCdRemain[1] = actionCds[1];

		StartCoroutine(blink());
	}
Ejemplo n.º 5
0
	public MainCharacter() : base() {
		actionCds[2] = 3f;
		actionCds[3] = 1.5f;
		actionCds[4] = 5f;
		actionCds[5] = 5f;

		status.regularMoveSpeed = 40f;
		if(!loadSkills()) {
			attackModifier = new AttackModifier(3);
			dodgeModifier = new DodgeModifier(150);
			chargedAttackModifier = new ChargedAttackModifier(103);
			blockModifier = new BlockModifier(200);
			activeSkills = new ArrayList();
			//activeSkills.Add(new ActiveModifier(251));
			//activeSkills.Add(new ActiveModifier(258));
		}

		div = MainCharacterDiv.Division;
	}
Ejemplo n.º 6
0
    void Start()
    {
        type = 7;
        chargedAttackModifier = new ChargedAttackModifier(116);
        chargingTime          = chargedAttackModifier.chargeTime;

        if (AIController.current != null)
        {
            AIController.current.characters.Add(this);
        }

        status.regularMoveSpeed = 55f;
        status.turningSpeed     = 3f;

        actionCds[0]      = 1f;
        actionCdRemain[1] = actionCds[1];

        StartCoroutine(blink());
    }
Ejemplo n.º 7
0
	public bool loadSkills() {
		if(SaveLoad.Load()) {
			SkillTree tree = GameSave.current.skilltree;
			Skill[] skills = tree.skills;
			if(skills[0]!=null)attackModifier = new AttackModifier(skills[0].skillType);
			else attackModifier = new AttackModifier(3);
			if(skills[1]!=null)chargedAttackModifier = new ChargedAttackModifier(skills[1].skillType);
			else chargedAttackModifier = new ChargedAttackModifier(103);
			if(skills[2]!=null)dodgeModifier = new DodgeModifier(skills[2].skillType);
			else dodgeModifier = new DodgeModifier(150);
			if(skills[3]!=null)blockModifier = new BlockModifier(skills[3].skillType);
			else blockModifier = new BlockModifier(200);
			activeSkills = new ArrayList();
			if(skills[4]!=null)activeSkills.Add(new ActiveModifier(skills[4].skillType));
			if(skills[6]!=null)activeSkills.Add(new ActiveModifier(skills[6].skillType));

			return true;
		}
		return false;
	}
Ejemplo n.º 8
0
    void Start()
    {
        type              = 9;
        status.maxhp      = 4500;
        status.hp         = 4500;
        status.canBeCCed  = false;
        actionCds[0]      = 6f;                 //Single Ram
        actionCds[1]      = 20f;                //Divide
        actionCdRemain[0] = 2f;
        actionCdRemain[1] = 5f;
        actionCds[2]      = 12f;
        actionCds[3]      = 3f;

        attackModifier        = new AttackModifier(31);
        chargedAttackModifier = new ChargedAttackModifier(117);

        lowerShields = new ArrayList();
        for (int a = 0; a != 8; ++a)
        {
            float      angle = a * 360f / 8f * Mathf.Deg2Rad + lowerAnglePlus;
            Vector3    pos   = new Vector3(Mathf.Sin(angle) * lowerRadius, -0.03f, Mathf.Cos(angle) * lowerRadius);
            Quaternion rot   = Quaternion.Euler(new Vector3(270f, 45f * a, 0f));
            GameObject obj   = (GameObject)Instantiate(Resources.Load("Prefabs/Boss1/lowerShield"), pos, rot);
            obj.transform.parent        = this.gameObject.transform;
            obj.transform.localScale    = new Vector3(90f, 90f, 90f);
            obj.transform.localPosition = pos;
            lowerShields.Add(obj);
        }
        upperShields = new ArrayList();
        for (int a = 0; a != 8; ++a)
        {
            float      angle = a * 360f / 8f * Mathf.Deg2Rad + upperAnglePlus;
            Vector3    pos   = new Vector3(Mathf.Sin(angle) * upperRadius, 0.514f, Mathf.Cos(angle) * upperRadius);
            Quaternion rot   = Quaternion.Euler(new Vector3(270f, 45f * a, 0f));
            GameObject obj   = (GameObject)Instantiate(Resources.Load("Prefabs/Boss1/upperShield"), pos, rot);
            obj.transform.parent        = this.gameObject.transform;
            obj.transform.localScale    = new Vector3(90f, 90f, 90f);
            obj.transform.localPosition = pos;
            upperShields.Add(obj);
        }
    }
Ejemplo n.º 9
0
    public MainCharacter() : base()
    {
        actionCds[2] = 3f;
        actionCds[3] = 1.5f;
        actionCds[4] = 5f;
        actionCds[5] = 5f;

        status.regularMoveSpeed = 40f;
        if (!loadSkills())
        {
            attackModifier        = new AttackModifier(3);
            dodgeModifier         = new DodgeModifier(150);
            chargedAttackModifier = new ChargedAttackModifier(103);
            blockModifier         = new BlockModifier(200);
            activeSkills          = new ArrayList();
            //activeSkills.Add(new ActiveModifier(251));
            //activeSkills.Add(new ActiveModifier(258));
        }

        div = MainCharacterDiv.Division;
    }
Ejemplo n.º 10
0
	void Start () {
		type = 9;
		status.maxhp = 4500;
		status.hp = 4500;
		status.canBeCCed = false;
		actionCds[0] = 6f;		//Single Ram
		actionCds[1] = 20f;		//Divide
		actionCdRemain[0] = 2f;
		actionCdRemain[1] = 5f;
		actionCds[2] = 12f;
		actionCds[3] = 3f;

		attackModifier = new AttackModifier(31);
		chargedAttackModifier = new ChargedAttackModifier(117);

		lowerShields = new ArrayList();
		for(int a=0;a!=8;++a) {
			float angle = a * 360f/8f*Mathf.Deg2Rad + lowerAnglePlus;
			Vector3 pos = new Vector3(Mathf.Sin(angle)*lowerRadius, -0.03f, Mathf.Cos(angle)*lowerRadius);
			Quaternion rot = Quaternion.Euler(new Vector3(270f, 45f*a, 0f));
			GameObject obj = (GameObject)Instantiate(Resources.Load("Prefabs/Boss1/lowerShield"), pos, rot);
			obj.transform.parent = this.gameObject.transform;
			obj.transform.localScale = new Vector3(90f, 90f, 90f);
			obj.transform.localPosition = pos;
			lowerShields.Add(obj);
		}
		upperShields = new ArrayList();
		for(int a=0;a!=8;++a) {
			float angle = a * 360f/8f*Mathf.Deg2Rad + upperAnglePlus;
			Vector3 pos = new Vector3(Mathf.Sin(angle)*upperRadius, 0.514f, Mathf.Cos(angle)*upperRadius);
			Quaternion rot = Quaternion.Euler(new Vector3(270f, 45f*a, 0f));
			GameObject obj = (GameObject)Instantiate(Resources.Load("Prefabs/Boss1/upperShield"), pos, rot);
			obj.transform.parent = this.gameObject.transform;
			obj.transform.localScale = new Vector3(90f, 90f, 90f);
			obj.transform.localPosition = pos;
			upperShields.Add(obj);
		}


	}