Jump to content

Sphere of Chaos


cirerrek

Recommended Posts

// sphere of chaos sleep duration is off by a second
COPY_EXISTING ~spwi711.spl~ ~override~
 READ_LONG  0x64 "abil_off"
 READ_SHORT 0x68 "abil_num"
 READ_LONG  0x6a "fx_off"
 FOR (index = 0; index < abil_num; index = index + 1) BEGIN // look through abilities
   READ_BYTE   ("%abil_off%" +        ("%index%" * 0x38)) "type"
   PATCH_IF ("%type%" = 2) BEGIN // ranged ability check
     READ_SHORT  ("%abil_off%" + 0x1e) "abil_fx_num"
     READ_SHORT  ("%abil_off%" + 0x20) "abil_fx_idx"
     FOR (index2 = 0; index2 < abil_fx_num; index2 = index2 + 1) BEGIN
       READ_SHORT ("%fx_off%" +        (("%abil_fx_idx%" + "%index2%") * 0x30)) "opcode"
       PATCH_IF ("%opcode%" = 39) BEGIN // sleep
         WRITE_BYTE ("%fx_off%" + 0x0e + (("%abil_fx_idx%" + "%index2%") * 0x30)) 9 // duration
       END
     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...