コード例 #1
0
        private bool IsPlatform(int tile)
        {
            EPConfig Config = ModContent.GetInstance <EPConfig>();

            return(tile != -1 && (TileID.Sets.Platforms[tile] ||
                                  (Config.SmartPlatformCheck && IsPlatformStrict(tile))));
        }
コード例 #2
0
        public override float UseTimeMultiplier(Item item, Player player)
        {
            if (!extendedThisFrame || player.whoAmI != Main.myPlayer)
            {
                return(1f);
            }
            EPConfig config = ModContent.GetInstance <EPConfig>();

            if (config.FasterPlacement)
            {
                return(5f);
            }

            return(1f);
        }