From e2dd8f5f60e1bb69b6238512f9f6a82bed1cf1e4 Mon Sep 17 00:00:00 2001 From: KimLS Date: Sat, 12 Oct 2024 11:13:24 -0700 Subject: [PATCH] Add support to rof --- common/patches/rof.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/common/patches/rof.cpp b/common/patches/rof.cpp index 7d16d95e4..f53945fad 100644 --- a/common/patches/rof.cpp +++ b/common/patches/rof.cpp @@ -2288,13 +2288,13 @@ namespace RoF outapp->WriteSInt32(345); // Mana Total ? // these are needed to fix display bugs - outapp->WriteUInt32(0x19); // base CR - outapp->WriteUInt32(0x19); // base FR - outapp->WriteUInt32(0x19); // base MR - outapp->WriteUInt32(0xf); // base DR - outapp->WriteUInt32(0xf); // base PR + outapp->WriteUInt32(emu->cold_resist); // base CR + outapp->WriteUInt32(emu->fire_resist); // base FR + outapp->WriteUInt32(emu->magic_resist); // base MR + outapp->WriteUInt32(emu->disease_resist); // base DR + outapp->WriteUInt32(emu->poison_resist); // base PR outapp->WriteUInt32(0xf); // base PhR? - outapp->WriteUInt32(0xf); // base Corrup + outapp->WriteUInt32(emu->corruption_resist); // base Corrup outapp->WriteUInt32(0); // Unknown outapp->WriteUInt32(0); // Unknown outapp->WriteUInt32(0); // Unknown