Example #1
0
 public override void KillTile(int i, int j, int type, ref bool fail, ref bool effectOnly, ref bool noItem)
 {
     if (ChestBrowser.isKillTileProtect())
     {
         fail       = true;
         effectOnly = true;
         noItem     = true;
     }
 }
Example #2
0
        public override void Load()
        {
            // 旧設定ファイルの削除
            var oldConfigPath = Path.Combine(Main.SavePath, "Mod Configs", "ChestBrowser.json");

            if (File.Exists(oldConfigPath))
            {
                File.Delete(oldConfigPath);
            }

            instance = this;
            HotKey   = RegisterHotKey("Toggle Chest Browser", "U");
            if (!Main.dedServ)
            {
                chestBrowserTool = new ChestBrowserTool();
            }
        }
Example #3
0
 public override bool KillSound(int i, int j, int type)
 {
     return(!ChestBrowser.isKillTileProtect());
 }
Example #4
0
 public override bool CreateDust(int i, int j, int type, ref int dustType)
 {
     return(!ChestBrowser.isKillTileProtect());
 }
Example #5
0
 public override void KillWall(int i, int j, int type, ref bool fail)
 {
     fail = ChestBrowser.isKillTileProtect();
 }
Example #6
0
 public override bool CanPlace(int i, int j, int type)
 {
     return(!ChestBrowser.isKillTileProtect());
 }
Example #7
0
 public override bool CanKillTile(int i, int j, int type, ref bool blockDamaged)
 {
     return(!ChestBrowser.isKillTileProtect());
 }