Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

Commit

Permalink
micbaldur DarkHorizons 0 charisma belt fix, lolfixer update
Browse files Browse the repository at this point in the history
  • Loading branch information
omni-axa committed Aug 5, 2015
1 parent 086d29e commit 100c066
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
Binary file not shown.
5 changes: 4 additions & 1 deletion BiG World Fixpack/_BWP fixes.txt
Expand Up @@ -685,7 +685,7 @@ Pour en apprendre plus sur les corrections employ
----------------------------------------------------------------------------------------


:: DarkHorizons - Dark Horizons v2.10
:: DarkHorizons - Dark Horizons v2.11

:: Lollorian's assorted ITM fixes
:: http://www.shsforums.net/topic/55229-khazids-death-sword-bug/?p=546708
Expand All @@ -696,6 +696,9 @@ Pour en apprendre plus sur les corrections employ
:: http://www.shsforums.net/topic/42220-fixes-for-the-big-fixpack/?p=548590
:: http://www.shsforums.net/topic/42220-fixes-for-the-big-fixpack/?p=553439

:: micbaldur's fixed Belt of Sune
:: http://www.shsforums.net/topic/47635-notes-oddities-and-possible-bugs-in-my-bwp-game-spoilers/?p=580162


----------------------------------------------------------------------------------------

Expand Down
25 changes: 24 additions & 1 deletion BiG World Fixpack/_Lolfixer/setup-lolfixer.tp2
@@ -1,6 +1,6 @@
BACKUP ~lolfixer/backup~
AUTHOR ~Lollorian~
VERSION ~24072015~
VERSION ~06082015~

BEGIN ~Area Stuff - MAJESTIC Area Fixer~
GROUP ~Area Stuff~
Expand Down Expand Up @@ -2391,6 +2391,29 @@ COPY_EXISTING_REGEXP GLOB ~^.+\.itm$~ ~override~
END
END
END

READ_LONG 0x6a "fx_off" ELSE 0
READ_SHORT 0x6e "fx_idx" ELSE 0
READ_SHORT 0x70 "fx_num" ELSE 0

PATCH_IF (fx_off > 0x71) BEGIN
FOR (index = fx_idx ; index < fx_num ; index = index + 1) BEGIN // check equipping effects
READ_SHORT ("%fx_off%" + ("%index%" * 0x30)) "opcode"
READ_LONG ("%fx_off%" + 0x04 + ("%index%" * 0x30)) "param1"
READ_LONG ("%fx_off%" + 0x08 + ("%index%" * 0x30)) "param2"

PATCH_IF (("%opcode%" = 6) OR
("%opcode%" = 10) OR
("%opcode%" = 15) OR
("%opcode%" = 19) OR
("%opcode%" = 44) OR
("%opcode%" = 49)) AND ((("%param2%" = 1) OR ("%param2%" = 2)) AND ("%param1%" = 0)) BEGIN
PATCH_PRINT "%SOURCE_FILE% error: Stat Opcode (#%opcode%) setting to 0%! Incrementing by 1..."
WRITE_LONG ("%fx_off%" + 0x04 + ("%index%" * 0x30)) 1
WRITE_LONG ("%fx_off%" + 0x08 + ("%index%" * 0x30)) 0
END
END
END
END
END
BUT_ONLY_IF_IT_CHANGES
Expand Down

0 comments on commit 100c066

Please sign in to comment.