Esempio n. 1
0
 private static void Player_ctor(On.Player.orig_ctor orig, Player self, AbstractCreature abstractCreature, World world)
 {
     orig.Invoke(self, abstractCreature, world);
     if (Downpour.snow && Downpour.blizzard && self.room.game.session is StoryGameSession)
     {
         Downpour.exposureControllers.Add(new ExposureController(self));
     }
 }
 private void Player_ctor(On.Player.orig_ctor orig, Player self, AbstractCreature abstractCreature, World world)
 {
     orig.Invoke(self, abstractCreature, world);
     if (self.slugcatStats.name != SlugcatStats.Name.Red)
     {
         if (!self.playerState.isGhost)
         {
             self.spearOnBack = new Player.SpearOnBack(self);
         }
     }
 }
Esempio n. 3
0
 private void PlayerCtorHook(On.Player.orig_ctor orig, Player self, AbstractCreature abstractCreature, World world)
 {
     orig.Invoke(self, abstractCreature, world);
     if (this.Enabled)
     {
         if (Type.GetType("JollyCoop.JollyMod, JollyCoop") != null)
         {
             if (JollyPlayerCheck(self.playerState.playerNumber) == true)
             {
                 if (self.playerState.slugcatCharacter != PlayerManager.GetCustomPlayer("Electric").SlugcatIndex)
                 {
                     self.playerState.slugcatCharacter = PlayerManager.GetCustomPlayer("Electric").SlugcatIndex;
                 }
             }
         }
         if (EVars == null)
         {
             EVars = new List <ElectricVars>();
             Debug.Log("--Initializing new Evars");
         }
         bool initTracker = true;
         for (int i = 0; i < EVars.Count; i++)
         {
             if (EVars[i].ply == self)
             {
                 initTracker = false;
                 Debug.Log("--Player already has Evars");
                 break;
             }
         }
         if (initTracker && self.playerState.slugcatCharacter == PlayerManager.GetCustomPlayer("Electric").SlugcatIndex)
         {
             EVars.Add(new ElectricVars(self));
             Debug.Log("--Evars added for new Player");
         }
     }
 }
Esempio n. 4
0
 private static void Player_ctor(On.Player.orig_ctor orig, Player self, AbstractCreature abstractCreature, World world)
 {
     orig.Invoke(self, abstractCreature, world);
     cycleScore = 0;
 }