PigPen-divinity
Sorceror
This should be easy. Well that is what I thought until I started tinkering with it.
I am trying to make the skill gain for Healing faster that the usual speed set for the other skills (up to 80.0) and then be like all other skills after that.
I have been trying to do this with an edit to SkillCheck.cs and have tried many variations.
Does anyone see why I should be getting this error?
Here is the pesky error I get:
and . . here is the snip of SkillCheck.cs where the problem occurs:
As always - sharper eyes than mine appreciated.
Thx
I am trying to make the skill gain for Healing faster that the usual speed set for the other skills (up to 80.0) and then be like all other skills after that.
I have been trying to do this with an edit to SkillCheck.cs and have tried many variations.
Does anyone see why I should be getting this error?
Here is the pesky error I get:
Code:
Errors:
+ Misc/SkillCheck.cs:
CS1002: Line 184: ; expected
and . . here is the snip of SkillCheck.cs where the problem occurs:
Code:
public static bool CheckSkill( Mobile from, Skill skill, object amObj, double chance )
{
if ( from.Skills.Cap == 0 )
return false;
bool success = ( chance >= Utility.RandomDouble() );double gc = (double)(from.Skills.Cap - from.Skills.Total) / from.Skills.Cap;
gc += ( skill.Cap - skill.Base ) / skill.Cap;
// Change here 1 = exceedingly fast 10 = exceedingly slow
gc /= 2.50;
gc += ( 1.0 - chance ) * ( success ? 0.5 : (Core.AOS ? 0.0 : 0.2) );
gc /= 2.50;
gc *= skill.Info.GainFactor;
if ( gc < 0.01 )
gc = 0.01;
if ( from is BaseCreature && ((BaseCreature)from).Controlled )
gc *= 2;
//**********************************************
// Try to make Healing Fast up to 80
// Line #184 Follows:
If (from.skill.Healing && from.skill.Base < 80.0)
Gain( from, skill );
return success;
//**********************************************
if ( from.Alive && ( ( gc >= Utility.RandomDouble() && AllowGain( from, skill, amObj ) ) || skill.Base < 10.0 ) )
Gain( from, skill );
return success;
}
As always - sharper eyes than mine appreciated.
Thx