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

            modPlayer.FountainJungleCorrupt = false;
            modPlayer.FountainJungleBloody  = false;
            modPlayer.FountainJungleHoly    = false;
            modPlayer.FountainVitric        = false;
        }
        public override void CopyCustomBiomesTo(Player other)
        {
            BiomeHandler modOther = other.GetModPlayer <BiomeHandler>();

            modOther.ZoneGlass         = ZoneGlass;
            modOther.ZoneVoidPre       = ZoneVoidPre;
            modOther.ZoneJungleCorrupt = ZoneJungleCorrupt;
            modOther.ZoneJungleBloody  = ZoneJungleBloody;
            modOther.ZoneJungleHoly    = ZoneJungleHoly;
            modOther.ZoneOvergrow      = ZoneOvergrow;
            modOther.zoneAluminum      = zoneAluminum;
            modOther.zonePermafrost    = zonePermafrost;
            modOther.zoneAshhell       = zoneAshhell;
        }
        public override bool CustomBiomesMatch(Player other)
        {
            BiomeHandler modOther = other.GetModPlayer <BiomeHandler>();
            bool         allMatch = true;

            allMatch &= ZoneGlass == modOther.ZoneGlass;
            allMatch &= ZoneVoidPre == modOther.ZoneVoidPre;
            allMatch &= ZoneJungleCorrupt == modOther.ZoneJungleCorrupt;
            allMatch &= ZoneJungleBloody == modOther.ZoneJungleBloody;
            allMatch &= ZoneJungleHoly == modOther.ZoneJungleHoly;
            allMatch &= ZoneOvergrow == modOther.ZoneOvergrow;
            allMatch &= zoneAluminum == modOther.zoneAluminum;
            allMatch &= zonePermafrost == modOther.zonePermafrost;
            allMatch &= zoneAshhell == modOther.zoneAshhell;
            return(allMatch);
        }