Wisp Posted December 28, 2008 Share Posted December 28, 2008 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
Icendoan Posted December 28, 2008 Share Posted December 28, 2008 Don't you mean BUT_ONLY_IF_IT_CHANGES at the end instead of BUT_ONLY? Icen Link to comment
Wisp Posted December 28, 2008 Author Share Posted December 28, 2008 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
devSin Posted December 28, 2008 Share Posted December 28, 2008 I think bigg was originally going to use B_O_I_I_C, but I crinkled my nose and said no. Hence, BUT_ONLY. Link to comment
Leomar Posted December 29, 2008 Share Posted December 29, 2008 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.