// Assembly-CSharp
class Kingdom : UnityEngine.MonoBehaviour
{
System.Void MoreGold(System.Int32 gold, System.Boolean triggerPassive); // 0x005f07a4
System.Void MoreDiamond(System.Int32 diamond); // 0x005f03d4
}
//System.Void MoreDiamond(System.Int32 diamond); // 0x005f03d4
void (*MoreDiamond)(void *instance,int diamond);
//System.Void MoreGold(System.Int32 gold, System.Boolean triggerPassive); // 0x005f07a4
void (*old_MoreGold)(void *instance,int gold,bool triggerPassive);
void MoreGold(void *instance,int gold,bool triggerPassive){
if(btnPressed){
gold = 99999;
MoreDiamond(instance,9999);
}
return old_MoreGold(instance,gold,triggerPassive);
}
in __arm__
MoreDiamond = (void (*)(void*,int)) getAbsoluteAddress(targetLibName, str2Offset(
OBFUSCATE("0x005f03d4")));
HOOK(targetLibName, str2Offset(OBFUSCATE("0x005f07a4")), MoreGold, old_MoreGold);
More Diamond & Gold(In Battle)
Wait a minute, I'll release the game this afternoon