Exemple #1
0
        public override void ModifyDrawLayers(List <PlayerLayer> layers)
        {
            NoxiumPlayer noxiumP = player.GetModPlayer <NoxiumPlayer>();

            string[]      stringsz = { "Head", "Body", "Arms", "Legs", "ShoeAcc", "Wings" };
            PlayerLayer[] thelayer = { HeadGlowmask, ChestplateGlowmask, ArmsGlowmask, LegsGlowmask, ShoeGlowmask, WingGlowmask };

            for (int i = 0; i < armorglowmasks.Length; i += 1)
            {
                if (noxiumP.armorglowmasks[i] != null)
                {
                    int layer = layers.FindIndex(PlayerLayer => PlayerLayer.Name.Equals(stringsz[i])) + 1;
                    thelayer[i].visible = true;
                    layers.Insert(layer, thelayer[i]);
                }
            }
        }
Exemple #2
0
        public override void CopyCustomBiomesTo(Player other)
        {
            NoxiumPlayer modOther = other.GetModPlayer <NoxiumPlayer>();

            modOther.zonePlasma = zonePlasma;
        }
Exemple #3
0
        public override bool CustomBiomesMatch(Player other)
        {
            NoxiumPlayer modOther = other.GetModPlayer <NoxiumPlayer>();

            return(zonePlasma == modOther.zonePlasma);
        }