Go Back   RunUO - Ultima Online Emulation > RunUO > Custom Script Release Archive

Custom Script Release Archive This is a pre-script database archive of what our users had released.

 
 
Thread Tools Display Modes
Old 02-07-2006, 04:11 PM   #1 (permalink)
Forum Newbie
 
Join Date: Feb 2006
Posts: 7
Default problem in GetDifficultyFor()

Noticed a small problem in the stock BaseInstrument.cs while implementing some changes with various bard-related stuff.

Basically, this line in GetDifficultyFor():

Code:
val += targ.Skills[i].Base;
should be:

Code:
val += targ.Skills[i].Value;
Discording a mob under AoS is supposed to reduce its base barding difficulty due to its skills being lowered. Prov and Peace skills use GetDifficultyFor() to determine the mob's barding difficulty, so if it doesn't return the proper value (modified by a successful discord) then you'll never get the full use of the Discordance skill.

Anyway, changing it from Base to Value fixes it. Sorry if this has been posted before, but i DID do a search using the function name and found nothing previously posted concerning this. So... hope someone finds this useful.
Apocrypha is offline  
Old 02-07-2006, 06:03 PM   #2 (permalink)
 
Join Date: Oct 2002
Age: 23
Posts: 4,689
Default

good catch
XxSP1DERxX is offline  
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5