Esempio n. 1
0
 public static void RPUpdate()
 {
     if (!Main.dedServ && !Main.gameMenu)
     {
         Player RPlayer = Main.player[Main.myPlayer];
         if ((prevCount == null || prevCount + 180 <= Main.GameUpdateCount) || (Main.gamePaused && !pauseUpdate))
         {
             if (Main.gamePaused)
             {
                 pauseUpdate = true;
             }
             prevCount = Main.GameUpdateCount;
             //Main.NewText(prevCount);
             RPUtility.player = RPlayer;
             RPUtility.Update();
         }
         else if (!Main.gamePaused)
         {
             pauseUpdate = false;
         }
         else
         {
             return;
         }
     }
     else
     {
         return;
     }
 }
Esempio n. 2
0
 public override void Kill(double damage, int hitDirection, bool pvp, PlayerDeathReason damageSource)
 {
     RPUtility.dead = true;
     RPUtility.Update();
 }