Jump to content

Deck of Many Things: Emperor

Recommended Posts

BD's fixes to the Emperor card from the Deck of Many Things is almost legitimate. The durations on the charm immunity effect and the delayed play sound effect were wrong, but BD changes the duplicate chram immunity effect to a panic immunity effect.


2) The Charm protection resouce (with the 0 second duration) was duplicated. I made the second one into a protection against Horror/Fear, as any Mind Shield should provide, with the corrected seven-day duration.


This seems to be a spurious change--the spell includes prevention of four icons and an animation, none of which are fear-related. I've included the duration fixes, left in the dupicate charm immunity (it's not hurting anything), and left out the panic immunity change.


// deck of many things, emperor spell
COPY_EXISTING ~spin632.spl~ ~override~
 READ_LONG  0x64 "abil_off"
 READ_SHORT 0x68 "abil_num"
 READ_LONG  0x6a "fx_off"
 PATCH_IF (SOURCE_SIZE > 0x71) THEN BEGIN // protects against invalid files
   WHILE ("%abil_num%" > 0) BEGIN
     SET "abil_num" = ("%abil_num%" - 1)
     READ_SHORT ("%abil_off%" + (0x28 * "%abil_num%")) "type"
     PATCH_IF ("%type%" = 1) BEGIN // if melee
       READ_SHORT ("%abil_off%" + 0x1e + (0x28 * "%abil_num%")) "fx_num"
       READ_SHORT ("%abil_off%" + 0x20 + (0x28 * "%abil_num%")) "fx_idx"
       WHILE ("%fx_num%" > 0) BEGIN
         SET "fx_num" = ("%fx_num%" - 1)
         READ_SHORT ("%fx_off%" +        (0x30 * ("%fx_idx%" + "%fx_num%"))) "opcode"
         PATCH_IF (("%opcode%" = 101) OR ("%opcode%" = 174)) BEGIN // play sound or immunity
           WRITE_LONG ("%fx_off%" + 0x0e + (0x30 * ("%fx_idx%" + "%fx_num%"))) 50400 // duration seven days

Link to comment


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

  • Create New...