Exemplo n.º 1
0
        public override void ModifyInterfaceLayers(List <GameInterfaceLayer> layers)
        {
            CosmaliaPlayer modPlayer = Main.player[Main.myPlayer].GetModPlayer <CosmaliaPlayer>();

            if (modPlayer.intelligence <= 85)
            {
                for (int i = 0; i < layers.Count; i++)
                {
                    if (layers[i].Name == ("Vanilla: Entity Health Bars") /*| layers[i].Name == ("Vanilla: Mouse Text")*/)
                    {
                        layers.RemoveAt(i);
                    }
                }
            }

            /*if (modPlayer.intelligence <= 30)
             * {
             *      for (int i = 0; i < layers.Count; i++)
             *      {
             *              if (layers[i].Name == ("Vanilla: Emote Bubbles"))
             *              {
             *                      layers.RemoveAt(i);
             *              }
             *      }
             * }*/
        }
Exemplo n.º 2
0
        public override void clientClone(ModPlayer clientClone)
        {
            CosmaliaPlayer clone = clientClone as CosmaliaPlayer;

            clone.cosmalian = cosmalian;
        }