Skip to content
This repository was archived by the owner on Dec 16, 2021. It is now read-only.

Commit f463213

Browse files
author
Johnathon
committed
I'M PUSHING.
Removed Tutorials as they're on the Wiki, moved stuff from CG into Yu-Gi-Oh DLL. Made sure everything compiles and a special surprise that i will ping on the Discord.
1 parent 67db7b4 commit f463213

File tree

109 files changed

+1615
-325
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+1615
-325
lines changed

Celtic Guardian/Celtic Guardian.csproj

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -37,50 +37,6 @@
3737
<Reference Include="System.Windows.Forms" />
3838
</ItemGroup>
3939
<ItemGroup>
40-
<Compile Include="File Handling\Bin Files\Card_Limits.cs" />
41-
<Compile Include="File Handling\Bin Files\Card_Manager.cs" />
42-
<Compile Include="File Handling\Bin Files\Related_Card_Data.cs" />
43-
<Compile Include="File Handling\Miscellaneous Files\Card_Collection.cs" />
44-
<Compile Include="File Handling\Miscellaneous Files\Manager.cs" />
45-
<Compile Include="File Handling\Utility\Constants.cs" />
46-
<Compile Include="File Handling\File_Data.cs" />
47-
<Compile Include="File Handling\Utility\Duel_Series.cs" />
48-
<Compile Include="File Handling\Utility\Endian.cs" />
49-
<Compile Include="File Handling\Utility\Extensions.cs" />
50-
<Compile Include="File Handling\Utility\File_Types.cs" />
51-
<Compile Include="File Handling\Utility\Localized_Text.cs" />
52-
<Compile Include="File Handling\LOTD Files\LOTD_Archive.cs" />
53-
<Compile Include="File Handling\LOTD Files\LOTD_Directory.cs" />
54-
<Compile Include="File Handling\LOTD Files\LOTD_File.cs" />
55-
<Compile Include="File Handling\Main Files\Arena_Data.cs" />
56-
<Compile Include="File Handling\Main Files\Char_Data.cs" />
57-
<Compile Include="File Handling\Main Files\Deck_Data.cs" />
58-
<Compile Include="File Handling\Main Files\Duel_Data.cs" />
59-
<Compile Include="File Handling\Main Files\Pack_Def_Data.cs" />
60-
<Compile Include="File Handling\Main Files\Script_Data.cs" />
61-
<Compile Include="File Handling\Main Files\SKU_Data.cs" />
62-
<Compile Include="File Handling\Miscellaneous Files\Credits.cs" />
63-
<Compile Include="File Handling\Miscellaneous Files\Dfymoo.cs" />
64-
<Compile Include="File Handling\Utility\Dump_Settings.cs" />
65-
<Compile Include="File Handling\Miscellaneous Files\How_To_Play.cs" />
66-
<Compile Include="File Handling\Miscellaneous Files\Strings_BND.cs" />
67-
<Compile Include="File Handling\ZIB Files\ZIB_Data.cs" />
68-
<Compile Include="File Handling\ZIB Files\ZIB_File.cs" />
69-
<Compile Include="File Handling\Pack Files\Battle_Pack.cs" />
70-
<Compile Include="File Handling\Pack Files\Shop_Pack.cs" />
71-
<Compile Include="File Handling\Raw_File.cs" />
72-
<Compile Include="File Handling\Utility\Localized_Offset.cs" />
73-
<Compile Include="Save File\Battle_Pack_Save.cs" />
74-
<Compile Include="Save File\Campaign_Save.cs" />
75-
<Compile Include="Save File\Card_List_Save.cs" />
76-
<Compile Include="Save File\Deck_Save.cs" />
77-
<Compile Include="Save File\Deck_Save_Database.cs" />
78-
<Compile Include="Save File\Game_Save.cs" />
79-
<Compile Include="Save File\Game_Save_Helpers.cs" />
80-
<Compile Include="Save File\Game_Save_Xor_Table.cs" />
81-
<Compile Include="Save File\Misc_Save.cs" />
82-
<Compile Include="Save File\Save_Data_Chunk.cs" />
83-
<Compile Include="Save File\Stat_Save.cs" />
8440
<Compile Include="Utilities.cs" />
8541
<Compile Include="Properties\AssemblyInfo.cs" />
8642
</ItemGroup>

Elroy/Elroy.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@
100100
<Project>{4c925470-f8cb-4b64-a64d-179d03932794}</Project>
101101
<Name>Celtic Guardian</Name>
102102
</ProjectReference>
103+
<ProjectReference Include="..\Yu-Gi-Oh\Yu-Gi-Oh.csproj">
104+
<Project>{e39012b8-a9c4-4920-98e4-9e50b80cb9df}</Project>
105+
<Name>Yu-Gi-Oh</Name>
106+
</ProjectReference>
103107
</ItemGroup>
104108
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
105109
</Project>

Elroy/Form1.Designer.cs

Lines changed: 22 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Elroy/Form1.cs

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
using System;
2+
using System.Collections.Generic;
23
using System.IO;
34
using System.Linq;
45
using System.Windows.Forms;
6+
using Yu_Gi_Oh.File_Handling.LOTD_Files;
7+
using Yu_Gi_Oh.File_Handling.Main_Files;
8+
using Yu_Gi_Oh.File_Handling.Utility;
9+
510

611
namespace Elroy
712
{
@@ -66,5 +71,36 @@ private void SaveToolStripMenuItem_Click(object Sender, EventArgs Args)
6671
var Save = new GameSaveData(SaveFile);
6772
Save.FixGameSaveSignatureOnDisk();
6873
}
74+
75+
private void DLCToolStripMenuItem_Click(object sender, EventArgs e)
76+
{
77+
var MainFile = new LOTD_Archive(true);
78+
MainFile.Load();
79+
80+
var Writer = new BinaryWriter(MainFile.Reader.BaseStream);
81+
var CharacterDataFiles = MainFile.LoadFiles<Char_Data>();
82+
var DuelDataFiles = MainFile.LoadFiles<Duel_Data>();
83+
84+
foreach (var Character in CharacterDataFiles)
85+
{
86+
foreach (var CharacterItem in Character.Items.Values)
87+
CharacterItem.DlcId = -1; //DLC Not Required.
88+
89+
Writer.BaseStream.Position = Character.File.ArchiveOffset;
90+
Character.Save(Writer);
91+
}
92+
93+
foreach (var Duel in DuelDataFiles)
94+
{
95+
foreach (var DuelItem in Duel.Items.Values)
96+
DuelItem.DlcId = -1; //DLC Not Reuqired.
97+
98+
Writer.BaseStream.Position = Duel.File.ArchiveOffset;
99+
Duel.Save(Writer);
100+
}
101+
102+
Writer.Close();
103+
MessageBox.Show("Done Unlocking All Content!\nYou Will Need To Play Through The Story To Unlock The Duels.", "ALl Content Unlocked", MessageBoxButtons.OK, MessageBoxIcon.Information);
104+
}
69105
}
70106
}

Tutorials/Abaki.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

Tutorials/Celtic Guardian.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

Tutorials/Chrtter.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

Tutorials/CreateThread.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

Tutorials/Cyclone.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

Tutorials/Detour.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)