private void PlayerSpawn () {
			Database db = Database.instance;
			if (!GameManager.instance.playerAlive) {
				roLo.InitializeLoadout (db.items[0], db.items[1], db.items[2], db.items[3], db.items[4], db.items[5], db.items[6]);
				GameManager.instance.playerAlive = true;
			} else {
				roLo.InitializeLoadout (
					GameManager.playerLoadout[0],
					GameManager.playerLoadout[1],
					GameManager.playerLoadout[2],
					GameManager.playerLoadout[3],
					GameManager.playerLoadout[4],
					GameManager.playerLoadout[5],
					GameManager.playerLoadout[6]
				);
				foreach (Item gear in roLo.loadout) {
					if (gear.itemSpecial) {
						special.ActivateSpecialPassive (gear);
					}
				}
			}
		}
Beispiel #2
0
        private void BasicEnemySetup()
        {
            Database db = Database.instance;

            roLo.InitializeLoadout(
                db.RandomItemOut(ItemLoc.head),
                db.SudoRandomItemOut(ItemLoc.body, new int[] { 1, 8 }),
                db.SudoRandomItemOut(ItemLoc.leftArm, new int[] { 2, 22, 24, 26 }),
                db.SudoRandomItemOut(ItemLoc.rightArm, new int[] { 3, 23, 25, 27 }),
                db.SudoRandomItemOut(ItemLoc.legs, new int[] { 4, 9, 29 }),
                db.RandomItemOut(ItemLoc.back),
                db.RandomItemOut(ItemLoc.core)
                );
        }
Beispiel #3
0
        // Use this for initialization
        void Start()
        {
            rolo       = GetComponent <RobotLoadout> ();
            parentRoom = GetComponentInParent <RoomGeneration> ();

            rolo.InitializeLoadout(
                new Item(),
                Database.instance.items[1],
                new Item(),
                Database.instance.items[18],
                new Item(),
                new Item(),
                new Item()
                );
            StartCoroutine(DefineRotation());
            StartCoroutine(SpawnBullets(rolo.loadout[3]));
        }
        private void BasicEnemySetup()
        {
            Database db = Database.instance;

            roLo.InitializeLoadout(
                db.RandomItemOut(ItemLoc.head),
                db.SudoRandomItemOut(ItemLoc.body, new int[] { 1, 8 }),
                db.SudoRandomItemOut(ItemLoc.leftArm, new int[] { 2, 13, 15, 17 }),
                db.SudoRandomItemOut(ItemLoc.rightArm, new int[] { 14, 16, 18 }),
                db.SudoRandomItemOut(ItemLoc.legs, new int[] { 4 }),
                db.RandomItemOut(ItemLoc.back),
                db.RandomItemOut(ItemLoc.core)
                );
            if (roLo.loadout[2].itemID != 2)
            {
                roLo.loadout[3] = db.items[3];
            }
            roLo.hitPoints[1] = Mathf.RoundToInt(roLo.hitPoints[1] * healthOffset);
        }