Ejemplo n.º 1
0
 private void GiveRobotLoadout(PlayerController user)
 {
     //Give Battery Bullets
     if (!user.HasPickupID(410))
     {
         PickupObject CharacterPassive = PickupObjectDatabase.GetById(410);
         LastOwner.AcquirePassiveItemPrefabDirectly(CharacterPassive as PassiveItem);
     }
     //Give Robots Right Hand
     if (!user.HasPickupID(88) && !user.HasPickupID(812))
     {
         Gun CharacterStarterGun = (PickupObjectDatabase.GetById(88) as Gun);
         LastOwner.inventory.AddGunToInventory(CharacterStarterGun, true);
     }
     //Give Coolant Leak
     if (!user.HasPickupID(411))
     {
         PickupObject CharacterActive = PickupObjectDatabase.GetById(411);
         LootEngine.SpawnItem(CharacterActive.gameObject, LastOwner.specRigidbody.UnitCenter, Vector2.left, 1f, false, true, false);
     }
     foreach (Gun gun in user.inventory.AllGuns)
     {
         if (gun.GetComponent <Paraglocks>() != null)
         {
             gun.GetComponent <Paraglocks>().idsBuffedByAssociatedDissasociationsSynergy.Add(88);
             gun.GetComponent <Paraglocks>().idsBuffedByAssociatedDissasociationsSynergy.Add(812);
         }
     }
 }
        private void GiveEngravedBulletsRemoveUnengravedBullets()
        {
            var engravedBulletsItem = Gungeon.Game.Items["nn:engraved_bullets"];

            LastOwner.AcquirePassiveItemPrefabDirectly(engravedBulletsItem as PassiveItem);
            LastOwner.RemoveActiveItem(this.PickupObjectId);
        }
Ejemplo n.º 3
0
 private void GiveMarineLoadout(PlayerController user)
 {
     //Give Military Training
     if (!user.HasPickupID(354))
     {
         PickupObject CharacterPassive = PickupObjectDatabase.GetById(354);
         LastOwner.AcquirePassiveItemPrefabDirectly(CharacterPassive as PassiveItem);
     }
     //Give Marine Sidearm
     if (!user.HasPickupID(86) && !user.HasPickupID(809))
     {
         Gun CharacterStarterGun = (PickupObjectDatabase.GetById(86) as Gun);
         LastOwner.inventory.AddGunToInventory(CharacterStarterGun, true);
     }
     //Give Supply Drop
     if (!user.HasPickupID(77))
     {
         PickupObject CharacterActive = PickupObjectDatabase.GetById(77);
         LootEngine.SpawnItem(CharacterActive.gameObject, LastOwner.specRigidbody.UnitCenter, Vector2.left, 1f, false, true, false);
     }
     //Give 1 Armour
     LootEngine.GivePrefabToPlayer(PickupObjectDatabase.GetById(120).gameObject, LastOwner);
     foreach (Gun gun in user.inventory.AllGuns)
     {
         if (gun.GetComponent <Paraglocks>() != null)
         {
             gun.GetComponent <Paraglocks>().idsBuffedByAssociatedDissasociationsSynergy.Add(86);
             gun.GetComponent <Paraglocks>().idsBuffedByAssociatedDissasociationsSynergy.Add(809);
         }
     }
 }
Ejemplo n.º 4
0
 private void GivePilotLoadout(PlayerController user)
 {
     //Give Disarming Personality
     if (!user.HasPickupID(187))
     {
         PickupObject EnragingPhoto = PickupObjectDatabase.GetById(187);
         LastOwner.AcquirePassiveItemPrefabDirectly(EnragingPhoto as PassiveItem);
     }
     //Give Hidden Compartment
     if (!user.HasPickupID(473))
     {
         PickupObject EnragingPhoto = PickupObjectDatabase.GetById(473);
         LastOwner.AcquirePassiveItemPrefabDirectly(EnragingPhoto as PassiveItem);
     }
     //Give Rogue Special
     if (!user.HasPickupID(89) && !user.HasPickupID(651))
     {
         Gun RustySidearm = (PickupObjectDatabase.GetById(89) as Gun);
         LastOwner.inventory.AddGunToInventory(RustySidearm, true);
     }
     //Give Trusty Lockpicks
     if (!user.HasPickupID(356))
     {
         PickupObject Molotov = PickupObjectDatabase.GetById(356);
         LootEngine.SpawnItem(Molotov.gameObject, LastOwner.specRigidbody.UnitCenter, Vector2.left, 1f, false, true, false);
     }
     foreach (Gun gun in user.inventory.AllGuns)
     {
         if (gun.GetComponent <Paraglocks>() != null)
         {
             gun.GetComponent <Paraglocks>().idsBuffedByAssociatedDissasociationsSynergy.Add(89);
             gun.GetComponent <Paraglocks>().idsBuffedByAssociatedDissasociationsSynergy.Add(651);
         }
     }
 }
Ejemplo n.º 5
0
 private void GiveConvictLoadout(PlayerController user)
 {
     //Give Enraging Photo
     if (!user.HasPickupID(353))
     {
         PickupObject EnragingPhoto = PickupObjectDatabase.GetById(353);
         LastOwner.AcquirePassiveItemPrefabDirectly(EnragingPhoto as PassiveItem);
     }
     //Give SawedOff
     if (!user.HasPickupID(202))
     {
         Gun SawedOff = (PickupObjectDatabase.GetById(202) as Gun);
         LastOwner.inventory.AddGunToInventory(SawedOff, true);
     }
     //Give Budget Revolver
     if (!user.HasPickupID(80) && !user.HasPickupID(652))
     {
         Gun RustySidearm = (PickupObjectDatabase.GetById(80) as Gun);
         LastOwner.inventory.AddGunToInventory(RustySidearm, true);
     }
     //Give Molotov
     if (!user.HasPickupID(366))
     {
         PickupObject Molotov = PickupObjectDatabase.GetById(366);
         LootEngine.SpawnItem(Molotov.gameObject, LastOwner.specRigidbody.UnitCenter, Vector2.left, 1f, false, true, false);
     }
     foreach (Gun gun in user.inventory.AllGuns)
     {
         if (gun.GetComponent <Paraglocks>() != null)
         {
             gun.GetComponent <Paraglocks>().idsBuffedByAssociatedDissasociationsSynergy.Add(80);
             gun.GetComponent <Paraglocks>().idsBuffedByAssociatedDissasociationsSynergy.Add(652);
         }
     }
 }
Ejemplo n.º 6
0
 private void GiveHunterLoadout(PlayerController user)
 {
     //Give Dog
     if (!user.HasPickupID(300))
     {
         PickupObject DogItem = PickupObjectDatabase.GetById(300);
         LastOwner.AcquirePassiveItemPrefabDirectly(DogItem as PassiveItem);
     }
     //Give Crossbow
     if (!user.HasPickupID(12))
     {
         Gun Crossbow = (PickupObjectDatabase.GetById(12) as Gun);
         LastOwner.inventory.AddGunToInventory(Crossbow, true);
     }
     //Give Rusty Sidearm
     if (!user.HasPickupID(99) && !user.HasPickupID(810))
     {
         Gun RustySidearm = (PickupObjectDatabase.GetById(99) as Gun);
         LastOwner.inventory.AddGunToInventory(RustySidearm, true);
     }
     foreach (Gun gun in user.inventory.AllGuns)
     {
         if (gun.GetComponent <Paraglocks>() != null)
         {
             gun.GetComponent <Paraglocks>().idsBuffedByAssociatedDissasociationsSynergy.Add(99);
             gun.GetComponent <Paraglocks>().idsBuffedByAssociatedDissasociationsSynergy.Add(810);
         }
     }
 }
Ejemplo n.º 7
0
 private void GiveBulletLoadout(PlayerController user)
 {
     //Give Live Ammo
     if (!user.HasPickupID(414))
     {
         PickupObject CharacterPassive = PickupObjectDatabase.GetById(414);
         LastOwner.AcquirePassiveItemPrefabDirectly(CharacterPassive as PassiveItem);
     }
     //Give Blasphemy
     if (!user.HasPickupID(417) && !user.HasPickupID(813))
     {
         Gun CharacterStarterGun = (PickupObjectDatabase.GetById(417) as Gun);
         LastOwner.inventory.AddGunToInventory(CharacterStarterGun, true);
     }
     foreach (Gun gun in user.inventory.AllGuns)
     {
         if (gun.GetComponent <Paraglocks>() != null)
         {
             gun.GetComponent <Paraglocks>().idsBuffedByAssociatedDissasociationsSynergy.Add(417);
             gun.GetComponent <Paraglocks>().idsBuffedByAssociatedDissasociationsSynergy.Add(813);
         }
     }
 }