Skip to content

Commit

Permalink
Transparent NPC Stats now shows the NPC stats in the inventory UI
Browse files Browse the repository at this point in the history
  • Loading branch information
DMD authored and DMD committed Sep 9, 2016
1 parent 0176740 commit d11bb48
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions TemplePlus/ui/ui_char.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,23 @@ class CharUiSystem : TempleFix
writeHex(0x1011DD4D, "90 90 90 90 90"); // disabling stat text draw calls
}

if (config.showNpcStats){
writeNoops(0x101C2247); // str output btn
writeNoops(0x101C2529); // dex output btn
writeNoops(0x101C2809); // con output btn
writeNoops(0x101C2AE9); // int output btn
writeNoops(0x101C2DC9); // wis output btn
writeNoops(0x101C30A9); // cha output btn

writeNoops(0x101C4D5A); // str mod btn
writeNoops(0x101C4F4A); // dex mod btn
writeNoops(0x101C513A); // con mod btn
writeNoops(0x101C532A); // int mod btn
writeNoops(0x101C551A); // wis mod btn
writeNoops(0x101C570A); // cha mod btn

}

int charSheetAttackCodeForAttackBonusDisplay = 1 + ATTACK_CODE_OFFHAND;
write(0x101C45F3 + 7, &charSheetAttackCodeForAttackBonusDisplay, sizeof(int));
write(0x101C8C7B + 4, &charSheetAttackCodeForAttackBonusDisplay, sizeof(int));
Expand Down

0 comments on commit d11bb48

Please sign in to comment.