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; } }
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(); } }
public override bool KillSound(int i, int j, int type) { return(!ChestBrowser.isKillTileProtect()); }
public override bool CreateDust(int i, int j, int type, ref int dustType) { return(!ChestBrowser.isKillTileProtect()); }
public override void KillWall(int i, int j, int type, ref bool fail) { fail = ChestBrowser.isKillTileProtect(); }
public override bool CanPlace(int i, int j, int type) { return(!ChestBrowser.isKillTileProtect()); }
public override bool CanKillTile(int i, int j, int type, ref bool blockDamaged) { return(!ChestBrowser.isKillTileProtect()); }