Example #1
0
        public override void ResetNearbyTileEffects()
        {
            MoToolsPlayer modPlayer = Main.LocalPlayer.GetModPlayer <MoToolsPlayer>();

            modPlayer.voidMonolith = false;
            the404Tiles            = 0;
        }
Example #2
0
        public override bool CustomBiomesMatch(Player other)
        {
            MoToolsPlayer modOther = other.GetModPlayer <MoToolsPlayer>();

            return(ZoneThe404Realm == modOther.ZoneThe404Realm);
            // If you have several Zones, you might find the &= operator or other logic operators useful:
            // bool allMatch = true;
            // allMatch &= ZoneThe404Realm == modOther.ZoneThe404Realm;
            // allMatch &= ZoneModel == modOther.ZoneModel;
            // return allMatch;
            // Here is an example just using && chained together in one statement
            // return ZoneThe404Realm == modOther.ZoneThe404Realm && ZoneModel == modOther.ZoneModel;
        }
Example #3
0
        public override void CopyCustomBiomesTo(Player other)
        {
            MoToolsPlayer modOther = other.GetModPlayer <MoToolsPlayer>();

            modOther.ZoneThe404Realm = ZoneThe404Realm;
        }