コード例 #1
0
 public static void VeryBlank(Action <SilencerItem, PlayerController> acshon, SilencerItem key, PlayerController player)
 {
     acshon(key, player);
     foreach (PassiveItem passives in player.passiveItems)
     {
         if (passives is CodexUmbra && BoxOTools.BasicRandom(.5f))
         {
             GiveRandomItem(player);
         }
     }
 }
コード例 #2
0
 public static void blankPickupHookMethod(Action <SilencerItem, PlayerController> orig, SilencerItem self, PlayerController player)
 {
     orig(self, player);
     if (self && player)
     {
         if (player.HasPickupID(IvoryAmmoletID))
         {
             player.Blanks += 2;
         }
     }
 }
コード例 #3
0
 public static void blankPickupHookMethod(Action <SilencerItem, PlayerController> orig, SilencerItem self, PlayerController player)
 {
     orig(self, player);
     if (blankRegulator)
     {
         blankRegulator = false;
         giveCash(player, 4);
     }
     else
     {
         blankRegulator = true;
     }
 }
コード例 #4
0
ファイル: BlankDoubler.cs プロジェクト: blazeykat/prismatism
        public static void DoubleKeys(Action <SilencerItem, PlayerController> acshon, SilencerItem key, PlayerController player)
        {
            acshon(key, player);
            foreach (PassiveItem passives in player.passiveItems)
            {
                if (passives is BlankDoubler && BoxOTools.BasicRandom(0.25f))
                {
                    player.Blanks += 1;
                    player.BloopItemAboveHead(itemator.sprite);

                    if (player.PlayerHasActiveSynergy("Twice the Pride"))
                    {
                        if (player.characterIdentity != PlayableCharacters.Robot)
                        {
                            player.healthHaver.ApplyHealing(1f);
                        }
                        else
                        {
                            player.healthHaver.Armor += 1;
                        }
                        AkSoundEngine.PostEvent("Play_OBJ_heart_heal_01", passives.gameObject);
                        player.PlayEffectOnActor(ResourceCache.Acquire("Global VFX/vfx_healing_sparkles_001") as GameObject, Vector3.zero);
                    }
                }
            }
        }