Jump to content

Full plate changes--plat19, plat22, plat23


CamDawg

Recommended Posts

Three sets of full plate have extraneous movement rate and THAC0 penalties. I've also included devSin's additional fix for plat22, which changes the displayed icon from resist fire/cold to protection from fire. plat22 and plat23 are both ToB items.

 

// three sets of full plate have extraneous movement rate and THAC0 penalties
COPY_EXISTING ~plat19.itm~ ~override~
             ~plat22.itm~ ~override~
             ~plat23.itm~ ~override~
 PATCH_IF (SOURCE_SIZE > 0x71) THEN BEGIN // protects against invalid files
   READ_LONG  0x6a "fx_off"
   READ_SHORT 0x70 "fx_num"
   WHILE ("%fx_num%" > 0) BEGIN
     SET "fx_num" = ("%fx_num%" - 1)
     READ_BYTE ("%fx_off%" +        ("%fx_num%" * 0x30)) "type"
     READ_LONG ("%fx_off%" + 0x08 + ("%fx_num%" * 0x30)) "icon"
     PATCH_IF (("%type%" = 54) OR ("%type%" = 126)) BEGIN // movement rate or THAC0
       WRITE_BYTE ("%fx_off%" + 0x12 + ("%fx_num%" * 0x30)) 0 // probability: 0
     END
     PATCH_IF (("%type%" = 142) AND ("%icon%" = 26)) BEGIN // display portrait icon; a patch for plat22
       WRITE_LONG ("%fx_off%" + 0x08 + ("%fx_num%" * 0x30)) 16 // change resist fire/cold to protection from fire
     END
   END
 END
 BUT_ONLY_IF_IT_CHANGES

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...