Jump to content

Sword of Seeking has incorrect damage


Wisp

Recommended Posts

The Priest of Helm's kit description says the Sword of Seeking does 2-8 damage. However, it really does 1d8 damage.

 

For anyone outraged at (or otherwise upset by) this short-changing of damage, I offer the following snippet of code:

 

COPY_EXISTING ~sw1hseek.itm~ ~override~
 READ_LONG   0x64 abil_off ELSE 0
 READ_SHORT  0x68 abil_num ELSE 0
 FOR (index = 0; index < abil_num; index += 1) BEGIN
READ_SHORT (%abil_off% + (0x38 * %index%)) type
PATCH_IF %type% = 1 BEGIN //Melee ability check
  WRITE_SHORT (%abil_off% + 0x16 + (0x38 * %index%)) 4 //Die size
  WRITE_SHORT (%abil_off% + 0x18 + (0x38 * %index%)) 2 //Number of dice
END
 END
 BUT_ONLY

Link to comment

BUT_ONLY is workable shorthand for BUT_ONLY IF_IT_CHANGES (it was added as far back as v188).

(As I write this, I realise I've never thanked the_bigg for all these niceties that I'm taking advantage of, nor cmorgan for his updated highlighters which made me go check the change-log to see if there was anything to this "BUT_ONLY" thing.)

Link to comment
For anyone outraged at (or otherwise upset by) this short-changing of damage, I offer the following snippet of code:

If the item description said this weapon does 2-8 damage, but it does 1d8 damage, then we should fix it. O.K. someone could say, we can change the item description to 1d8 damage... Therefore I can put your code to the BETA core fixes or can change the item description.

Opinions?

 

Greetings Leomar

Link to comment

Archived

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

×
×
  • Create New...