Unlocking all Units still not working
public void OnUnlockAllUnitsPressed()
{
try
{
DebugController.Instance.UnlockAllUnits();
Debug.Log("[QA] All units unlocked successfully");
}
catch (Exception ex)
{
Debug.LogError($"[QA] Unlock failed: {ex}");
}
}
or
public void OnUnlockAllUnitsPressed()
{
DebugController.Instance.UnlockAllUnits();
}
CastleClashers.Core.DebugController.UnlockEverything RVA 0x46C0980
unlock all units
unlock all wheels
unlock all helpers
grant 5,000,000 coins
grant 5,000,000 wood
configure default utilities
persist the resulting state
@Puddinwould you be able to implement it?
what I found as well is the chain via IDA:
Debug menu button: “Unlock Units”
↓
VoodoDebuggerController.UnlockAllUnits
↓
VoodoDebuggerController.Safe
↓
CastleClashers.Core.DebugController.UnlockAllUnits
↓
AddPieces(unitId, 1000)
↓
GetUnitCardData(unitId)
↓
UpdateUnlocked(true)
↓
Save()
↓
UnlockCardFromArena(10)
↓
Save()
or is wrong? I checked the decrypted IPA
void UnlockAllUnits()
{
CardController.Load();
CardController.Save();
List<UnitData> units = GetAllUnits();
AddPieces(units[0].ID, 1);
foreach (UnitData unit in units)
{
AddPieces(unit.ID, 1000);
CardData card = GetUnitCardData(unit.ID);
if (card != null)
{
card.UpdateUnlocked(true);
CardController.Save();
}
}
UnlockCardFromArena(10);
CardController.Save();
}