<commit_before>require("base.common")

module("server.learn", package.seeall)

-- called by the server when user:learn(...) is issued by a script

function learn( user, skill, skillGroup, actionPoints, opponent, leadAttrib )

    --TEMPORARY SOLUTION TO CATCH NEW PLAYERS
	if user:getMentalCapacity() < 1999 then
	    user:increaseMentalCapacity(2000000); --Reduce to 200000 for brand new players. This is for existing players.
		base.common.TempInformNLS(user,"[Skillsystem] Mental Capacity zwangsangepasst auf!","[Skill system] Adjustment of mental capacity enforced.");
	end
	--TEMPORARY SOLUTION END

    --Learning speed - Change here if you're unhappy with the learning speed. Skillgain scales in a linear way.
	scalingFactor=1200; --Here, you can mod the learning speed. Higher value=faster ;-)
	
	--Constants - Do not change unless you know exactly what you're doing!
	amplification=100; --An 'abritrary' value that governs the 'resolution' of the MC function.
	lowerBorder=0.5*amplification/0.00025; --below 0.5% of time spent online, no additional bonus is granted
	normalMC=10*lowerBorder; --A 'normal' player invests 10x the time (=5%) into skill related actions
	normalAP=50; --How many movepoints does a 'normal' action take? Default=50
	--Constants - end
	<commit_msg>Learning speed reduced slightly.<commit_after>require("base.common")

module("server.learn", package.seeall)

-- called by the server when user:learn(...) is issued by a script

function learn( user, skill, skillGroup, actionPoints, opponent, leadAttrib )

    --TEMPORARY SOLUTION TO CATCH NEW PLAYERS
	if user:getMentalCapacity() < 1999 then
	    user:increaseMentalCapacity(2000000); --Reduce to 200000 for brand new players. This is for existing players.
		base.common.TempInformNLS(user,"[Skillsystem] Mental Capacity zwangsangepasst auf!","[Skill system] Adjustment of mental capacity enforced.");
	end
	--TEMPORARY SOLUTION END

    --Learning speed - Change here if you're unhappy with the learning speed. Skillgain scales in a linear way.
	scalingFactor=1000; --Here, you can mod the learning speed. Higher value=faster ;-)
	
	--Constants - Do not change unless you know exactly what you're doing!
	amplification=100; --An 'abritrary' value that governs the 'resolution' of the MC function.
	lowerBorder=0.5*amplification/0.00025; --below 0.5% of time spent online, no additional bonus is granted
	normalMC=10*lowerBorder; --A 'normal' player invests 10x the time (=5%) into skill related actions
	normalAP=50; --How many movepoints does a 'normal' action take? Default=50
	--Constants - end
	
{'fraction_non_alphanumeric': 0.09787234042553192, 'fraction_numerical': 0.033268858800773696, 'mean_word_length': 4.46723044397463, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2175507', 'n_tokens_mistral': 842, 'n_tokens_neox': 728, 'n_words': 297}