void BossChangesWeapon() { /*another way to change wepaon*/ Log.log("Activate"); //this.character.GetStats().GainEnergy(100);//temp originWeapon = this.character.GetActiveWeapon(); originSocket = this.character.GetActiveWeapon().sockets; Log.log("om basic weapon " + originWeapon.ToString()); weapon = new MeleeMode(); weapon.Init(character, dualWieldSockets); bossScript.AddWeapon(weapon); character.ActivateWeapon(weapon); weaponForChangedMelee = true; }
private void InitNewInventory() { AddColor(Colors.Blue); AddColor(Colors.Red); SetBulletColor(Colors.Blue); // Weapon Index Weapon weap = new SingleShooter(); //....................1,0 weap.Init(this, singleSocket); AddWeapon(weap); AddWeapon(weap); //------------------------------------------singleShooter added twice. weap = new Shotgun(); //..................................2 weap.Init(this, singleSocket); AddWeapon(weap); weap = new Rifle(); //....................................3 weap.Init(this, singleSocket); AddWeapon(weap); weap = new TheMiddleFingerGun(); //.......................4 weap.Init(this, singleSocket); AddWeapon(weap); weap = new TheEraser();//.................................5 weap.Init(this, singleSocket); AddWeapon(weap); weap = new BurstShooter();//..............................6 weap.Init(this, dualWieldSockets); AddWeapon(weap); weap = new MeleeMode();//..............................7 weap.Init(this, dualWieldSockets); AddWeapon(weap); weap = new TripleSingleShooter();//.......................8 weap.Init(this, singleSocket); AddWeapon(weap); weap = new LaserSurgeryGun();//...........................9 weap.Init(this, singleSocket); AddWeapon(weap); }