Skill Gain Delay

Operating System
Windows
ServUO Version
57-Beta
I've noticed skill gain has a delay to gain again after gaining a few times. I wanna take that away, so i was checking SkillGain.cs and found this

Line 787:
public static void UpdateGGS(Mobile from, Skill skill)
{
if (!GGSActive)
return;

var list = (int)Math.Min(GGSTable.Length - 1, skill.Base / 5);
var column = from.Skills.Total >= 7000 ? 2 : from.Skills.Total >= 3500 ? 1 : 0;

skill.NextGGSGain = DateTime.UtcNow + TimeSpan.FromSeconds(GGSTable
  • [column]);
    }

    private static readonly int[][] GGSTable =
    {
    new[] {1, 3, 5}, // 0.0 - 4.9
    new[] {4, 10, 18}, new[] {7, 17, 30}, new[] {9, 24, 44}, new[] {12, 31, 57}, new[] {14, 38, 90}, new[] {17, 45, 84},
    new[] {20, 52, 96}, new[] {23, 60, 106}, new[] {25, 66, 120}, new[] {27, 72, 138}, new[] {33, 90, 162},
    new[] {55, 150, 264}, new[] {78, 216, 390}, new[] {114, 294, 540}, new[] {144, 384, 708}, new[] {180, 492, 900},
    new[] {228, 606, 1116}, new[] {276, 744, 1356}, new[] {336, 894, 1620}, new[] {396, 1056, 1920},
    new[] {468, 1242, 2280}, new[] {540, 1440, 2580}, new[] {618, 1662, 3060}
    };
    }
    }


  • I wanna say this is where the delay of gain comes in but i'm not sure? any help?
 
I've noticed skill gain has a delay to gain again after gaining a few times. I wanna take that away, so i was checking SkillGain.cs and found this

Line 787:


  • I wanna say this is where the delay of gain comes in but i'm not sure? any help?
FIXED Just changed success to 1 from 0.5 on line 268